enumerable-statistics 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Rakefile +8 -1
- data/enumerable-statistics.gemspec +1 -0
- data/ext/enumerable/statistics/extension/statistics.c +4 -0
- data/lib/enumerable_statistics/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85d1034d8bb8062a6d2469ab813518af28acad6b3a4e47e04335e4509f17f830
|
4
|
+
data.tar.gz: 9886d7f3e791960f499666c4925263a9c163129a9cb8957907ac431d837d5c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ccdb91def90bb4740d65bb01bd67fe8bae3932f4e1bb61180862e0b509ab92f7efe4034fcb9855ae0314e009d093c1f2852fe9f3126733f29b68fa706f60a31
|
7
|
+
data.tar.gz: 59cffac4f18c6dae5dee8da57c222ce1fbb14594ef3e6e43c53d28bf1f606512c4c7f75a585d8b529992df2eb0c173bbd355b5e7b505d63ef0befdf1168aff6c
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -8,8 +8,13 @@ Rake::ExtensionTask.new('enumerable/statistics/extension')
|
|
8
8
|
|
9
9
|
directory 'lib/enumerable/statistics'
|
10
10
|
|
11
|
-
|
11
|
+
desc "Run test"
|
12
|
+
task :test do
|
13
|
+
ruby("test/run-test.rb")
|
14
|
+
end
|
15
|
+
task :test => :compile
|
12
16
|
|
17
|
+
RSpec::Core::RakeTask.new(:spec)
|
13
18
|
task :spec => :compile
|
14
19
|
|
15
20
|
task :bench do
|
@@ -22,3 +27,5 @@ task :bench do
|
|
22
27
|
puts "# variance\n"
|
23
28
|
system('benchmark-driver bench/variance.yml')
|
24
29
|
end
|
30
|
+
|
31
|
+
task default: [:test, :spec]
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "rake"
|
32
32
|
spec.add_development_dependency "rake-compiler", ">= 0.9.8"
|
33
33
|
spec.add_development_dependency "rspec", ">= 3.4"
|
34
|
+
spec.add_development_dependency "test-unit"
|
34
35
|
spec.add_development_dependency "fuubar"
|
35
36
|
spec.add_development_dependency "yard"
|
36
37
|
spec.add_development_dependency "benchmark-driver"
|
@@ -2315,6 +2315,10 @@ Init_extension(void)
|
|
2315
2315
|
{
|
2316
2316
|
VALUE mEnumerableStatistics;
|
2317
2317
|
|
2318
|
+
#ifdef HAVE_RB_EXT_RACTOR_SAFE
|
2319
|
+
rb_ext_ractor_safe(true);
|
2320
|
+
#endif
|
2321
|
+
|
2318
2322
|
#ifndef HAVE_ENUM_SUM
|
2319
2323
|
rb_define_method(rb_mEnumerable, "sum", enum_sum, -1);
|
2320
2324
|
#endif
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerable-statistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenta Murata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: test-unit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: fuubar
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|