Sha256: 30c7a427055a09f1512fc3e98ce08354b19f80f8469dc7fe5b11f91a171b14e6

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require 'libmongocrypt_helper/version'

module LibmongocryptHelper
  def libmongocrypt_path
    @libmongocrypt_path ||= begin
      lib_file_extension = case RbConfig::CONFIG['target_os']
      when /linux/ then "so"
      when /darwin/ then "dylib"
      else raise "ERROR: this gem supports only linux and macos, #{RbConfig::CONFIG['target_os']} is not supported"
      end

      File.join(
        File.dirname(__FILE__),
        'libmongocrypt',
        "libmongocrypt.#{lib_file_extension}"
      )
    end
  end
  module_function :libmongocrypt_path
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.12.0.0.1001 lib/libmongocrypt_helper.rb
libmongocrypt-helper-1.11.0.0.1001 lib/libmongocrypt_helper.rb
libmongocrypt-helper-1.8.0.0.1001 lib/libmongocrypt_helper.rb
libmongocrypt-helper-1.7.4.0.1002 lib/libmongocrypt_helper.rb