aggregate 0.2.2 → 0.2.3

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 529c02e008869ec1317db1a476a46f91a0d7d140d8a52656b30d9f7aafce8afa
4
+ data.tar.gz: 99614461e232afee5e116b943bf92ee35de703f947de818973477a467d5647ce
5
+ SHA512:
6
+ metadata.gz: 8b49a303c9dd3755a5c66c1a10a94b71ccdd097af5ea824e6d5a5f246672c4efe9314841eac276dfea754542aa9f2e99857dacef17ae1e46a9fd4762f24b8b6d
7
+ data.tar.gz: 7fea0c9d8b476c3fbc34b1679e1cb47313b59747212fbe39fea63d5d79017c7d8138397fd3f5e61be015cf087f9cd5f7a10d26d5d20d526c56eceffcff0c6d28
@@ -284,3 +284,5 @@ class Aggregate
284
284
  end
285
285
 
286
286
  end
287
+
288
+ require_relative 'aggregate/version'
@@ -0,0 +1,3 @@
1
+ class Aggregate
2
+ VERSION = "0.2.3"
3
+ end
@@ -1,7 +1,7 @@
1
- require 'test/unit'
2
- require 'lib/aggregate'
1
+ require 'minitest/autorun'
2
+ require 'aggregate'
3
3
 
4
- class SimpleStatsTest < Test::Unit::TestCase
4
+ class SimpleStatsTest < MiniTest::Test
5
5
 
6
6
  def setup
7
7
  @stats = Aggregate.new
@@ -50,7 +50,7 @@ class SimpleStatsTest < Test::Unit::TestCase
50
50
  total_bucket_sum = 0
51
51
  @stats.each_nonzero do |bucket, count|
52
52
  assert bucket > prev_bucket
53
- assert_not_equal count, 0
53
+ refute_equal count, 0
54
54
 
55
55
  total_bucket_sum += count
56
56
  end
@@ -117,7 +117,7 @@ class SimpleStatsTest < Test::Unit::TestCase
117
117
  end
118
118
  end
119
119
 
120
- class LinearHistogramTest < Test::Unit::TestCase
120
+ class LinearHistogramTest < MiniTest::Test
121
121
  def setup
122
122
  @stats = Aggregate.new(0, 32768, 1024)
123
123
 
@@ -129,16 +129,16 @@ class LinearHistogramTest < Test::Unit::TestCase
129
129
  def test_validation
130
130
 
131
131
  # Range cannot be 0
132
- assert_raise(ArgumentError) {bad_stats = Aggregate.new(32,32,4)}
132
+ assert_raises(ArgumentError) {bad_stats = Aggregate.new(32,32,4)}
133
133
 
134
134
  # Range cannot be negative
135
- assert_raise(ArgumentError) {bad_stats = Aggregate.new(32,16,4)}
135
+ assert_raises(ArgumentError) {bad_stats = Aggregate.new(32,16,4)}
136
136
 
137
137
  # Range cannot be < single bucket
138
- assert_raise(ArgumentError) {bad_stats = Aggregate.new(16,32,17)}
138
+ assert_raises(ArgumentError) {bad_stats = Aggregate.new(16,32,17)}
139
139
 
140
140
  # Range % width must equal 0 (for now)
141
- assert_raise(ArgumentError) {bad_stats = Aggregate.new(1,16384,1024)}
141
+ assert_raises(ArgumentError) {bad_stats = Aggregate.new(1,16384,1024)}
142
142
  end
143
143
 
144
144
  #XXX: Update test_bucket_contents() if you muck with @@DATA
metadata CHANGED
@@ -1,74 +1,53 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: aggregate
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Joseph Ruscio
14
- autorequire:
8
+ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-03-05 00:00:00 -08:00
19
- default_executable:
11
+ date: 2020-12-21 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
- description: "Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support. For a detailed README see: http://github.com/josephruscio/aggregate"
13
+ description: 'Aggregate is a Ruby class for accumulating aggregate statistics and
14
+ includes histogram support. For a detailed README see: http://github.com/josephruscio/aggregate'
23
15
  email: joe@ruscio.org
24
16
  executables: []
25
-
26
17
  extensions: []
27
-
28
- extra_rdoc_files:
18
+ extra_rdoc_files:
29
19
  - LICENSE
30
20
  - README.textile
31
- files:
21
+ files:
32
22
  - LICENSE
33
23
  - README.textile
34
- - Rakefile
35
- - VERSION
36
- - aggregate.gemspec
37
24
  - lib/aggregate.rb
25
+ - lib/aggregate/version.rb
38
26
  - test/ts_aggregate.rb
39
- has_rdoc: true
40
27
  homepage: http://github.com/josephruscio/aggregate
41
- licenses: []
42
-
43
- post_install_message:
44
- rdoc_options: []
45
-
46
- require_paths:
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options:
33
+ - "--charset=UTF-8"
34
+ require_paths:
47
35
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
51
38
  - - ">="
52
- - !ruby/object:Gem::Version
53
- hash: 3
54
- segments:
55
- - 0
56
- version: "0"
57
- required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
60
43
  - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
66
46
  requirements: []
67
-
68
- rubyforge_project:
69
- rubygems_version: 1.4.2
70
- signing_key:
47
+ rubygems_version: 3.0.3
48
+ signing_key:
71
49
  specification_version: 3
72
- summary: Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support
73
- test_files:
50
+ summary: Aggregate is a Ruby class for accumulating aggregate statistics and includes
51
+ histogram support
52
+ test_files:
74
53
  - test/ts_aggregate.rb
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- require 'rake'
2
-
3
- begin
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gemspec|
6
- gemspec.name = "aggregate"
7
- gemspec.summary = "Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support"
8
- gemspec.description = "Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support. For a detailed README see: http://github.com/josephruscio/aggregate"
9
- gemspec.email = "joe@ruscio.org"
10
- gemspec.homepage = "http://github.com/josephruscio/aggregate"
11
- gemspec.authors = ["Joseph Ruscio"]
12
- end
13
- rescue LoadError
14
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
15
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.2
@@ -1,47 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{aggregate}
8
- s.version = "0.2.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Joseph Ruscio"]
12
- s.date = %q{2011-03-05}
13
- s.description = %q{Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support. For a detailed README see: http://github.com/josephruscio/aggregate}
14
- s.email = %q{joe@ruscio.org}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.textile"
18
- ]
19
- s.files = [
20
- ".gitignore",
21
- "LICENSE",
22
- "README.textile",
23
- "Rakefile",
24
- "VERSION",
25
- "aggregate.gemspec",
26
- "lib/aggregate.rb",
27
- "test/ts_aggregate.rb"
28
- ]
29
- s.homepage = %q{http://github.com/josephruscio/aggregate}
30
- s.rdoc_options = ["--charset=UTF-8"]
31
- s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.4.2}
33
- s.summary = %q{Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support}
34
- s.test_files = [
35
- "test/ts_aggregate.rb"
36
- ]
37
-
38
- if s.respond_to? :specification_version then
39
- s.specification_version = 3
40
-
41
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- else
43
- end
44
- else
45
- end
46
- end
47
-