Module: LibmongocryptHelper
- Defined in:
- lib/libmongocrypt_helper.rb,
lib/libmongocrypt_helper/version.rb
Constant Summary collapse
- VERSION =
'1.14.0.0.1001'- LIBMONGOCRYPT_VERSION =
'1.14.0'
Class Method Summary collapse
Class Method Details
.libmongocrypt_path ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/libmongocrypt_helper.rb', line 4 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 |