numo-libsvm 2.3.0 → 3.0.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: b29c8702582263f5465fc49e1d3ba7b7efedaa895d3eb988a7167393b64d98e0
4
- data.tar.gz: 90906818ef9c3b8120a98961da0a845acdfd4c079d5ed5266c1df7706fa39db1
3
+ metadata.gz: 10d7ba229178a10bee36cd31ffd005984fa007b5f63dbd4b282b300f3820f02f
4
+ data.tar.gz: 713c171d6bd151846b31e27a586db5db0b70f7bb98cfda4c08da39a044056260
5
5
  SHA512:
6
- metadata.gz: e50f643d7b4b4ff55a61abeb2c297a8caebe60adb214f172da17bd569705edc71883aae780ecb5dbca3999571fffcd9cffb1057efcf23c697cb531c1cad17609
7
- data.tar.gz: b1e45d76573c025deb93c7a29360320a1fe89172a79738a76f6f7561bd91e4443a49f4a108ab5e2cc99048b6e9132756c592915b92257ac6d7abff6f936ddb35
6
+ metadata.gz: 69fb57aedba1d02c522d42504be52bea1540973f33af4ef06e4310bca9be75ab954ec7f77c0c565f0b5c3e82fa74469848fb2c74a9c5dbb500fc003d54445e76
7
+ data.tar.gz: 99abcc664b6f62d7ebf9993e8c3ee2a97ca3546407c97184d115c806b79671fc16d4db2c7675caaf11cb8fe39edca8c4ec5405f0d834e1f697282dab3f1248d0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [[3.0.0](https://github.com/yoshoku/numo-libsvm/compare/v2.3.0...v3.0.0)] - 2025-10-01
2
+
3
+ **Breaking chage**
4
+
5
+ - Change dependency from numo-narray to [numo-narray-alt](https://github.com/yoshoku/numo-narray-alt).
6
+
1
7
  # 2.3.0
2
8
  - Update bundled LIBSVM to 3.35.
3
9
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019-2024 Atsushi Tatsuma
1
+ Copyright (c) 2019-2025 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -15,6 +15,8 @@ Note: There are other useful Ruby gems binding to LIBSVM:
15
15
  [libsvm-ruby-swig](https://github.com/tomz/libsvm-ruby-swig) by Tom Zeng,
16
16
  and [jrb-libsvm](https://github.com/andreaseger/jrb-libsvm) by Andreas Eger.
17
17
 
18
+ Note: Since v3.0.0, this library uses [Numo::NArray Alternative](https://github.com/yoshoku/numo-narray-alt) instead of Numo::NArray as a dependency.
19
+
18
20
  ## Installation
19
21
  Numo::Libsvm bundles LIBSVM. There is no need to install LIBSVM in advance.
20
22
 
@@ -26,7 +26,18 @@ if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.n
26
26
  end
27
27
  end
28
28
 
29
- abort 'libstdc++ is not found.' unless have_library('stdc++')
29
+ have_libcpp = false
30
+ if RUBY_PLATFORM.include?('darwin')
31
+ if have_library('c++')
32
+ have_libcpp = true
33
+ else
34
+ warn 'libc++ is not found.'
35
+ end
36
+ end
37
+
38
+ if !have_libcpp && !RUBY_PLATFORM.include?('mswin')
39
+ warn 'libstdc++ is not found.' unless have_library('stdc++')
40
+ end
30
41
 
31
42
  $srcs = Dir.glob("#{$srcdir}/**/*.cpp").map { |path| File.basename(path) }
32
43
  $INCFLAGS << " -I$(srcdir)/src"
@@ -1,7 +1,7 @@
1
1
  #ifndef _LIBSVM_H
2
2
  #define _LIBSVM_H
3
3
 
4
- #define LIBSVM_VERSION 335
4
+ #define LIBSVM_VERSION 336
5
5
 
6
6
  #ifdef __cplusplus
7
7
  extern "C" {
@@ -3,6 +3,6 @@
3
3
  module Numo
4
4
  module Libsvm
5
5
  # The version of Numo::Libsvm you are using.
6
- VERSION = '2.3.0'
6
+ VERSION = '3.0.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,28 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-libsvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2024-12-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
- name: numo-narray
13
+ name: numo-narray-alt
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.9.1
18
+ version: 0.9.3
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - ">="
23
+ - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.9.1
25
+ version: 0.9.3
26
26
  description: |
27
27
  Numo::Libsvm is a Ruby gem binding to the LIBSVM library.
28
28
  LIBSVM is one of the famous libraries that implemented Support Vector Machines,
@@ -53,7 +53,8 @@ licenses:
53
53
  metadata:
54
54
  homepage_uri: https://github.com/yoshoku/numo-libsvm
55
55
  source_code_uri: https://github.com/yoshoku/numo-libsvm
56
- documentation_uri: https://yoshoku.github.io/numo-libsvm/doc/
56
+ changelog_uri: https://github.com/yoshoku/numo-libsvm/blob/main/CHANGELOG.md
57
+ documentation_uri: https://gemdocs.org/gems/numo-libsvm/3.0.0/
57
58
  rubygems_mfa_required: 'true'
58
59
  rdoc_options: []
59
60
  require_paths:
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
70
  - !ruby/object:Gem::Version
70
71
  version: '0'
71
72
  requirements: []
72
- rubygems_version: 3.6.2
73
+ rubygems_version: 3.6.9
73
74
  specification_version: 4
74
75
  summary: Numo::Libsvm is a Ruby gem binding to the LIBSVM library. Numo::Libsvm makes
75
76
  to use the LIBSVM functions with dataset represented by Numo::NArray.