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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8b2563b2cee5262ee5814315a9e6fc0a28ccc3a
4
- data.tar.gz: 3cac7286f0393bc2eeaab9907b0807901663c361
3
+ metadata.gz: '0739b94d694330a419e7c94ed995d510f2c90873'
4
+ data.tar.gz: 404c5a0b2384b649053f8825eeec14ec03368e42
5
5
  SHA512:
6
- metadata.gz: 5068c77e8ee41c18ae173fa25787279a34914da4d92ff3ad1e8f860da4377d4229087870b3ce8763c84fa0696246a6ed99596dc4f58418506cd1b33894413fb9
7
- data.tar.gz: 447c4f636a5f790fee70d263fe1915e967a04fe31954b146bc911b2fc24de51713c3eaf00be8862dd436d305cfb8c6fa8b7ffa951f8e712b6c6cbbe9732bd35d
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 LoadError, "The libnats library (or DLL) could not be loaded"
75
+ raise error
77
76
  end
78
77
 
79
78
  enum :NATS_CONN_STATUS, [
@@ -1,7 +1,7 @@
1
1
  module FFI
2
2
  module Nats
3
3
  module Core
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-nats-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt