numo-liblinear 2.1.1 → 2.2.1

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: da7218c002f8aaf80578116ddb102cd866b3ec50c585412f8e7fd0d320332ba0
4
- data.tar.gz: 7d763d787e4458977722eeb531355a37d181934b881f2b23ae9e0adbf72bc9ac
3
+ metadata.gz: fbd4a8fc87f4ae430183e396e9977337f31b0f3abe565045f7216cd49c30857d
4
+ data.tar.gz: 03b97573731e979cda4d3e4d71b6647a6e16b3133fb9227be366292b80135986
5
5
  SHA512:
6
- metadata.gz: e10b86d373e13b813c9685f5bfd37efeb984a513345de7d38a52f38d44b78db6673b93b3ce56637ac1c25e62922af43232e5aed796fb3eff9fd4c9f7658b1638
7
- data.tar.gz: 4b693278b26de842bbe7e5968157a3bc84c4f230aeda64f997b7d98f3fda1dca6053044e9d9c41822a35de89b526d0490eafa9bdbb6b9adb3a9f7384ea96f06e
6
+ metadata.gz: 139cacb7349ebf5bee31b2292aa1de97eefbdc565affd44390359bf25a91e806d402c7d4104015fd1d6eba9b030b9fda5a7307f00923eaf259e90737559f1391
7
+ data.tar.gz: cc50ab17ba43f8d59f83c97daa50d0da5750473fd0b65913b51223b253157b058464b17c7b499e240496c2065eb2f7ef12cb161575bfbce53eb2ceb117967b22
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 2.2.1
2
+ - Fix build failure with Xcode 14 and Ruby 3.1.x.
3
+
4
+ # 2.2.0
5
+ - Update bundled LIBLINEAR to 2.45
6
+
1
7
  # 2.1.1
2
8
  - Refactor codes and configs with RuboCop.
3
9
 
@@ -20,6 +20,12 @@ if RUBY_PLATFORM =~ /mswin|cygwin|mingw/
20
20
  abort 'libnarray.a not found.' unless have_library('narray', 'nary_new')
21
21
  end
22
22
 
23
+ if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.new(RUBY_VERSION)
24
+ if try_link('int main(void){return 0;}', '-Wl,-undefined,dynamic_lookup')
25
+ $LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
26
+ end
27
+ end
28
+
23
29
  abort 'libstdc++ is not found.' unless have_library('stdc++')
24
30
 
25
31
  $srcs = Dir.glob("#{$srcdir}/**/*.cpp").map { |path| File.basename(path) }
@@ -658,7 +658,7 @@ void Solver_MCSVM_CS::Solve(double *w)
658
658
  {
659
659
  int i, m, s;
660
660
  int iter = 0;
661
- double *alpha = new double[l*nr_class];
661
+ double *alpha = new double[l*nr_class];
662
662
  double *alpha_new = new double[nr_class];
663
663
  int *index = new int[l];
664
664
  double *QD = new double[l];
@@ -1,7 +1,7 @@
1
1
  #ifndef _LIBLINEAR_H
2
2
  #define _LIBLINEAR_H
3
3
 
4
- #define LIBLINEAR_VERSION 244
4
+ #define LIBLINEAR_VERSION 245
5
5
 
6
6
  #ifdef __cplusplus
7
7
  extern "C" {
@@ -3,6 +3,6 @@
3
3
  module Numo
4
4
  module Liblinear
5
5
  # The version of Numo::Liblienar you are using.
6
- VERSION = '2.1.1'
6
+ VERSION = '2.2.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-liblinear
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.1
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-09 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
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubygems_version: 3.2.33
81
+ rubygems_version: 3.3.26
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Numo::Liblinear is a Ruby gem binding to the LIBLINEAR library. Numo::Liblinear