Commit f52515ea authored by Daniel DeLeo's avatar Daniel DeLeo
Browse files

initial multi-gem build support

parent db7c3b2f
require 'rspec/core/rake_task'
require 'rubygems/package_task'
gemspec = eval(IO.read('mixlib-shellout.gemspec'))
Gem::PackageTask.new(gemspec).define
Dir[File.expand_path("../*gemspec", __FILE__)].each do |gemspec_path|
gemspec = eval(IO.read(gemspec_path))
Gem::PackageTask.new(gemspec).define
end
require 'mixlib/shellout/version'
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 => :gem do
sh("git tag #{Mixlib::ShellOut::Version}")
sh("git push opscode --tags")
Dir[File.expand_path("../pkg/*.gem", __FILE__)].each do |built_gem|
sh("gem push #{built_gem}")
end
end
task :default => :spec
gemspec = eval(IO.read(File.expand_path("../mixlib-shellout.gemspec", __FILE__)))
gemspec.platform = "x86-mingw32"
gemspec.add_dependency "win32-process"
gemspec
......@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
s.bindir = "bin"
s.executables = []
s.require_path = 'lib'
s.files = %w(LICENSE README.rdoc) + Dir.glob("lib/**/*")
s.files = %w(LICENSE README.md) + Dir.glob("lib/**/*")
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment