ffi-nats-core 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ffi/nats/core.rb +3 -4
- data/lib/ffi/nats/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0739b94d694330a419e7c94ed995d510f2c90873'
|
4
|
+
data.tar.gz: 404c5a0b2384b649053f8825eeec14ec03368e42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d49077b5e2bc33b4650ae9dcad9affa2ad56d3f44caaf2cda167284786c15372c1b63454b1652c02bf8e0693b9c6c194326fd70751afd62cb45a16e28c7f2e0
|
7
|
+
data.tar.gz: a281d0491bbee938863efc3a4be445a07b0c12b8cb080f2b7fe4d3c5078c81e5c01a51bd90c49afb359facb1838dd22a00381fc4c5de48cfcb1f74d56072d128
|
data/lib/ffi/nats/core.rb
CHANGED
@@ -56,9 +56,8 @@ module FFI
|
|
56
56
|
]).compact.map{|path| "#{path}/libnats.#{FFI::Platform::LIBSUFFIX}"}
|
57
57
|
ffi_lib(NATS_LIB_PATHS + %w{libnats})
|
58
58
|
|
59
|
-
rescue LoadError
|
60
|
-
if NATS_LIB_PATHS.any? {|path|
|
61
|
-
File.file? File.join(path, "libnats.#{FFI::Platform::LIBSUFFIX}")}
|
59
|
+
rescue LoadError => error
|
60
|
+
if NATS_LIB_PATHS.any? {|path| File.file? File.join(path) }
|
62
61
|
warn "Unable to load this gem. The libnats library exists, but cannot be loaded."
|
63
62
|
warn "Set NATS_LIB_PATH if custom load path is desired"
|
64
63
|
warn "If this is Windows:"
|
@@ -73,7 +72,7 @@ module FFI
|
|
73
72
|
warn "For non-Windows platforms, make sure libnats is located in this search path:"
|
74
73
|
warn NATS_LIB_PATHS.inspect
|
75
74
|
end
|
76
|
-
raise
|
75
|
+
raise error
|
77
76
|
end
|
78
77
|
|
79
78
|
enum :NATS_CONN_STATUS, [
|