Sha256: 7a04262090a72244bd54d5400f82ccd9a22fd3e8e568ff7c343243bf331f2b72

Contents?: true

Size: 648 Bytes

Versions: 10

Compression:

Stored size: 648 Bytes

Contents

require "rspec/core/rake_task"
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

10 entries across 10 versions & 1 rubygems

Version Path
certmeister-2.1.0 Rakefile
certmeister-2.0.0 Rakefile
certmeister-1.2.1 Rakefile
certmeister-1.2.0 Rakefile
certmeister-1.1.0 Rakefile
certmeister-1.0.1 Rakefile
certmeister-1.0.0 Rakefile
certmeister-0.4.1 Rakefile
certmeister-0.4.0 Rakefile
certmeister-0.3.2 Rakefile