Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 : c92cc45
  • Loading branch information...
commit a3f38f3c5132fbdbd5dff94cdc71c78bb73df54f 1 parent 5eefe22
authored March 08, 2013

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  Rakefile
8  Rakefile
@@ -5,7 +5,7 @@ require 'hoe'
5 5
 
6 6
 Hoe.plugin :hg
7 7
 
8  
-Hoe.spec 'vlad-unicorn' do
  8
+spec = Hoe.spec 'vlad-unicorn' do
9 9
   self.rubyforge_name = 'hitsquad'
10 10
   developer('Kevin R. Bullock', 'kbullock@ringworld.org')
11 11
   extra_deps << ['vlad', '~> 2.0']
@@ -15,4 +15,10 @@ Hoe.spec 'vlad-unicorn' do
15 15
     "rubyforge.org:/var/www/gforge-projects/hitsquad/#{remote_rdoc_dir}"
16 16
 end
17 17
 
  18
+task :gemspec do
  19
+  File.open 'vlad-unicorn.gemspec', 'w' do |f|
  20
+    f.write spec.spec.to_ruby
  21
+  end
  22
+end
  23
+
18 24
 # vim: syntax=ruby

0 notes on commit a3f38f3

Please sign in to comment.
Something went wrong with that request. Please try again.