gslr 0.2.0 → 0.3.0

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: a7af3797056273914ab4704feeadb1d5262641bcf45cc007c0935c6de24b2dc0
4
+ data.tar.gz: 2845afb6e1a0687f577a760299a9c52e6116f45b1d555eab436d197a546ed19b
5
5
  SHA512:
6
- metadata.gz: 257651df760713ed75f60907c423dd6bcdd4bbd63621d89bd2243269631311d07ea1b9045b4d3adcdfc2d8499f29eec9e29983fc0e3f71a572715ed363429432
7
- data.tar.gz: 2baadaa2e4da0650ccd630549e57ca3cbfe3781d278ee2653602a12062a586427cef50fd980cd8563a7efa6565464b39b1b323fba41ef02ee269577c8fcfaae7
6
+ metadata.gz: 0bedd4c0168039ce898f5129d2063f21541cc0e753e797e4852aa4d8dda523d412309d0e2109f7eff22c44906a0c6ba20687b5e63844e2f0bc36ef71c4d80fd5
7
+ data.tar.gz: 88ea46e968b048b0a90dbd766c4db0408c2fe48e86d05f26676d755bf13b7c93f9af2b6c7cc39f0fbdcbab45dfd92770ba337eab1a31c373887d31faca1964ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.0 (2024-10-22)
2
+
3
+ - Dropped support for Ruby < 3.1
4
+
5
+ ## 0.2.1 (2023-06-07)
6
+
7
+ - Improved support for Mac ARM
8
+
1
9
  ## 0.2.0 (2022-09-02)
2
10
 
3
11
  - Fixed error on Mac
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  :fire: High performance linear regression for Ruby, powered by [GSL](https://www.gnu.org/software/gsl/)
4
4
 
5
- [![Build Status](https://github.com/ankane/gslr/workflows/build/badge.svg?branch=master)](https://github.com/ankane/gslr/actions)
5
+ [![Build Status](https://github.com/ankane/gslr/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/gslr/actions)
6
6
 
7
7
  ## Installation
8
8
 
data/lib/gslr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GSLR
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
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,15 +1,29 @@
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.3.0
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
12
- dependencies: []
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fiddle
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description:
14
28
  email: andrew@ankane.org
15
29
  executables: []
@@ -38,14 +52,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
52
  requirements:
39
53
  - - ">="
40
54
  - !ruby/object:Gem::Version
41
- version: '2.7'
55
+ version: '3.1'
42
56
  required_rubygems_version: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - ">="
45
59
  - !ruby/object:Gem::Version
46
60
  version: '0'
47
61
  requirements: []
48
- rubygems_version: 3.3.7
62
+ rubygems_version: 3.5.16
49
63
  signing_key:
50
64
  specification_version: 4
51
65
  summary: High performance linear regression for Ruby, powered by GSL