lightgbm 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 3e96db22130e67fb4ab2c089af66a0f055cffec956a61aa9c6bb1a0d92247d60
4
- data.tar.gz: cb6d5b97a1b6cf6f19e1ddd87b5c9e83e77bccde240737c38d16f2f4cacfadab
3
+ metadata.gz: 5fb9ecd85bab15bf4edcf200de81cb1d4a70a743810ca67ca77e28c957d492c8
4
+ data.tar.gz: 56b063a0ba3f1a2db796e701f5e1d96625b4f03340defd540b160552aa24e577
5
5
  SHA512:
6
- metadata.gz: a896b4962db67fd0776faeb25639758825f70b7c6d0278a396b3fa24036f3ceb290192c1a311e57da3b5e1eda1a7990226a5ac1294feaff570c3e8988fca8578
7
- data.tar.gz: 051e876e4391e1bc135b20a2ace4e6fadc3337919ca4ccab725f4234e7cf9ce9bfc04dce81cca5ec21e366a10a3353df3bc074c63ef6e1c41e35268a78f5a341
6
+ metadata.gz: 69085b60d683816b9286f504c7901b969d8070d0fe3e8dacc7efd4beff99cdf0fca9f094b45235cb4119ea8a19e570c0463d8a21d947f6c0c412c3b41bc1f6a9
7
+ data.tar.gz: 3e5274aefd850b3590cedbb58e09c96152fe0c166f6a929b373c850fd3c39ee3fcbfdd4b5609c8da22dd019dca1658f6784c5b6e2bd1cc5791507ee10617d57c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 (2021-03-09)
2
+
3
+ - Added ARM shared library for Mac
4
+
1
5
  ## 0.2.2 (2020-12-07)
2
6
 
3
7
  - Updated LightGBM to 3.1.1
data/lib/lightgbm.rb CHANGED
@@ -19,7 +19,12 @@ module LightGBM
19
19
  class << self
20
20
  attr_accessor :ffi_lib
21
21
  end
22
- lib_name = "lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
22
+ lib_name =
23
+ if RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm/i
24
+ "lib_lightgbm.arm64.#{::FFI::Platform::LIBSUFFIX}"
25
+ else
26
+ "lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
27
+ end
23
28
  vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
24
29
  self.ffi_lib = [lib_name, "lib_lightgbm.so", vendor_lib]
25
30
 
data/lib/lightgbm/ffi.rb CHANGED
@@ -5,7 +5,7 @@ module LightGBM
5
5
  begin
6
6
  ffi_lib LightGBM.ffi_lib
7
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")
8
+ if ["/usr/local", "/opt/homebrew"].any? { |v| e.message.include?("Library not loaded: #{v}/opt/libomp/lib/libomp.dylib") } && e.message.include?("Reason: image not found")
9
9
  raise LoadError, "OpenMP not found. Run `brew install libomp`"
10
10
  else
11
11
  raise e
@@ -1,3 +1,3 @@
1
1
  module LightGBM
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightgbm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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-12-08 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -24,62 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '5'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '5'
69
- - !ruby/object:Gem::Dependency
70
- name: daru
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
27
  description:
84
28
  email: andrew@chartkick.com
85
29
  executables: []
@@ -100,6 +44,7 @@ files:
100
44
  - lib/lightgbm/utils.rb
101
45
  - lib/lightgbm/version.rb
102
46
  - vendor/LICENSE
47
+ - vendor/lib_lightgbm.arm64.dylib
103
48
  - vendor/lib_lightgbm.dll
104
49
  - vendor/lib_lightgbm.dylib
105
50
  - vendor/lib_lightgbm.so
@@ -122,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
67
  - !ruby/object:Gem::Version
123
68
  version: '0'
124
69
  requirements: []
125
- rubygems_version: 3.1.4
70
+ rubygems_version: 3.2.3
126
71
  signing_key:
127
72
  specification_version: 4
128
73
  summary: High performance gradient boosting for Ruby