public
Fork of dyoder/waves
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/ab5tract/waves.git
Kernel#engine is Kernel.engine.
ab5tract (author)
Thu Oct 09 09:22:32 -0700 2008
commit  a5f6a430ec0ac29cd6a1d8707b7271fbdf1456db
tree    441dd512c6379e459d5259ff5d7312144c03baf2
parent  9e4309934a3da22c9daa6928d9ec9ce5c82e9054
...
32
33
34
35
 
36
37
38
...
32
33
34
 
35
36
37
38
0
@@ -32,7 +32,7 @@ gem = Gem::Specification.new do |gem|
0
 
0
 
0
   # Unfortunately there are some gems that don't work in JRuby, so...
0
- case engine
0
+ case Kernel.engine
0
     when 'ruby'
0
     # Matz' Ruby dependencies here...
0
     puts "You are running MRI/Ruby #{RUBY_VERSION}"
...
9
10
11
12
 
13
14
...
9
10
11
 
12
13
14
0
@@ -9,6 +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; defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'; end
0
+ def self.engine; defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'; end
0
   end
0
 end

Comments

    No one has commented yet.