Sha256: 6d1960d5559b775421ce6e096ac5225b1ffc9f262bc22e388d77dbfc85f2defb

Contents?: true

Size: 1.07 KB

Versions: 118

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

# load the C or Java extension
begin
  # native precompiled gems package shared libraries in <gem_dir>/lib/nokogiri/<ruby_version>
  ::RUBY_VERSION =~ /(\d+\.\d+)/
  require_relative "#{Regexp.last_match(1)}/nokogiri"
rescue LoadError => e
  if /GLIBC/.match?(e.message)
    warn(<<~EOM)

      ERROR: It looks like you're trying to use Nokogiri as a precompiled native gem on a system with glibc < 2.17:

        #{e.message}

        If that's the case, then please install Nokogiri via the `ruby` platform gem:
            gem install nokogiri --platform=ruby
        or:
            bundle config set force_ruby_platform true

        Please visit https://nokogiri.org/tutorials/installing_nokogiri.html for more help.

    EOM
    raise e
  end

  # use "require" instead of "require_relative" because non-native gems will place C extension files
  # in Gem::BasicSpecification#extension_dir after compilation (during normal installation), which
  # is in $LOAD_PATH but not necessarily relative to this file (see #2300)
  require "nokogiri/nokogiri"
end

Version data entries

118 entries across 116 versions & 3 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/nokogiri-1.13.3-arm64-darwin/lib/nokogiri/extension.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/nokogiri-1.13.8-arm64-darwin/lib/nokogiri/extension.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/nokogiri-1.13.3-arm64-darwin/lib/nokogiri/extension.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/nokogiri-1.13.8-arm64-darwin/lib/nokogiri/extension.rb
nokogiri-1.13.10-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.13.10-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.13.10 lib/nokogiri/extension.rb
nokogiri-1.13.10-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.13.10-arm64-darwin lib/nokogiri/extension.rb
nokogiri-1.13.10-java lib/nokogiri/extension.rb
nokogiri-1.13.10-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.13.10-aarch64-linux lib/nokogiri/extension.rb
nokogiri-1.13.10-x86-linux lib/nokogiri/extension.rb
nokogiri-1.13.10-x64-mingw-ucrt lib/nokogiri/extension.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/nokogiri-1.13.9-x86_64-linux/lib/nokogiri/extension.rb
nokogiri-1.13.9 lib/nokogiri/extension.rb
nokogiri-1.13.9-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.13.9-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.13.9-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.13.9-x86-linux lib/nokogiri/extension.rb