gslr 0.2.0 → 0.2.1

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: 521c330d9040f7959bda2aa653e1151b081145eefcfee8cbdb18d1e795cf020b
4
- data.tar.gz: 34e28e1a9a6920e75d103e58b6f26d86b4bffbd3d5be16f6ae85b2e902ec5567
3
+ metadata.gz: '096a21638b7b984b6a1942d0f9858d5835c3ea10eb1cb84d9128b793dc9e5447'
4
+ data.tar.gz: 2119c1dec30f2ed1c3013c630091268ba3053fd54c104acff98db11570f062d9
5
5
  SHA512:
6
- metadata.gz: 257651df760713ed75f60907c423dd6bcdd4bbd63621d89bd2243269631311d07ea1b9045b4d3adcdfc2d8499f29eec9e29983fc0e3f71a572715ed363429432
7
- data.tar.gz: 2baadaa2e4da0650ccd630549e57ca3cbfe3781d278ee2653602a12062a586427cef50fd980cd8563a7efa6565464b39b1b323fba41ef02ee269577c8fcfaae7
6
+ metadata.gz: 9f6c34852bd83eb6a195958c330afdd781d59b0939a53a9bd41e6ed5fdd8b22a713765b94d3841b6e3d9949df4629161c75e79b24a426da364e7ceca8129c536
7
+ data.tar.gz: 36e9336ce4ff03cf60da3268fc9a4c6237e2227ba9878ea411ca0f6fea57dbc8648dfa6efa20c0655c6069a8d3c9c79a1394cc23d05b681f71be1dd8c66af264
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (2023-06-07)
2
+
3
+ - Improved support for Mac ARM
4
+
1
5
  ## 0.2.0 (2022-09-02)
2
6
 
3
7
  - Fixed error on Mac
data/lib/gslr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GSLR
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/gslr.rb CHANGED
@@ -2,10 +2,10 @@
2
2
  require "fiddle/import"
3
3
 
4
4
  # modules
5
- require "gslr/model"
6
- require "gslr/ols"
7
- require "gslr/ridge"
8
- require "gslr/version"
5
+ require_relative "gslr/model"
6
+ require_relative "gslr/ols"
7
+ require_relative "gslr/ridge"
8
+ require_relative "gslr/version"
9
9
 
10
10
  module GSLR
11
11
  class Error < StandardError; end
@@ -18,8 +18,13 @@ module GSLR
18
18
  if Gem.win_platform?
19
19
  ["gsl.dll"]
20
20
  elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
21
- self.cblas_lib = ["libgslcblas.dylib"]
22
- ["libgsl.dylib"]
21
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
22
+ self.cblas_lib = ["libgslcblas.dylib", "/opt/homebrew/lib/libgslcblas.dylib"]
23
+ ["libgsl.dylib", "/opt/homebrew/lib/libgsl.dylib"]
24
+ else
25
+ self.cblas_lib = ["libgslcblas.dylib"]
26
+ ["libgsl.dylib"]
27
+ end
23
28
  else
24
29
  self.cblas_lib = ["libgslcblas.so"]
25
30
  ["libgsl.so"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gslr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  requirements: []
48
- rubygems_version: 3.3.7
48
+ rubygems_version: 3.4.10
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: High performance linear regression for Ruby, powered by GSL