Sha256: 6d8304b9b994fe2c3b0788efc02f89cbc80ad0a5949907f302cc2bae63f32b4e
Contents?: true
Size: 1.04 KB
Versions: 14
Compression:
Stored size: 1.04 KB
Contents
native_loaded = false if %w{false off 0}.include?((ENV['FORTITUDE_NATIVE_EXTENSIONS'] || '').strip.downcase) $stderr.puts <<-EOM WARNING: Fortitude native extensions disabled via environment variable FORTITUDE_NATIVE_EXTENSIONS. Performance may be reduced by a factor of 3-5x! EOM else begin if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' require 'fortitude_jruby_native_ext.jar' else require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fortitude_native_ext')) end native_loaded = true rescue LoadError => le $stderr.puts <<-EOM WARNING: The Fortitude gem cannot load its native extensions. Performance may be reduced by a factor of 3-5x! Load path: #{$:.join("\n ")} Error: #{le.message} (#{le.class}) EOM native_loaded = false end end unless native_loaded require 'fortitude/extensions/fortitude_ruby_ext' end require 'active_support' ::ActiveSupport::SafeBuffer.class_eval { public :original_concat } if defined?(::ActiveSupport::SafeBuffer)
Version data entries
14 entries across 14 versions & 1 rubygems