File: Rakefile

package info (click to toggle)
ruby-fuzzyurl 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 148 kB
  • ctags: 30
  • sloc: ruby: 517; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rake/testtask'

task :default => [:test]

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.libs << 'test/lib'
  t.test_files = FileList['test/**/*_test.rb']
  #t.warning = true
  t.verbose = true
end

task :release do
  system(<<-EOT)
    git add lib/fuzzyurl/version.rb
    git commit -m 'release v#{Fuzzyurl::VERSION}'
    git push origin
    git tag v#{Fuzzyurl::VERSION}
    git push --tags origin
    gem build fuzzyurl.gemspec
    gem push fuzzyurl-#{Fuzzyurl::VERSION}.gem
  EOT
end