Sha256: f248fa460917418fbf239d5679d514b32f51014723369484624c445ccacbc130

Contents?: true

Size: 1.02 KB

Versions: 14

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

begin
    # native precompiled gems package shared libraries in <gem_dir>/lib/nokogiri/<ruby_version>
    ::RUBY_VERSION =~ /(\d+\.\d+)/
    require_relative "#{Regexp.last_match(1)}/express_parser"
  rescue LoadError => e
#    if /musl/.match?(RUBY_PLATFORM)
#      warn(<<~EOM)
#  
#        ERROR: It looks like you're trying to use Expressir as a precompiled native gem on a musl system.
#  
#          #{e.message}
#  
#          If that's the case, then please install Expressir via the `ruby` platform gem:
#              gem install expressir --platform=ruby
#          or:
#              bundle config set force_ruby_platform true
#  
#  
#      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
    require "expressir/express/express_parser"
  end
  

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
expressir-1.3.0.pre.2 lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-x86_64-linux-gnu lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-x86_64-darwin lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-x64-mingw32 lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-x64-mingw-ucrt lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-arm64-darwin lib/expressir/express/extension.rb
expressir-1.3.0.pre.2-aarch64-linux-gnu lib/expressir/express/extension.rb
expressir-1.3.0.pre.1 lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-x86_64-linux-gnu lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-x86_64-darwin lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-x64-mingw32 lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-x64-mingw-ucrt lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-arm64-darwin lib/expressir/express/extension.rb
expressir-1.3.0.pre.1-aarch64-linux-gnu lib/expressir/express/extension.rb