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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e03fe8a749cc70b480ba4ab50285b63b3829cf88e3b24c1fef315d1db26caebb
4
- data.tar.gz: ca1ba053b0aa133190f170a253d16d5153033e37d27851084d2484276ae4da48
3
+ metadata.gz: 85d1034d8bb8062a6d2469ab813518af28acad6b3a4e47e04335e4509f17f830
4
+ data.tar.gz: 9886d7f3e791960f499666c4925263a9c163129a9cb8957907ac431d837d5c71
5
5
  SHA512:
6
- metadata.gz: 5c0f2f284ec0565ee1b15661a1abfed165f4ce26f36a8fd30fd8ca66a0a92d4be118ef114de3d02a2a567688b46f579b06f6704c6f01b4bb02dcb4ebcdb73de4
7
- data.tar.gz: a0ba31fe6bdc536cdf7152840cd69e6ef47763904fb4e4cf1ec7498c7748a7d246f7a32c90e1d524bd9932af8df9cb942194db3eb593de6979171c5258c8fd67
6
+ metadata.gz: 5ccdb91def90bb4740d65bb01bd67fe8bae3932f4e1bb61180862e0b509ab92f7efe4034fcb9855ae0314e009d093c1f2852fe9f3126733f29b68fa706f60a31
7
+ data.tar.gz: 59cffac4f18c6dae5dee8da57c222ce1fbb14594ef3e6e43c53d28bf1f606512c4c7f75a585d8b529992df2eb0c173bbd355b5e7b505d63ef0befdf1168aff6c
@@ -44,4 +44,4 @@ jobs:
44
44
  - run: rake build
45
45
  - run: gem install pkg/*gem
46
46
 
47
- - run: rake spec
47
+ - run: rake
@@ -1,3 +1,7 @@
1
+ # 2.0.3
2
+
3
+ - Ractor-safe version
4
+
1
5
  # 2.0.2
2
6
 
3
7
  - Support Ruby 3.0
data/Rakefile CHANGED
@@ -8,8 +8,13 @@ Rake::ExtensionTask.new('enumerable/statistics/extension')
8
8
 
9
9
  directory 'lib/enumerable/statistics'
10
10
 
11
- RSpec::Core::RakeTask.new(:spec)
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
@@ -1,5 +1,5 @@
1
1
  module EnumerableStatistics
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
 
4
4
  module Version
5
5
  numbers, TAG = VERSION.split('-', 2)
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.2
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: 2020-12-31 00:00:00.000000000 Z
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