Skip to content

Commit dcb1afa

Browse files
Fix installation on jruby (#5)
1 parent f3dd559 commit dcb1afa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ext/libmongocrypt/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
system(MAKE)
4646
end
4747

48-
lib_file_extension = case RUBY_PLATFORM
48+
lib_file_extension = case RbConfig::CONFIG['target_os']
4949
when /linux/ then "so"
5050
when /darwin/ then "dylib"
51-
else abort "ERROR: this gem supports only linux and macos"
51+
else abort "ERROR: this gem supports only linux and macos, #{RbConfig::CONFIG['target_os']} is not supported"
5252
end
5353

5454
lib_file = File.join(build_dir, "#{extension_name}.#{lib_file_extension}")

lib/libmongocrypt_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
module LibmongocryptHelper
44
def libmongocrypt_path
55
@libmongocrypt_path ||= begin
6-
lib_file_extension = case RUBY_PLATFORM
6+
lib_file_extension = case RbConfig::CONFIG['target_os']
77
when /linux/ then "so"
88
when /darwin/ then "dylib"
9-
else raise "ERROR: this gem supports only linux and macos"
9+
else raise "ERROR: this gem supports only linux and macos, #{RbConfig::CONFIG['target_os']} is not supported"
1010
end
1111

1212
File.join(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module LibmongocryptHelper
2-
VERSION = '1.7.4.0.1001'
2+
VERSION = '1.7.4.0.1002'
33

44
LIBMONGOCRYPT_VERSION = '1.7.4'
55
end

0 commit comments

Comments
 (0)