ngt 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6b9362e0da232f074b026b2545275061b9bac6e6124d6927e1bb7d798ac61e1
4
- data.tar.gz: afa434689a718d77e944e12c8322258d6e5c064e99545f872c5d6cb1cffa614e
3
+ metadata.gz: 89f2db7c752c18204d919ce1e9e31c54ea4dfdc3b0eb3b7ef217cc7e8eb307ba
4
+ data.tar.gz: 9107ef7b7031bd4c505ebee899ae37c133c78eeff0163b821551b729e9226a8e
5
5
  SHA512:
6
- metadata.gz: 2e676a72eda431ab954a1dcd77e6e7ae2ed843eb3bff1dcc8ae479b1c176a99bfaaa1dd27a6f79ef2f7eca0f6ceb6a35a5bf74a58b38cdda46b676aa0b5adc2d
7
- data.tar.gz: ee1b5d27e178712b42ba9d5a6380e0c1d0ea9a9ac6e5941fca60fdd3a4e2ea5d9266f31dfdd79f117fe7fba08bbb92a21d93a363168ca36aa839d303c9e9deae
6
+ metadata.gz: bb51444bb650956a21c65c49cea24fd43b3898f911d272fde69fe94871f07388f56b23bb210ceff7fd6ed1434fe1eed6fd79da34968c42addc736ac13dc400b7
7
+ data.tar.gz: 96759d2737aa7c432c05ed9ee86ac0e30d02c9599aa04dfb9250c3907cfa79b153def0bff1aa009cafa74bd7dda85cc9bdfdf440f6a6f96b240013a15bce0642
@@ -1,3 +1,8 @@
1
+ ## 0.3.1 (2020-05-17)
2
+
3
+ - Updated NGT to 1.11.5
4
+ - Improved error message when OpenMP not found on Mac
5
+
1
6
  ## 0.3.0 (2020-03-25)
2
7
 
3
8
  - Updated NGT to 1.10.0
@@ -2,7 +2,15 @@ module Ngt
2
2
  module FFI
3
3
  extend ::FFI::Library
4
4
 
5
- ffi_lib Ngt.ffi_lib
5
+ begin
6
+ ffi_lib Ngt.ffi_lib
7
+ rescue LoadError => e
8
+ if e.message.include?("Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib") && e.message.include?("Reason: image not found")
9
+ raise LoadError, "OpenMP not found. Run `brew install libomp`"
10
+ else
11
+ raise e
12
+ end
13
+ end
6
14
 
7
15
  # https://github.com/yahoojapan/NGT/blob/master/lib/NGT/Capi.h
8
16
  # keep same order
@@ -1,3 +1,3 @@
1
1
  module Ngt
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi