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

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
switched the Rakefile handling to use new engine method
ab5tract (author)
Wed Aug 27 20:49:15 -0700 2008
automatthew (committer)
Mon Sep 01 11:04:30 -0700 2008
commit  2e40b7bdd250a91612de6076c2b5aff79106436e
tree    e1b0d35c2041fe641614fd3335dfffd782b41f56
parent  c7bb703379fe96ca8c11364638113dd3595fe21a
...
1
2
3
 
4
5
6
...
32
33
34
 
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
42
43
44
...
1
2
 
3
4
5
6
...
32
33
34
35
36
 
 
 
 
 
 
37
38
39
40
41
42
43
44
45
46
47
48
0
@@ -1,6 +1,6 @@
0
 begin
0
   $: << 'lib'; %w( rubygems rake/testtask rake/rdoctask rake/gempackagetask extensions/all
0
- utilities/string utilities/symbol date).each { |dep| require dep }
0
+ utilities/string utilities/symbol utilities/kernel date).each { |dep| require dep }
0
 rescue LoadError => e
0
   if e.message == 'no such file to load -- extensions/all'
0
     puts "Better do `rake setup` to get all the fancies you're missing"
0
@@ -32,13 +32,17 @@ gem = Gem::Specification.new do |gem|
0
 jruby):Rakefile
0
   gem.add_dependency('functor', '>= 0.4.2')
0
 
0
+
0
   # Unfortunately there are some gems that don't work in JRuby, so...
0
- unless defined?(JRUBY_VERSION)
0
- # Matz' Ruby dependencies here...
0
- gem.add_dependency('RedCloth', '>= 4.0.0')
0
- else
0
- # JRuby compatible dependencies here...
0
- gem.add_dependency('RedCloth', '= 3.0.4')
0
+ case engine
0
+ when 'ruby'
0
+ # Matz' Ruby dependencies here...
0
+ puts "You are running MRI/Ruby #{RUBY_VERSION}"
0
+ gem.add_dependency('RedCloth', '>= 4.0.0')
0
+ when 'jruby'
0
+ # JRuby compatible dependencies here...
0
+ puts "You are running JRuby #{JRUBY_VERSION}"
0
+ gem.add_dependency('RedCloth', '= 3.0.4')
0
   end
0
   
0
   gem.files = FileList[ 'app/**/*', 'app/**/.gitignore', 'lib/**/*.rb','lib/**/*.erb', "{doc,samples,verify}/**/*" ]
...
9
10
11
12
13
14
 
15
16
...
9
10
11
 
 
 
12
13
14
0
@@ -9,8 +9,6 @@ module Kernel
0
 
0
   unless respond_to?(:engine)
0
     # 'engine' exists to provide a quick and easy (and MRI-compatible!) interface to the RUBY_ENGINE constant
0
- def engine
0
- defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'mri'
0
- end
0
+ def engine; defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'; end
0
   end
0
 end

Comments

    No one has commented yet.