Sha256: 1347727d80f4e8c4a6052504902f3eb6ebd9341d81637e6f1474908558de2303
Contents?: true
Size: 709 Bytes
Versions: 4
Compression:
Stored size: 709 Bytes
Contents
require "rspec/core/rake_task" $LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib') require "certmeister/version" desc 'Build gem into the pkg directory' task :build => :spec 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
certmeister-2.3.2 | Rakefile |
certmeister-2.3.1 | Rakefile |
certmeister-2.3.0 | Rakefile |
certmeister-2.2.0 | Rakefile |