Sha256: 43fd6fc48ba5b569a5065356802c54e2069ae2c92b3bae3d890aedc77cf28c0c

Contents?: true

Size: 716 Bytes

Versions: 24

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

# load the C or Java extension
begin
  ::RUBY_VERSION =~ /(\d+\.\d+)/
  require_relative "#{Regexp.last_match(1)}/nokogiri"
rescue LoadError => e
  if e.message =~ /GLIBC/
    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
  require_relative "nokogiri"
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
nokogiri-1.12.1 lib/nokogiri/extension.rb
nokogiri-1.12.1-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.12.1-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.1-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.1-x86-linux lib/nokogiri/extension.rb
nokogiri-1.12.1-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.1-java lib/nokogiri/extension.rb
nokogiri-1.12.1-arm64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.0 lib/nokogiri/extension.rb
nokogiri-1.12.0-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.12.0-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.0-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.0-x86-linux lib/nokogiri/extension.rb
nokogiri-1.12.0-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.0-java lib/nokogiri/extension.rb
nokogiri-1.12.0-arm64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.0.rc1-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.0.rc1-java lib/nokogiri/extension.rb
nokogiri-1.12.0.rc1 lib/nokogiri/extension.rb
nokogiri-1.12.0.rc1-x86_64-linux lib/nokogiri/extension.rb