diff options
author | Thom May <thom@may.lt> | 2016-10-07 11:09:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 11:09:36 +0100 |
commit | c452a2159d92009fd1d17b82b682be54d5dd745c (patch) | |
tree | b2a1a52eaa226806b1951992e8b5d76d5c4f0b51 | |
parent | 11387e82938196772ba5d5f45900273c7905d00d (diff) | |
parent | 2a928dc90306fa8c21e534a774816d14656749b8 (diff) | |
download | mixlib-shellout-c452a2159d92009fd1d17b82b682be54d5dd745c.tar.gz |
Merge pull request #120 from chef/rakefile
use gem helper tasks to get rake release
-rw-r--r-- | Rakefile | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -1,24 +1,11 @@ +require 'bundler' require 'rspec/core/rake_task' -require 'rubygems/package_task' -require 'mixlib/shellout/version' -Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path| - gemspec = eval(IO.read(gemspec_path)) - Gem::PackageTask.new(gemspec).define -end +Bundler::GemHelper.install_tasks desc "Run all specs in spec directory" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = FileList['spec/**/*_spec.rb'] end -desc "Build it and ship it" -task ship: [:clobber_package, :gem] do - sh("git tag #{Mixlib::ShellOut::VERSION}") - sh("git push opscode --tags") - Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem| - sh("gem push #{built_gem}") - end -end - task default: :spec |