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.9.0 lib/cool.io/custom_require.rb
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/cool.io-1.8.1/lib/cool.io/custom_require.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/cool.io-1.8.1/lib/cool.io/custom_require.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/cool.io-1.8.1/lib/cool.io/custom_require.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/cool.io-1.8.1/lib/cool.io/custom_require.rb
cool.io-1.8.0 lib/cool.io/custom_require.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/cool.io-1.7.1/lib/cool.io/custom_require.rb
cool.io-1.7.1-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.7.1-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.7.1 lib/cool.io/custom_require.rb
cool.io-1.7.0 lib/cool.io/custom_require.rb
cool.io-1.6.1 lib/cool.io/custom_require.rb
cool.io-1.6.0-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.6.0-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.6.0 lib/cool.io/custom_require.rb
cool.io-1.5.4-x64-mingw32 lib/cool.io/custom_require.rb
cool.io-1.5.4-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.5.4 lib/cool.io/custom_require.rb
cool.io-1.5.3-x86-mingw32 lib/cool.io/custom_require.rb
cool.io-1.5.3-x64-mingw32 lib/cool.io/custom_require.rb