Sha256: 2ee12c8e7ee4d9a3d52ed198b1525b2be8e68104cc2c4f8283bcc6679c709e7c

Contents?: true

Size: 459 Bytes

Versions: 23

Compression:

Stored size: 459 Bytes

Contents

class LoadError
  REGEXPS = [
    /^no such file to load -- (.+)$/i,
    /^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
    /^Missing API definition file in (.+)$/i,
    /^cannot load such file -- (.+)$/i,
  ]

  # Returns true if the given path name (except perhaps for the ".rb"
  # extension) is the missing file which caused the exception to be raised.
  def is_missing?(location)
    location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze)
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
activesupport-5.1.7 lib/active_support/core_ext/load_error.rb
activesupport-5.1.7.rc1 lib/active_support/core_ext/load_error.rb
activesupport-5.1.6.2 lib/active_support/core_ext/load_error.rb
activesupport-5.1.6.1 lib/active_support/core_ext/load_error.rb
activesupport-5.1.6 lib/active_support/core_ext/load_error.rb
tdiary-5.0.8 vendor/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/load_error.rb
activesupport-5.1.5 lib/active_support/core_ext/load_error.rb
activesupport-5.1.5.rc1 lib/active_support/core_ext/load_error.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/core_ext/load_error.rb
activesupport-5.1.4 lib/active_support/core_ext/load_error.rb
activesupport-5.1.4.rc1 lib/active_support/core_ext/load_error.rb
activesupport-5.1.3 lib/active_support/core_ext/load_error.rb
activesupport-5.1.3.rc3 lib/active_support/core_ext/load_error.rb
activesupport-5.1.3.rc2 lib/active_support/core_ext/load_error.rb
activesupport-5.1.3.rc1 lib/active_support/core_ext/load_error.rb
tdiary-5.0.5 vendor/bundle/gems/activesupport-5.1.2/lib/active_support/core_ext/load_error.rb
activesupport-5.1.2 lib/active_support/core_ext/load_error.rb
activesupport-5.1.2.rc1 lib/active_support/core_ext/load_error.rb
activesupport-5.1.1 lib/active_support/core_ext/load_error.rb
activesupport-5.1.0 lib/active_support/core_ext/load_error.rb