halton 0.2.1.4 → 0.2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8115499e016e8c1c3ef1608ac90caed45b48ba7d34a722788b3ae4f550d35db5
4
- data.tar.gz: c2e2f8af26707e3b486036c24b82b15df6421caaa03eb35f0cfdaa383dc5c649
3
+ metadata.gz: 7ed27356a6e2a2f658747ba007d3d5f295049e425512a7996e8d31679fa10964
4
+ data.tar.gz: c368b48acb7bfc73fde7d347de2c9667224daaa7c1b085e170ab9eab60cb26cc
5
5
  SHA512:
6
- metadata.gz: 021dbd5d00a5045f9a02c6b3f09560305468c0f360b16dbd3acb0829db8d848457c685864edbb8427fad1a7e7d3852b242d26dfcf33ddb95bc51dc8c1d90f076
7
- data.tar.gz: a6ece029b0b98a9f4ac3f8e8c5dc4cf604d9a13d6d2e5d4de3cdf9376925c6a480ec437635f7b52340df09c57f1f767f65f7171c2a5052a137abd7499c42d843
6
+ metadata.gz: 4ade7dfefe049433feb6fef115461f55fb043953444e33b83efd11c62db37f6c46ec554e4f9094a80caa6309f2e9391e8f13b3abf0f6285cd1e6a4aa3927ae9b
7
+ data.tar.gz: 658632d67fb5ab6e7478067aa8dff286e1d130754bb7f8995b3a47ab1ba854bab8e7f0809da951c82023593c66b3061afc24272456df7210826df354098d20c2
@@ -96,9 +96,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
96
96
 
97
97
  [[package]]
98
98
  name = "libc"
99
- version = "0.2.138"
99
+ version = "0.2.139"
100
100
  source = "registry+https://github.com/rust-lang/crates.io-index"
101
- checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8"
101
+ checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
102
102
 
103
103
  [[package]]
104
104
  name = "libloading"
