Sha256: b4dd37a37935a99c210d37ff8af66f935842424a1a2b9f6ba418ce6c29d66efc

Contents?: true

Size: 916 Bytes

Versions: 25

Compression:

Stored size: 916 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/**/*_test.rb']
end

task :patch do
  system "gem bump --tag"
end

task :minor do
  system "gem bump --version minor --tag"
end

task :major do
  system "gem bump --version major --tag"
end

task :publish => [:build] do
  $VERBOSE = nil
  load 'creategem/version.rb'
  system "gem push pkg/creategem-#{Creategem::VERSION}.gem"
end

desc "Bump patch version, create git tag, build the gem and release to geminabox (default)"
task :release_patch => [:test, :patch, :publish]

desc "Bump minor version, create git tag, build the gem and release to geminabox"
task :release_minor => [:test, :minor, :publish]

desc "Bump major version, create git tag, build the gem and release to geminabox"
task :release_major => [:test, :major, :publish]


task :default => :test

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
creategem-0.2.1 Rakefile
creategem-0.2.0 Rakefile
creategem-0.1.3 Rakefile
creategem-0.1.2 Rakefile
creategem-0.1.1 Rakefile