public
Fork of wycats/merb-more
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/somebee/merb-more.git
Clean up the Rakefile in merb-gen:
* Change VERSION to GEM_VERSION to quiet warnings
* Add a description to the install task
* Add a make_spec task to support creating a new gemspec for github
wycats (author)
Tue May 06 20:06:49 -0700 2008
commit  89d64904180d5001dda53b52a70d7337ee7059b7
tree    99c8a800f138e579f326b9213aaed6fee187af50
parent  825d94f27ab3448d76f8f37bf16cc8e13ae06b3c
...
1
2
 
 
3
4
5
6
 
7
8
9
...
11
12
13
14
 
15
16
17
...
30
31
32
 
33
34
35
36
 
 
 
 
 
 
 
37
38
39
...
1
2
3
4
5
6
7
 
8
9
10
11
...
13
14
15
 
16
17
18
19
...
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
0
@@ -1,9 +1,11 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
+require 'rubygems/specification'
0
+require 'date'
0
 
0
 PLUGIN = "<%= base_name %>"
0
 NAME = "<%= base_name %>"
0
-VERSION = "0.0.1"
0
+GEM_VERSION = "0.0.1"
0
 AUTHOR = "Your Name"
0
 EMAIL = "Your Email"
0
 HOMEPAGE = "http://merb-plugins.rubyforge.org/<%= base_name %>/"
0
@@ -11,7 +13,7 @@ SUMMARY = "Merb plugin that provides ..."
0
 
0
 spec = Gem::Specification.new do |s|
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -30,10 +32,18 @@ Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
+desc "install the plugin locally"
0
 task :install => [:package] do
0
   sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources}
0
 end
0
 
0
+desc "create a gemspec file"
0
+task :make_spec do
0
+ File.open("#{GEM}.gemspec", "w") do |file|
0
+ file.puts spec.to_ruby
0
+ end
0
+end
0
+
0
 namespace :jruby do
0
 
0
   desc "Run :package and install the resulting .gem with jruby"

Comments

    No one has commented yet.