Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rakefile: add task to write generated gemspec

The gemspec file has to be there in order to use this from Bundler with
a :path => "...".

--HG--
extra : rebase_source : c92cc45aa35e1c3d8f8b215b09a349f2ced895ba
  • Loading branch information...
commit a3f38f3c5132fbdbd5dff94cdc71c78bb73df54f 1 parent 5eefe22
Kevin Bullock authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Rakefile
View
8 Rakefile
@@ -5,7 +5,7 @@ require 'hoe'
Hoe.plugin :hg
-Hoe.spec 'vlad-unicorn' do
+spec = Hoe.spec 'vlad-unicorn' do
self.rubyforge_name = 'hitsquad'
developer('Kevin R. Bullock', 'kbullock@ringworld.org')
extra_deps << ['vlad', '~> 2.0']
@@ -15,4 +15,10 @@ Hoe.spec 'vlad-unicorn' do
"rubyforge.org:/var/www/gforge-projects/hitsquad/#{remote_rdoc_dir}"
end
+task :gemspec do
+ File.open 'vlad-unicorn.gemspec', 'w' do |f|
+ f.write spec.spec.to_ruby
+ end
+end
+
# vim: syntax=ruby
Please sign in to comment.
Something went wrong with that request. Please try again.