lbfgsb 0.5.1 → 0.6.0

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: b8b981810814f144065eb51dadf5c310ce4eaa5080e1cb4092189dbe916387bf
4
- data.tar.gz: 1ba3ff6d1cfe6fe0e0a707963b39554d7ad2c1e8be8829d8eaf1918ffd743adf
3
+ metadata.gz: 3c3f33196eb938f4a0cc9d2a7bd1e127c72a4cc5475ed196759564cd3dac6d47
4
+ data.tar.gz: 04acc17d38ec7d4414b68a23fc76191419473062dc83c73f0116af35f66381e1
5
5
  SHA512:
6
- metadata.gz: 778a041c3072451e86dccd5d75850540fc2503d49f14e1a4c11db9c20f05f0d427627f2f17c5931fe90dba68ba3ab5760b4f59a811f5af19eb5f0ce12ab0891c
7
- data.tar.gz: 01d735e9f03a3bc4615cf5b471a2c88bc210663b7d268edf0898c5936e50a2b636cfd8ee6e1664c6d225c6872aa7108bd00aece439629a4d5c691d90bd6e7913
6
+ metadata.gz: 7154033adc39528214e267499b28d1fb2d93d60fe2207a30d6b5c1a27ac525d54f59be970412fed52ccecebe44b5aaf32cdd93d8a8e6d2a153de1c872d7912b5
7
+ data.tar.gz: 0b9257fe60ea07b15d5a5d68e7ab6aeaac47aaa112d3daa091c5e6c88835f357f0c8223c209541c61164577f3ab0da1061a519c28e2ad1fa0c03ea61f14b2557
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.6.0
2
+ - Remove unmainteined type declaration file.
3
+
4
+ ## 0.5.2
5
+ - Fix build failure with Xcode 14 and Ruby 3.1.x.
6
+
1
7
  ## 0.5.1
2
8
  - Refactor codes and configs with RuboCop.
3
9
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020-2022 Atsushi Tatsuma
1
+ Copyright (c) 2020-2025 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -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.6.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
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.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
10
+ date: 2025-02-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: numo-narray
@@ -50,7 +49,6 @@ files:
50
49
  - ext/lbfgsb/src/linpack.h
51
50
  - lib/lbfgsb.rb
52
51
  - lib/lbfgsb/version.rb
53
- - sig/lbfgsb.rbs
54
52
  homepage: https://github.com/yoshoku/lbfgsb.rb
55
53
  licenses:
56
54
  - BSD-3-Clause
@@ -60,7 +58,6 @@ metadata:
60
58
  changelog_uri: https://github.com/yoshoku/lbfgsb.rb/blob/main/CHANGELOG.md
61
59
  documentation_uri: https://yoshoku.github.io/lbfgsb.rb/doc/
62
60
  rubygems_mfa_required: 'true'
63
- post_install_message:
64
61
  rdoc_options: []
65
62
  require_paths:
66
63
  - lib
@@ -75,8 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
72
  - !ruby/object:Gem::Version
76
73
  version: '0'
77
74
  requirements: []
78
- rubygems_version: 3.2.33
79
- signing_key:
75
+ rubygems_version: 3.6.2
80
76
  specification_version: 4
81
77
  summary: Lbfgsb.rb is a Ruby binding for L-BFGS-B.
82
78
  test_files: []
data/sig/lbfgsb.rbs DELETED
@@ -1,31 +0,0 @@
1
- module Lbfgsb
2
- type result = {
3
- task: String,
4
- x: Numo::DFloat,
5
- fnc: Float,
6
- jcb: Numo::DFloat,
7
- n_iter: Integer,
8
- n_fev: Integer,
9
- n_jev: Integer,
10
- success: bool
11
- }
12
-
13
- VERSION: String
14
-
15
- DBL_EPSILON: Float
16
-
17
- def self?.minimize: (fnc: Method | Proc fnc, x_init: Numo::DFloat x_init, jcb: Method | Proc | bool jcb,
18
- ?args: untyped args, ?bounds: Numo::DFloat? bounds, ?factr: Float factr, ?pgtol: Float pgtol,
19
- ?maxcor: Integer maxcor, ?maxiter: Integer maxiter,
20
- ?verbose: Integer? verbose) -> result
21
-
22
- private
23
-
24
- def self?.fnc: (Method | Proc fnc, Numo::DFloat x, untyped args) -> Float
25
-
26
- def self?.jcb: (Method | Proc jcb, Numo::DFloat x, untyped args) -> Numo::DFloat
27
-
28
- def self?.min_l_bfgs_b: (Method | Proc fnc, Numo::DFloat x, Method | Proc | bool jcb, untyped args,
29
- Numo::DFloat l, Numo::DFloat u, Numo::DFloat nbd, Integer maxcor, Float ftol, Float gtol, Integer maxiter,
30
- Integer? disp) -> result
31
- end