numo-random 0.6.2 → 0.8.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: b4208ed4ac8b83d7f15a55bc2d7419c928140920d8d77c49722bc9f8d15a506c
4
- data.tar.gz: 6cfca57abf2afedf7fb4437c77101c9adefb885145ce49131291d2f08c5f0d52
3
+ metadata.gz: 5a9f198cd2efe4ef1f65eba6520fcc798678f33ef9a8a18a320e99d9459debc2
4
+ data.tar.gz: b75cb10b2f68140b21a67ed8d136f80511554453346a5a6d6ebee537773c67b0
5
5
  SHA512:
6
- metadata.gz: 8aaac5c7d6439ee89bf9784651b58801306aa0a83061523fdc91bdfdd98575b305d26befd7e71bd77e87efeaf8a34cf256eec9b778cf12d981bb3979c6332833
7
- data.tar.gz: e3c345a263c7c8ddb4ef6eb91c322640bddb073986b8d56c9b414d776b5324778f95bb5bd4e0e0bc81ef3241921990b5222b20db893fe6163da680fd3c275b6b
6
+ metadata.gz: 3b123e5f0270559915e63df030a592edecdb9665b29e229568d7600bd8e822a172b19cbe09d097f4333dc39c4153e21bd865d27667fd586b537914144408e843
7
+ data.tar.gz: fc247c074f33d6f8c01cc6b78822a400aabd6396667f20f0c426e17ca3614f04304d6c30e71d000ce469ca411adc3b13bc874fda55a2644bf54a7b0ae52f948b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [[0.8.0](https://github.com/yoshoku/numo-random/compare/v0.7.0...v0.8.0)] - 2026-07-05
2
+
3
+ - relax numo-narray-alt upper bound to < 0.12.0.
4
+
5
+ ## [[0.7.0](https://github.com/yoshoku/numo-random/compare/v0.6.2...v0.7.0)] - 2026-02-06
6
+
7
+ - relax numo-narray-alt version constraint to >= 0.9.10, < 0.11.0.
8
+
1
9
  ## [[0.6.2](https://github.com/yoshoku/numo-random/compare/v0.6.1...v0.6.2)] - 2025-11-19
2
10
 
3
11
  - Fix to use require for compatibility with distributions installing extensions separately.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Numo::Random provides random number generation with several distributions for Numo::NArray.
3
3
  *
4
- * Copyright (c) 2022-2025 Atsushi Tatsuma
4
+ * Copyright (c) 2022-2026 Atsushi Tatsuma
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Numo::Random provides random number generation with several distributions for Numo::NArray.
3
3
  *
4
- * Copyright (c) 2022-2025 Atsushi Tatsuma
4
+ * Copyright (c) 2022-2026 Atsushi Tatsuma
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -20,19 +20,6 @@ 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
- have_libcpp = false
24
- if RUBY_PLATFORM.include?('darwin')
25
- if have_library('c++')
26
- have_libcpp = true
27
- else
28
- warn 'libc++ is not found.'
29
- end
30
- end
31
-
32
- if !have_libcpp && !RUBY_PLATFORM.include?('mswin')
33
- warn 'libstdc++ is not found.' unless have_library('stdc++')
34
- end
35
-
36
23
  $CXXFLAGS << " -std=c++11"
37
24
  $INCFLAGS << " -I$(srcdir)/src"
38
25
  $VPATH << "$(srcdir)/src"
@@ -3,6 +3,6 @@
3
3
  module Numo
4
4
  module Random
5
5
  # The version of Numo::Random you install.
6
- VERSION = '0.6.2'
6
+ VERSION = '0.8.0'
7
7
  end
8
8
  end
data/lib/numo/random.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'numo/narray/alt'
4
4
 
5
5
  require_relative 'random/version'
6
- # On distributions like Rocky Linux, native extensions are installed in a separate
6
+ # On RHEL-based Linux distributions, native extensions are installed in a separate
7
7
  # directory from Ruby code, so use require to load them.
8
8
  require 'numo/random/ext'
9
9
  require_relative 'random/generator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-random
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
@@ -13,16 +13,22 @@ dependencies:
13
13
  name: numo-narray-alt
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
18
  version: 0.9.10
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 0.12.0
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - "~>"
26
+ - - ">="
24
27
  - !ruby/object:Gem::Version
25
28
  version: 0.9.10
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: 0.12.0
26
32
  description: Numo::Random provides random number generation with several distributions
27
33
  for Numo::NArray.
28
34
  email:
@@ -53,7 +59,7 @@ metadata:
53
59
  homepage_uri: https://github.com/yoshoku/numo-random
54
60
  source_code_uri: https://github.com/yoshoku/numo-random
55
61
  changelog_uri: https://github.com/yoshoku/numo-random/blob/main/CHANGELOG.md
56
- documentation_uri: https://gemdocs.org/gems/numo-random/0.6.2/
62
+ documentation_uri: https://gemdocs.org/gems/numo-random/0.8.0/
57
63
  rubygems_mfa_required: 'true'
58
64
  rdoc_options: []
59
65
  require_paths:
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.7.2
78
+ rubygems_version: 4.0.13
73
79
  specification_version: 4
74
80
  summary: Numo::Random provides random number generation with several distributions
75
81
  for Numo::NArray.