Sha256: b7b6990c80873ebe26ce65f9d77612147f15e5ff642230b5417c506bf8fdb9e7

Contents?: true

Size: 161 Bytes

Versions: 54

Compression:

Stored size: 161 Bytes

Contents

def cool_require(gem)
  begin
    m = /(\d+.\d+)/.match(RUBY_VERSION)
    ver = m[1]
    require "#{ver}/#{gem}.so"
  rescue LoadError
    require gem
  end
end

Version data entries

54 entries across 54 versions & 6 rubygems

Version Path
cool.io-1.5.3 lib/cool.io/custom_require.rb
cool.io-1.5.2 lib/cool.io/custom_require.rb
cool.io-1.5.1 lib/cool.io/custom_require.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/cool.io-1.5.0/lib/cool.io/custom_require.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/cool.io-1.5.0/lib/cool.io/custom_require.rb
cool.io-1.5.0 lib/cool.io/custom_require.rb
cool.io-1.4.6-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.6-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.6 lib/cool.io/custom_require.rb
cool.io-1.4.5 lib/cool.io/custom_require.rb
cool.io-1.4.5-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.5-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.5.pre1 lib/cool.io/custom_require.rb
cool.io-1.4.5.pre1-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.5.pre1-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.4-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.4-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.4.4 lib/cool.io/custom_require.rb
cool.io-1.4.3 lib/cool.io/custom_require.rb
cool.io-1.4.2 lib/cool.io/custom_require.rb