kalibera 0.1.1 → 0.1.2

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: c8e7050f4e471bd7f1861ef22ac13a947dc05d3a64d75eedd6ebfd8547ef0260
4
- data.tar.gz: 5ba1965721f72522405dc2a22df2e19bf5207ec4487ff090e0933cfe6af5f7ec
3
+ metadata.gz: 4cad82abe0c4c5c074da5eeb793900e8f7093d662b9bb77c1a7afd6894717025
4
+ data.tar.gz: ed8b2de478df5ff7c0e17cb3eabed1b9287dab93b15c01f9cf66e6e480fa77ed
5
5
  SHA512:
6
- metadata.gz: 6362cc047c18160e878877647a98ce40ae6cdf27690f947a6bd3183a2909b38dbe9c86bbb1628ae0f5b93088a48bfefe3f9fcf3eadfef6610b8e7b17e5946dcb
7
- data.tar.gz: 36c663cfd593613277dad24e0cc1e2b1cfdcbea52e6f98d9d01027c9bf84ae2dbb362c9e28564a70da6db56627fea95029c0feecf0b8cd5dae37ef32848bd723
6
+ metadata.gz: b80aac1ace5f85d6c01e827292042e8a007fc70b2a94f92d2684744e514afe8394520f4c14fd0e3f0a9071f75937848f44c0ed0a1c4a3c8da9594f07477dee35
7
+ data.tar.gz: 4ea4f96f23b3d0fb27a2e19b1b9d1488a4f43febd87602100ed69ed518dc56faf616824e4a6417c5739446c977a2e189a013a55523d73b776affa498e5fd8c3b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.8
1
+ 3.0.3
data/kalibera.gemspec CHANGED
@@ -4,7 +4,7 @@ metadata = JSON.parse(IO.read(File.expand_path('../../shared_metadata.json', __F
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "kalibera"
7
- spec.version = metadata["metadata"]["version"].to_s + ".1"
7
+ spec.version = metadata["metadata"]["version"].to_s + ".2"
8
8
  spec.authors = ["Edd Barrett", "Carl Friedrich Bolz", "Chris Seaton"]
9
9
  spec.email = ["chris@chrisseaton.com"]
10
10
  spec.summary = metadata["metadata"]["short_descr"]
@@ -16,10 +16,9 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^test/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_development_dependency "bundler", "~> 1.7"
20
- spec.add_development_dependency "rake", "~> 10.0"
21
- spec.add_development_dependency "test-unit", "~> 3.3.6"
19
+ spec.add_development_dependency "rake", "~> 13.0"
20
+ spec.add_development_dependency "test-unit", "~> 3.4"
22
21
 
23
- spec.add_dependency "rbzip2", "~> 0.2.0"
24
- spec.add_dependency "memoist", "~> 0.11.0"
22
+ spec.add_dependency "rbzip2", "~> 0.3"
23
+ spec.add_dependency "memoist", "~> 0.16"
25
24
  end
data/lib/kalibera/data.rb CHANGED
@@ -6,7 +6,7 @@ require "memoist"
6
6
 
7
7
  module Kalibera
8
8
 
9
- CONSTANTS = RBzip2::Decompressor.new(StringIO.new(Base64.decode64("""\
9
+ CONSTANTS = RBzip2.default_adapter::Decompressor.new(StringIO.new(Base64.decode64("""\
10
10
  QlpoOTFBWSZTWbTS4VUAC9bYAEAQAAF/4GAOGZ3e40HH2YJERUKomGbCNMAAtMBaAkCOP9U0/R+q
11
11
  qNCqfjAqVGOY3+qk96qmmIp+CCVNDD/1VGjfqkBJpIElG6uN92vE/PP+5IxhMIIgAbOxEMKLMVSq
12
12
  VWtZmZaEklAAAttoAAAAAAAAAAAAEklAAEklABttkksklkkknVu2dX1vW9yWrkuXJJJJJJJJJJKK
@@ -290,7 +290,7 @@ module Kalibera
290
290
  # iterations -- Number of resamples (and thus means) generated.
291
291
  def bootstrap_means(iterations=1000)
292
292
  means = []
293
- for i in 0...iterations
293
+ for _ in 0...iterations
294
294
  values = bootstrap_sample()
295
295
  means.push(Kalibera.mean(values))
296
296
  end
data/test/test_data.rb CHANGED
@@ -228,7 +228,7 @@ class TestKaliberaData < Test::Unit::TestCase
228
228
  assert_equal 2.6, data.Si2(2).round(1)
229
229
  assert_equal 3.6, data.Si2(3).round(1)
230
230
  assert_equal 16.5, data.Ti2(1).round(1)
231
- assert_equal -5.7, data.Ti2(2).round(1)
231
+ assert_equal (-5.7), data.Ti2(2).round(1)
232
232
  assert_equal 2.3, data.Ti2(3).round(1)
233
233
  end
234
234
 
@@ -284,7 +284,7 @@ class TestKaliberaData < Test::Unit::TestCase
284
284
  # For a data set of size 1000, we expect alpha/2 to be 25
285
285
  # (for a 95% confidence interval)
286
286
  alpha_over_two = means.size * 0.025
287
- assert(alpha_over_two) == 25
287
+ assert_equal alpha_over_two, 25
288
288
 
289
289
  # Therefore we lose 25 items off each end of the means list.
290
290
  # The first 25 indicies are 0, ...0, 24, so lower bound should be index 25.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalibera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edd Barrett
@@ -10,78 +10,64 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-10-05 00:00:00.000000000 Z
13
+ date: 2022-01-25 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: bundler
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '1.7'
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: '1.7'
29
15
  - !ruby/object:Gem::Dependency
30
16
  name: rake
31
17
  requirement: !ruby/object:Gem::Requirement
32
18
  requirements:
33
19
  - - "~>"
34
20
  - !ruby/object:Gem::Version
35
- version: '10.0'
21
+ version: '13.0'
36
22
  type: :development
37
23
  prerelease: false
38
24
  version_requirements: !ruby/object:Gem::Requirement
39
25
  requirements:
40
26
  - - "~>"
41
27
  - !ruby/object:Gem::Version
42
- version: '10.0'
28
+ version: '13.0'
43
29
  - !ruby/object:Gem::Dependency
44
30
  name: test-unit
45
31
  requirement: !ruby/object:Gem::Requirement
46
32
  requirements:
47
33
  - - "~>"
48
34
  - !ruby/object:Gem::Version
49
- version: 3.3.6
35
+ version: '3.4'
50
36
  type: :development
51
37
  prerelease: false
52
38
  version_requirements: !ruby/object:Gem::Requirement
53
39
  requirements:
54
40
  - - "~>"
55
41
  - !ruby/object:Gem::Version
56
- version: 3.3.6
42
+ version: '3.4'
57
43
  - !ruby/object:Gem::Dependency
58
44
  name: rbzip2
59
45
  requirement: !ruby/object:Gem::Requirement
60
46
  requirements:
61
47
  - - "~>"
62
48
  - !ruby/object:Gem::Version
63
- version: 0.2.0
49
+ version: '0.3'
64
50
  type: :runtime
65
51
  prerelease: false
66
52
  version_requirements: !ruby/object:Gem::Requirement
67
53
  requirements:
68
54
  - - "~>"
69
55
  - !ruby/object:Gem::Version
70
- version: 0.2.0
56
+ version: '0.3'
71
57
  - !ruby/object:Gem::Dependency
72
58
  name: memoist
73
59
  requirement: !ruby/object:Gem::Requirement
74
60
  requirements:
75
61
  - - "~>"
76
62
  - !ruby/object:Gem::Version
77
- version: 0.11.0
63
+ version: '0.16'
78
64
  type: :runtime
79
65
  prerelease: false
80
66
  version_requirements: !ruby/object:Gem::Requirement
81
67
  requirements:
82
68
  - - "~>"
83
69
  - !ruby/object:Gem::Version
84
- version: 0.11.0
70
+ version: '0.16'
85
71
  description: 'libkalibera contains reimplementations of the statistical computations
86
72
  for benchmarking evaluation from the following papers by Tomas Kalibera and Richard
87
73
  Jones: ''Rigorous benchmarking in reasonable time''; ''Quantifying performance changes
@@ -119,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0'
121
107
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.7.6.2
108
+ rubygems_version: 3.2.32
124
109
  signing_key:
125
110
  specification_version: 4
126
111
  summary: An implementation of Tomas Kalibera's statistically rigorous benchmarking