numo-random 0.6.0 → 0.6.2

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: 1eeb10dc61a62c47df25d130d2974ad137b4ea580daac0eb49f6fe33cf0aa66e
4
- data.tar.gz: a4c77b7d71ab7798c2c2fa142d272ea7e1e9f352c30cf11b8e397edc92b793e3
3
+ metadata.gz: b4208ed4ac8b83d7f15a55bc2d7419c928140920d8d77c49722bc9f8d15a506c
4
+ data.tar.gz: 6cfca57abf2afedf7fb4437c77101c9adefb885145ce49131291d2f08c5f0d52
5
5
  SHA512:
6
- metadata.gz: bb111e599ed0c0c4bedc2beb10fa0b89456622d6e6d3e61cb698cf6a3ba5771c6e1c4b47b18ce87ea4c51b6bcb4471f03897a9b77cc6c5cf5ecdd84378150a86
7
- data.tar.gz: c19b5fb6c238762c462f659c078071ca90af8a17acc728c4c874cda52c2528ba1563830e63f03e8ae0cd25cbe0acb80b31ee0f84beadfe746240dd6e087a0d8b
6
+ metadata.gz: 8aaac5c7d6439ee89bf9784651b58801306aa0a83061523fdc91bdfdd98575b305d26befd7e71bd77e87efeaf8a34cf256eec9b778cf12d981bb3979c6332833
7
+ data.tar.gz: e3c345a263c7c8ddb4ef6eb91c322640bddb073986b8d56c9b414d776b5324778f95bb5bd4e0e0bc81ef3241921990b5222b20db893fe6163da680fd3c275b6b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [[0.6.2](https://github.com/yoshoku/numo-random/compare/v0.6.1...v0.6.2)] - 2025-11-19
2
+
3
+ - Fix to use require for compatibility with distributions installing extensions separately.
4
+ - Set the required version of numo-narray-alt to 0.9.10 or higher.
5
+
6
+ ## [[0.6.1](https://github.com/yoshoku/numo-random/compare/v0.6.0...v0.6.1)] - 2025-11-18
7
+
8
+ - Set the required version of numo-narray-alt to 0.9.9 or higher.
9
+ - Change require statement to explicitly load numo/narray/alt.
10
+
1
11
  ## [[0.6.0](https://github.com/yoshoku/numo-random/compare/v0.5.1...v0.6.0)] - 2025-10-01
2
12
 
3
13
  **Breaking change**
@@ -1,5 +1,5 @@
1
1
  require "mkmf"
2
- require "numo/narray"
2
+ require "numo/narray/alt"
3
3
 
4
4
  $LOAD_PATH.each do |lp|
5
5
  if File.exist?(File.join(lp, "numo/numo/narray.h"))
@@ -12,8 +12,8 @@ abort "numo/narray.h not found." unless have_header("numo/narray.h")
12
12
 
13
13
  if RUBY_PLATFORM =~ /mswin|cygwin|mingw/
14
14
  $LOAD_PATH.each do |lp|
15
- if File.exist?(File.join(lp, "numo/libnarray.a"))
16
- $LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}"
15
+ if File.exist?(File.join(lp, "numo/narray/libnarray.a"))
16
+ $LDFLAGS = "-L#{lp}/numo/narray #{$LDFLAGS}"
17
17
  break
18
18
  end
19
19
  end
@@ -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.0'
6
+ VERSION = '0.6.2'
7
7
  end
8
8
  end
data/lib/numo/random.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'numo/narray'
3
+ require 'numo/narray/alt'
4
4
 
5
5
  require_relative 'random/version'
6
- require_relative 'random/ext'
6
+ # On distributions like Rocky Linux, native extensions are installed in a separate
7
+ # directory from Ruby code, so use require to load them.
8
+ require 'numo/random/ext'
7
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.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.9.3
18
+ version: 0.9.10
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.3
25
+ version: 0.9.10
26
26
  description: Numo::Random provides random number generation with several distributions
27
27
  for Numo::NArray.
28
28
  email:
@@ -53,7 +53,7 @@ metadata:
53
53
  homepage_uri: https://github.com/yoshoku/numo-random
54
54
  source_code_uri: https://github.com/yoshoku/numo-random
55
55
  changelog_uri: https://github.com/yoshoku/numo-random/blob/main/CHANGELOG.md
56
- documentation_uri: https://gemdocs.org/gems/numo-random/0.6.0/
56
+ documentation_uri: https://gemdocs.org/gems/numo-random/0.6.2/
57
57
  rubygems_mfa_required: 'true'
58
58
  rdoc_options: []
59
59
  require_paths:
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.6.9
72
+ rubygems_version: 3.7.2
73
73
  specification_version: 4
74
74
  summary: Numo::Random provides random number generation with several distributions
75
75
  for Numo::NArray.