GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Prettier Benchmarking for Ruby
Clone URL: git://github.com/wycats/benchwarmer.git
Move the gemspec out to its own file for GitHub integration.
nex3 (author)
Mon May 05 17:19:11 -0700 2008
commit  588f7726dd513946eaf150dc1ba5aad8a44054dc
tree    b5bd4c91546e9ab425094aab2e5c74a0272973d4
parent  36ef1fa09a410ec866df2754b17684b1f13cf6f1
...
1
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
34
35
36
...
1
2
3
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
6
7
8
0
@@ -1,36 +1,8 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
+load File.join(File.dirname(__FILE__), 'benchwarmer.gemspec')
0
 
0
-GEM = "benchwarmer"
0
-VERSION = "0.5"
0
-AUTHOR = "Yehuda Katz"
0
-EMAIL = "wycats@gmail.com"
0
-HOMEPAGE = "http://yehudakatz.com"
0
-SUMMARY = "A gem that provides a prettier formatting and DSL for Ruby benchmarks"
0
-
0
-spec = Gem::Specification.new do |s|
0
- s.name = GEM
0
- s.version = VERSION
0
- s.platform = Gem::Platform::RUBY
0
- s.has_rdoc = true
0
- s.extra_rdoc_files = ["README", "LICENSE"]
0
- s.summary = SUMMARY
0
- s.description = s.summary
0
- s.author = AUTHOR
0
- s.email = EMAIL
0
- s.homepage = HOMEPAGE
0
-
0
- # Uncomment this to add a dependency
0
- # s.add_dependency "foo"
0
-
0
- s.require_path = 'lib'
0
- s.autorequire = GEM
0
- s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib}/**/*")
0
-end
0
-
0
-Rake::GemPackageTask.new(spec) do |pkg|
0
- pkg.gem_spec = spec
0
-end
0
+Rake::GemPackageTask.new(GEMSPEC).define
0
 
0
 task :install => [:package] do
0
   sh %{sudo gem install pkg/#{GEM}-#{VERSION}}

Comments

    No one has commented yet.