Sha256: 21047318381dca70521c95b08e07929e1c777b2b3e06fc4705c5ee467e0e8e93

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
certmeister-0.2.1 Rakefile
certmeister-0.2.0 Rakefile
certmeister-0.1.0 Rakefile
certmeister-0.0.2 Rakefile