faster_rubygems 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -20,6 +20,11 @@ if RUBY_VERSION < '1.9'
20
20
  require 'rubygems' # punt!
21
21
  return Gem.const_get(const)
22
22
  end
23
+
24
+ def self.method_missing meth, *args
25
+ require 'rubygems' # punt!
26
+ return Gem.send(meth, *args)
27
+ end
23
28
  end
24
29
 
25
30
 
@@ -0,0 +1,2 @@
1
+ require File.dirname(__FILE__) + '/../../lib/faster_rubygems'
2
+ raise unless Gem.ruby
@@ -49,7 +49,7 @@ describe FasterRubyGems do
49
49
  it "should load full rubygems on gem xxx" do
50
50
  ruby('files/test_gem.rb')
51
51
  ruby('files/test_gem_const.rb')
52
-
52
+ ruby('files/test_gem_func.rb')
53
53
  end
54
54
 
55
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faster_rubygems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -54,6 +54,7 @@ files:
54
54
  - lib/ubygemsf.rb
55
55
  - spec/files/test_gem.rb
56
56
  - spec/files/test_gem_const.rb
57
+ - spec/files/test_gem_func.rb
57
58
  - spec/spec.faster_rubygems.rb
58
59
  has_rdoc: true
59
60
  homepage:
@@ -90,6 +91,7 @@ summary: faster gem loading
90
91
  test_files:
91
92
  - spec/files/test_gem.rb
92
93
  - spec/files/test_gem_const.rb
94
+ - spec/files/test_gem_func.rb
93
95
  - spec/spec.faster_rubygems.rb
94
96
  - examples/require_fast_start.rb
95
97
  - examples/require_rubygems_normal.rb