shades 0.14 → 0.15
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.
- checksums.yaml +8 -8
- data/lib/histo.rb +1 -5
- data/shades.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDdiMzYxZDQzNDdmOTU2NDI5MTU2YTliYmQ0NDNiNjdjN2ExOTBkOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MGY3NTM1OGI3MDZiMTE0NzcwNmMwYzQ5MjAyYzdjYzE4M2IwMGZjOA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZGY5MzNmYTM2NTdkZjRjMTViNzA0MmFlN2NjNjAwM2JiNGY0ZWU0ZmE1YWMz
|
|
10
|
+
ZTg0NTViZTJmY2I0ZTIyOGFmNjk0N2Y5YjcwZDQ3N2RhZjNjMDlmNjBiOGYy
|
|
11
|
+
YWRjZDA4YzZjMGQyYmRhMzkwOTA3ZTU5NmMzM2VjMjVmYWU3OTM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YmU2YTc2YzcwZDMyOGM0NmRkOTA4M2E3MzgwODhiNWFiYjNmMjRkNjJjNDYy
|
|
14
|
+
NWUxMzI1YjkyN2JlYmZkOGYxZjFmOGE1NTc5OTExZWNiNmM5ZjM0ZTJjYjMw
|
|
15
|
+
MDAzMWEzNWVmZDVkYmVjMGJlYzE3ZTIwNTY5ZDlhZDlhOTFmY2Y=
|
data/lib/histo.rb
CHANGED
|
@@ -105,13 +105,9 @@ module Shades
|
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
107
|
scaled_max = yield max_bin_count
|
|
108
|
-
output_width -= 23
|
|
109
|
-
if output_width < 10
|
|
110
|
-
output_width = 10
|
|
111
|
-
end
|
|
112
108
|
@bins.each do |b|
|
|
113
109
|
scaled_value = yield b.count
|
|
114
|
-
repeat = output_width * ( scaled_value / scaled_max )
|
|
110
|
+
repeat = (output_width * ( Float(scaled_value) / Float(scaled_max) )).to_i
|
|
115
111
|
a << "%14.3f (%5d) %s" % [b.mean, b.count, '#' * repeat]
|
|
116
112
|
end
|
|
117
113
|
a.join("\n")
|
data/shades.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shades
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.15'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dietrich Featherston
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-07-
|
|
11
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake-compiler
|