@@ -112,9 +112,9 @@ dependencies = [
112
112
 
113
113
  [[package]]
114
114
  name = "magnus"
115
- version = "0.4.3"
115
+ version = "0.4.4"
116
116
  source = "registry+https://github.com/rust-lang/crates.io-index"
117
- checksum = "c7d904f55da4e2b0ac7f133257af80580ff4ca17bcca67f51ea06be46aa634ac"
117
+ checksum = "fc87660cd7daa49fddbfd524c836de54d5c927d520cd163f43700c5087c57d6c"
118
118
  dependencies = [
119
119
  "magnus-macros",
120
120
  "rb-sys",
@@ -123,9 +123,9 @@ dependencies = [
123
123
 
124
124
  [[package]]
125
125
  name = "magnus-macros"
126
- version = "0.2.0"
126
+ version = "0.3.0"
127
127
  source = "registry+https://github.com/rust-lang/crates.io-index"
128
- checksum = "acc8ba6908cb0f67a4e75cb48fc81a1f0e6a6dd1501936e0c9e2c7c8f9f18e05"
128
+ checksum = "206cb23bfeea05180c97522ef6a3e52a4eb17b0ed2f30ee3ca9c4f994d2378ae"
129
129
  dependencies = [
130
130
  "proc-macro2",
131
131
  "quote",
@@ -162,36 +162,36 @@ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
162
162
 
163
163
  [[package]]
164
164
  name = "proc-macro2"
165
- version = "1.0.47"
165
+ version = "1.0.49"
166
166
  source = "registry+https://github.com/rust-lang/crates.io-index"
167
- checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725"
167
+ checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5"
168
168
  dependencies = [
169
169
  "unicode-ident",
170
170
  ]
171
171
 
172
172
  [[package]]
173
173
  name = "quote"
174
- version = "1.0.21"
174
+ version = "1.0.23"
175
175
  source = "registry+https://github.com/rust-lang/crates.io-index"
176
- checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
176
+ checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
177
177
  dependencies = [
178
178
  "proc-macro2",
179
179
  ]
180
180
 
181
181
  [[package]]
182
182
  name = "rb-sys"
183
- version = "0.9.46"
183
+ version = "0.9.53"
184
184
  source = "registry+https://github.com/rust-lang/crates.io-index"
185
- checksum = "b9f1cfd225389bd9333d93d393d0feeeacd191d97f9b1c881528ac1233c67f0f"
185
+ checksum = "aa291f69bcc44f8e96597a3f39e9933fde6977b825415cfaa670ac49b8ab7c99"
186
186
  dependencies = [
187
187
  "rb-sys-build",
188
188
  ]
189
189
 
190
190
  [[package]]
191
191
  name = "rb-sys-build"
192
- version = "0.9.46"
192
+ version = "0.9.53"
193
193
  source = "registry+https://github.com/rust-lang/crates.io-index"
194
- checksum = "fad39a523a00dc5d4f6dcec077568d985807aa5bd03204a0ddf7c1f36544289c"
194
+ checksum = "d998fd6ef588471d6d7cca24c4da88eda5e6757b6885c55760e856ecdb254c3d"
195
195
  dependencies = [
196
196
  "bindgen",
197
197
  "regex",
@@ -241,9 +241,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
241
241
 
242
242
  [[package]]
243
243
  name = "syn"
244
- version = "1.0.105"
244
+ version = "1.0.107"
245
245
  source = "registry+https://github.com/rust-lang/crates.io-index"
246
- checksum = "60b9b43d45702de4c839cb9b51d9f529c5dd26a4aff255b42b1ebc03e88ee908"
246
+ checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5"
247
247
  dependencies = [
248
248
  "proc-macro2",
249
249
  "quote",
@@ -252,9 +252,9 @@ dependencies = [
252
252
 
253
253
  [[package]]
254
254
  name = "unicode-ident"
255
- version = "1.0.5"
255
+ version = "1.0.6"
256
256
  source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
257
+ checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc"
258
258
 
259
259
  [[package]]
260
260
  name = "winapi"
data/Cargo.toml ADDED
@@ -0,0 +1,2 @@
1
+ [workspace]
2
+ members = ["ext/halton"]
@@ -9,4 +9,4 @@ crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
11
  halton = "0.2.1"
12
- magnus = "0.4.3"
12
+ magnus = "0.4.4"
@@ -3,8 +3,8 @@ use std::cell::RefCell;
3
3
  use magnus::{
4
4
  block::{block_given, Yield, YieldSplat, YieldValues},
5
5
  define_module, exception, function, method,
6
- scan_args::check_arity,
7
6
  prelude::*,
7
+ scan_args::check_arity,
8
8
  Error, RArray, Value,
9
9
  };
10
10
 
data/lib/halton.rb CHANGED
@@ -4,7 +4,11 @@ begin
4
4
  /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
5
5
  require_relative "halton/#{ruby_version}/halton"
6
6
  rescue LoadError
7
- require_relative "halton/halton"
7
+ begin
8
+ require_relative "halton/halton"
9
+ rescue LoadError # Cargo Builder in RubyGems < 3.4.6 doesn't install to dir
10
+ require_relative "halton.so"
11
+ end
8
12
  end
9
13
 
10
14
  # The Halton module provides methods for generating Halton sequences, a
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.4
4
+ version: 0.2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Sadler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-13 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rb_sys
14
+ name: rake-compiler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.46
20
- type: :runtime
19
+ version: '1.2'
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.46
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake-compiler
28
+ name: rb_sys
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1'
33
+ version: '0.9'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1'
40
+ version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3'
47
+ version: '3.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3'
54
+ version: '3.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: benchmark-ips
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.10'
55
69
  description: A module implementing the fast generation of Halton sequences. The method
56
70
  of generation is adapted from "Fast, portable, and reliable algorithm for the calculation
57
71
  of Halton number" by Miroslav Kolář and Seamus F. O'Shea.
@@ -59,14 +73,14 @@ email:
59
73
  - mat@sourcetagsandcodes.com
60
74
  executables: []
61
75
  extensions:
62
- - ext/halton/extconf.rb
76
+ - ext/halton/Cargo.toml
63
77
  extra_rdoc_files:
64
78
  - README.rdoc
65
79
  files:
80
+ - Cargo.lock
81
+ - Cargo.toml
66
82
  - README.rdoc
67
- - ext/halton/Cargo.lock
68
83
  - ext/halton/Cargo.toml
69
- - ext/halton/extconf.rb
70
84
  - ext/halton/src/lib.rs
71
85
  - lib/halton.rb
72
86
  homepage: https://github.com/matsadler/halton-rb
@@ -87,15 +101,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
101
  requirements:
88
102
  - - ">="
89
103
  - !ruby/object:Gem::Version
90
- version: '0'
104
+ version: 2.6.0
91
105
  required_rubygems_version: !ruby/object:Gem::Requirement
92
106
  requirements:
93
107
  - - ">="
94
108
  - !ruby/object:Gem::Version
95
- version: '0'
109
+ version: 3.3.26
96
110
  requirements:
97
111
  - Rust >= 1.51.0
98
- rubygems_version: 3.3.26
112
+ rubygems_version: 3.4.6
99
113
  signing_key:
100
114
  specification_version: 4
101
115
  summary: A module for generating Halton sequences
@@ -1,4 +0,0 @@
1
- require "mkmf"
2
- require "rb_sys/mkmf"
3
-
4
- create_rust_makefile("halton/halton")