lbfgsb 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: b8b981810814f144065eb51dadf5c310ce4eaa5080e1cb4092189dbe916387bf
4
- data.tar.gz: 1ba3ff6d1cfe6fe0e0a707963b39554d7ad2c1e8be8829d8eaf1918ffd743adf
3
+ metadata.gz: d1f3f5f5da7974bebb0bbcefe90295530afe121de4981f0bf44af92d9acaefb3
4
+ data.tar.gz: 75c70e0eece746c5cad39e8bf52ce7cf98f4c3bcd0ac17057b8c8c4ecd26d92e
5
5
  SHA512:
6
- metadata.gz: 778a041c3072451e86dccd5d75850540fc2503d49f14e1a4c11db9c20f05f0d427627f2f17c5931fe90dba68ba3ab5760b4f59a811f5af19eb5f0ce12ab0891c
7
- data.tar.gz: 01d735e9f03a3bc4615cf5b471a2c88bc210663b7d268edf0898c5936e50a2b636cfd8ee6e1664c6d225c6872aa7108bd00aece439629a4d5c691d90bd6e7913
6
+ metadata.gz: f3f4284185cc16174bbe3570f48127ae091c0c9a476dd3771f3b28e171f60965d95410a79a00cd7bc3ccc64c3ea2c8c393dcc58161e9fb56b060ddad8b62ed8a
7
+ data.tar.gz: 669c4675de248d73becb0a2867a640dcd8f4c51d01a5671502295c81b1837f738598a1c01899a332859915bae790f4b099754dfc4b254545059daaa3471ef419
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.5.2
2
+ - Fix build failure with Xcode 14 and Ruby 3.1.x.
3
+
1
4
  ## 0.5.1
2
5
  - Refactor codes and configs with RuboCop.
3
6
 
@@ -33,6 +33,12 @@ $srcs = Dir.glob("#{$srcdir}/**/*.c").map { |path| File.basename(path) }
33
33
  blas_dir = with_config('blas-dir')
34
34
  $LDFLAGS = "-L#{blas_dir} #{$LDFLAGS}" unless blas_dir.nil?
35
35
 
36
+ if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.new(RUBY_VERSION)
37
+ if try_link('int main(void){return 0;}', '-Wl,-undefined,dynamic_lookup')
38
+ $LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
39
+ end
40
+ end
41
+
36
42
  blas_lib = with_config('blas-lib')
37
43
  unless blas_lib.nil?
38
44
  abort "#{blas_lib} not found." unless have_library(blas_lib)
@@ -3,5 +3,5 @@
3
3
  # Lbfgsb.rb is a Ruby binding for L-BFGS-B with Numo::NArray.
4
4
  module Lbfgsb
5
5
  # The version of Lbfgsb.rb you are using.
6
- VERSION = '0.5.1'
6
+ VERSION = '0.5.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbfgsb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2022-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.33
78
+ rubygems_version: 3.3.26
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Lbfgsb.rb is a Ruby binding for L-BFGS-B.