Sha256: 39b812617ba448cd6a0b60a7196fe4eaccf57ee3eb963846d102181be8bb5874

Contents?: true

Size: 1.1 KB

Versions: 261

Compression:

Stored size: 1.1 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 e.message.include?("GLIBC")
    warn(<<~EOM)

      ERROR: It looks like you're trying to use Nokogiri as a precompiled native gem on a system
             with an unsupported version of glibc.

        #{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

261 entries across 261 versions & 7 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/nokogiri-1.16.6-x86_64-linux/lib/nokogiri/extension.rb
nokogiri-1.18.1-x86_64-linux-musl lib/nokogiri/extension.rb
nokogiri-1.18.1-x86_64-linux-gnu lib/nokogiri/extension.rb
nokogiri-1.18.1-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.18.1-x64-mingw-ucrt lib/nokogiri/extension.rb
nokogiri-1.18.1-java lib/nokogiri/extension.rb
nokogiri-1.18.1 lib/nokogiri/extension.rb
nokogiri-1.18.1-arm-linux-musl lib/nokogiri/extension.rb
nokogiri-1.18.1-arm-linux-gnu lib/nokogiri/extension.rb
nokogiri-1.18.1-arm64-darwin lib/nokogiri/extension.rb
nokogiri-1.18.1-aarch64-linux-musl lib/nokogiri/extension.rb
nokogiri-1.18.1-aarch64-linux-gnu lib/nokogiri/extension.rb
nokogiri-1.18.0-x86_64-linux-musl lib/nokogiri/extension.rb
nokogiri-1.18.0-x86_64-linux-gnu lib/nokogiri/extension.rb
nokogiri-1.18.0-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.18.0-x64-mingw-ucrt lib/nokogiri/extension.rb
nokogiri-1.18.0-java lib/nokogiri/extension.rb
nokogiri-1.18.0 lib/nokogiri/extension.rb
nokogiri-1.18.0-arm-linux-musl lib/nokogiri/extension.rb
nokogiri-1.18.0-arm-linux-gnu lib/nokogiri/extension.rb