Sha256: 943fe53d0c07155728818e7ae4a283c07999797dd22d5e4805969720825da1b3

Contents?: true

Size: 716 Bytes

Versions: 54

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

# load the C or Java extension
begin
  ::RUBY_VERSION =~ /(\d+\.\d+)/
  require "nokogiri/#{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 'nokogiri/nokogiri'
end

Version data entries

54 entries across 52 versions & 3 rubygems

Version Path
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/extension.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/extension.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri/extension.rb
nokogiri-1.11.7 lib/nokogiri/extension.rb
nokogiri-1.11.7-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.11.7-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.11.7-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.11.7-x86-linux lib/nokogiri/extension.rb
nokogiri-1.11.7-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.11.7-java lib/nokogiri/extension.rb
nokogiri-1.11.7-arm64-darwin lib/nokogiri/extension.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.3-x86_64-linux/lib/nokogiri/extension.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/extension.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/extension.rb
nokogiri-1.11.6 lib/nokogiri/extension.rb
nokogiri-1.11.6-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.11.6-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.11.6-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.11.6-x86-linux lib/nokogiri/extension.rb
nokogiri-1.11.6-x64-mingw32 lib/nokogiri/extension.rb