Sha256: 73176d08f7f183085d534dfbdb8519b2a0588a00855a8c26f23c96489113eb46

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

if RUBY_VERSION < '1.9'
  require File.dirname(__FILE__) + '/faster_rubygems_lib.rb'
  all = FasterRubyGems.gem_prelude_paths
  all.each{|path|
    $: << path
  }
  
  module Kernel
    
    def gem *args
      undef :gem
      require 'rubygems' # punt!
      gem *args
    end    
    
  end
  
  module ::Gem
    def self.const_missing const
      require 'rubygems' # punt!
      return Gem.const_get(const)
    end
  end
  
  
else
 # not needed in 1.9, which by default loads gem_prelude
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
faster_rubygems-0.2.0 lib/faster_rubygems.rb
faster_rubygems-0.1.0 lib/faster_rubygems.rb