Rakefile in certmeister-0.0.1 vs Rakefile in certmeister-0.0.2

- old
+ new

@@ -1,6 +1,23 @@ -require "bundler/gem_tasks" require "rspec/core/rake_task" + +desc 'Build gem into the pkg directory' +task :build do + FileUtils.rm_rf('pkg') + Dir['*.gemspec'].each do |gemspec| + system "gem build #{gemspec}" + end + FileUtils.mkdir_p('pkg') + FileUtils.mv(Dir['*.gem'], 'pkg') +end + +desc 'Tags version, pushes to remote, and pushes gem' +task :release => :build do + sh 'git', 'tag', '-m', "Released v#{Certmeister::VERSION}", "v#{Certmeister::VERSION}" + sh "git push origin master" + sh "git push origin v#{Certmeister::VERSION}" + sh "ls pkg/*.gem | xargs -n 1 gem push" +end RSpec::Core::RakeTask.new(:spec) task :default => :spec