numo-optimize 0.2.2 → 0.2.3

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: 494f842f2dfe1df5163826fbb0905dd1d434886ae05afeb5e93533d56a2f1996
4
- data.tar.gz: e4e27b61392041458c92f46aac62977672da7c84ba9f75555723c63da0e34ac1
3
+ metadata.gz: 5a2f3fa5f75770e13676cc474bf58428a73420aaa80c460145657ee4f51c3657
4
+ data.tar.gz: 66ad13230045c15dc1cb065fe4c3dd3a7e096051fdf34c645226ba3549460d71
5
5
  SHA512:
6
- metadata.gz: 76d1d6d28db23bb8e2d5ac0855b42ecdff06453b5c74515d808ef1673ed903b440986616112b1f3a5937c5a7683f08b30400c7dbd480b36e1ca759fb8d19902c
7
- data.tar.gz: 23495b34a2673c7cbe9fde44893b14804b4049b317964b6ee481089c8af8487eb52f4e9c7a46163ec2246ded2367cac255833406fcb26ac545340b16ff74b581
6
+ metadata.gz: b9102e5565035ae05f4564becad7233b1181530ab8ddca23aae4fc87b72245daaf6ff444c3ef56d8b2b6bbb5ce2695a010f7fe097bee085bf50d539c8f7c8992
7
+ data.tar.gz: 3f03cb7a487a1cc176e8caa6aa15f447b17dca6dc9d70bf0427083e0900667857d8b78bf17368264bed3b91a75e86dc5188288af37cebea8eac7dfd105a7fa6b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [[0.2.3](https://github.com/yoshoku/numo-optimize/compare/v0.2.2...v0.2.3)] - 2025-12-03
2
+
3
+ - Update CFLAGS and LDFLAGS for native extensions to match those in [lbfgsb.rb](https://github.com/yoshoku/lbfgsb.rb).
4
+
1
5
  ## [[0.2.2](https://github.com/yoshoku/numo-optimize/compare/v0.2.1...v0.2.2)] - 2025-11-18
2
6
 
3
7
  - Fix to use require for compatibility with distributions installing extensions separately.
@@ -29,6 +29,12 @@ $srcs = Dir.glob("#{$srcdir}/**/*.c").map { |path| File.basename(path) }
29
29
  blas_dir = with_config('blas-dir')
30
30
  $LDFLAGS = "-L#{blas_dir} #{$LDFLAGS}" unless blas_dir.nil?
31
31
 
32
+ if RUBY_PLATFORM.include?('darwin') && Gem::Version.new('3.1.0') <= Gem::Version.new(RUBY_VERSION) && try_link(
33
+ 'int main(void){return 0;}', '-Wl,-undefined,dynamic_lookup'
34
+ )
35
+ $LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
36
+ end
37
+
32
38
  blas_lib = with_config('blas-lib')
33
39
  unless blas_lib.nil?
34
40
  abort "#{blas_lib} not found." unless have_library(blas_lib)
@@ -37,9 +43,4 @@ end
37
43
 
38
44
  $VPATH << '$(srcdir)/src'
39
45
 
40
- # Makes all symbols private by default to avoid unintended conflict
41
- # with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTED
42
- # selectively, or entirely remove this flag.
43
- append_cflags('-fvisibility=hidden')
44
-
45
46
  create_makefile('numo/optimize/optimize')
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::Optimize provides functions for minimizing objective functions.
6
6
  module Optimize
7
7
  # The version of numo-optimize you install.
8
- VERSION = '0.2.2'
8
+ VERSION = '0.2.3'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-optimize
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
  - yoshoku
@@ -59,7 +59,7 @@ metadata:
59
59
  homepage_uri: https://github.com/yoshoku/numo-optimize
60
60
  source_code_uri: https://github.com/yoshoku/numo-optimize
61
61
  changelog_uri: https://github.com/yoshoku/numo-optimize/blob/main/CHANGELOG.md
62
- documentation_uri: https://gemdocs.org/gems/numo-optimize/0.2.2/
62
+ documentation_uri: https://gemdocs.org/gems/numo-optimize/0.2.3/
63
63
  rubygems_mfa_required: 'true'
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -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.6.9
78
+ rubygems_version: 3.7.2
79
79
  specification_version: 4
80
80
  summary: Numo::Optimize provides functions for minimizing objective functions.
81
81
  test_files: []