Module: Hoe::RubyGems
- Defined in:
- lib/hoe/rubygems.rb
Constant Summary collapse
- VERSION =
Duh.
"1.0.0"
Instance Method Summary collapse
Instance Method Details
#define_rubygems_tasks ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/hoe/rubygems.rb', line 7 def define_rubygems_tasks gemspec = "#{spec.name}.gemspec" deps = IO.read("Manifest.txt").split file gemspec => deps do |t| File.open(t.name, "w") { |f| f.write spec.to_ruby } end desc "Update #{gemspec} if necessary." task "gem:spec" => gemspec desc "Install gem, with optional prefix." task "gem:install", [:prefix] do |t, args| spec.name = "#{args.prefix}-#{spec.name}" if args.prefix Rake::Task["install_gem"].invoke end end |