Sha256: 2f60dcbce10cbfe81b2c8bf3429f4da1ad4a57d44d870c6a1ba686ea0dd842d4

Contents?: true

Size: 1.06 KB

Versions: 37

Compression:

Stored size: 1.06 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 =~ /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

  # 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

37 entries across 37 versions & 4 rubygems

Version Path
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/extension.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/extension.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/extension.rb
nokogiri-1.12.5 lib/nokogiri/extension.rb
nokogiri-1.12.5-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.12.5-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.5-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.5-x86-linux lib/nokogiri/extension.rb
nokogiri-1.12.5-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.5-java lib/nokogiri/extension.rb
nokogiri-1.12.5-arm64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.4 lib/nokogiri/extension.rb
nokogiri-1.12.4-x86_64-linux lib/nokogiri/extension.rb
nokogiri-1.12.4-x86_64-darwin lib/nokogiri/extension.rb
nokogiri-1.12.4-x86-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.4-x86-linux lib/nokogiri/extension.rb
nokogiri-1.12.4-x64-mingw32 lib/nokogiri/extension.rb
nokogiri-1.12.4-java lib/nokogiri/extension.rb
nokogiri-1.12.4-arm64-darwin lib/nokogiri/extension.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.3-x86_64-linux/lib/nokogiri/extension.rb