josephruscio-aggregate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +16 -0
- data/VERSION +1 -0
- data/aggregate.gemspec +46 -0
- data/lib/aggregate.rb +0 -3
- metadata +11 -9
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
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"
|
9
|
+
gemspec.email = "jruscio@gmail.com"
|
10
|
+
gemspec.homepage = "http://github.com/josephruscio/aggregate"
|
11
|
+
gemspec.description = "TODO"
|
12
|
+
gemspec.authors = ["Joseph Ruscio"]
|
13
|
+
end
|
14
|
+
rescue LoadError
|
15
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
16
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/aggregate.gemspec
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{aggregate}
|
8
|
+
s.version = "0.1.1"
|
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{2009-08-16}
|
13
|
+
s.description = %q{TODO}
|
14
|
+
s.email = %q{jruscio@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"LICENSE",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"aggregate.gemspec",
|
25
|
+
"lib/aggregate.rb",
|
26
|
+
"test/ts_aggregate.rb"
|
27
|
+
]
|
28
|
+
s.homepage = %q{http://github.com/josephruscio/aggregate}
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.3.3}
|
32
|
+
s.summary = %q{Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support}
|
33
|
+
s.test_files = [
|
34
|
+
"test/ts_aggregate.rb"
|
35
|
+
]
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
39
|
+
s.specification_version = 3
|
40
|
+
|
41
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
42
|
+
else
|
43
|
+
end
|
44
|
+
else
|
45
|
+
end
|
46
|
+
end
|
data/lib/aggregate.rb
CHANGED
@@ -172,9 +172,6 @@ class Aggregate
|
|
172
172
|
max_bar_width.times {histogram << "-"}
|
173
173
|
histogram << "| "
|
174
174
|
histogram << sprintf("%#{count_width}d\n", total)
|
175
|
-
|
176
|
-
#Put the pieces together
|
177
|
-
"\n" + histogram
|
178
175
|
end
|
179
176
|
|
180
177
|
#Iterate through each bucket in the histogram regardless of
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: josephruscio-aggregate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Ruscio
|
@@ -9,30 +9,32 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-16 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: TODO
|
17
17
|
email: jruscio@gmail.com
|
18
18
|
executables: []
|
19
19
|
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
|
-
- README
|
24
23
|
- LICENSE
|
25
|
-
files:
|
26
24
|
- README
|
25
|
+
files:
|
27
26
|
- LICENSE
|
27
|
+
- README
|
28
|
+
- Rakefile
|
29
|
+
- VERSION
|
30
|
+
- aggregate.gemspec
|
28
31
|
- lib/aggregate.rb
|
29
32
|
- test/ts_aggregate.rb
|
30
|
-
has_rdoc:
|
33
|
+
has_rdoc: false
|
31
34
|
homepage: http://github.com/josephruscio/aggregate
|
32
35
|
licenses:
|
33
36
|
post_install_message:
|
34
37
|
rdoc_options:
|
35
|
-
- --inline-source
|
36
38
|
- --charset=UTF-8
|
37
39
|
require_paths:
|
38
40
|
- lib
|
@@ -53,7 +55,7 @@ requirements: []
|
|
53
55
|
rubyforge_project:
|
54
56
|
rubygems_version: 1.3.5
|
55
57
|
signing_key:
|
56
|
-
specification_version:
|
57
|
-
summary: Aggregate is a Ruby
|
58
|
+
specification_version: 3
|
59
|
+
summary: Aggregate is a Ruby class for accumulating aggregate statistics and includes histogram support
|
58
60
|
test_files:
|
59
61
|
- test/ts_aggregate.rb
|