Sha256: 0ac9c27c1768910d9cbaa4f8b6cb8c02ea81d5352c1154ba032cd9444e2adec6

Contents?: true

Size: 629 Bytes

Versions: 25

Compression:

Stored size: 629 Bytes

Contents

module Mongrel
  module Gems
    class << self
    
      def require(library, version = nil)
        begin
          Kernel.require library
        rescue LoadError, RuntimeError => e
          begin 
            # ActiveSupport breaks 'require' by making it always return a true value
            Kernel.require 'rubygems'
            version ? gem(library, version) : gem(library)
            retry
          rescue Gem::LoadError, LoadError, RuntimeError
            # puts "** #{library.inspect} could not be loaded" unless library == "mongrel_experimental"
          end
        end  
      end
      
    end    
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
engineyard-mongrel-1.1.4 lib/mongrel/gems.rb
headius-mongrel-1.1.6.1 lib/mongrel/gems.rb
phurley-mongrel-1.1.6.1 lib/mongrel/gems.rb
mongrel-maglev--1.1.9.0.1 lib/mongrel/gems.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
mongrel-1.2.0.pre2-x86-mswin32 lib/mongrel/gems.rb
mongrel-1.2.0.pre2-x86-mingw32 lib/mongrel/gems.rb
mongrel-1.2.0.pre2 lib/mongrel/gems.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
sho-mongrel-1.1.5 lib/mongrel/gems.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb
mongrel-1.1.3 lib/mongrel/gems.rb
mongrel-1.1.2 lib/mongrel/gems.rb
mongrel-1.1.2-java lib/mongrel/gems.rb
mongrel-1.1.3-java lib/mongrel/gems.rb
mongrel-1.1.5-x86-mingw32 lib/mongrel/gems.rb
mongrel-1.1.4-java lib/mongrel/gems.rb