creation_report 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/creation_report/version.rb +1 -1
- data/lib/data_set/hourly_data_set.rb +1 -4
- metadata +3 -3
@@ -20,12 +20,9 @@ class DataSet::HourlyDataSet < DataSet
|
|
20
20
|
|
21
21
|
protected
|
22
22
|
def fill_with_zeroes( hours )
|
23
|
-
|
24
|
-
(0..@count).each do |i|
|
25
|
-
puts "Adding #{i.hours.ago.strftime("%Y-%m-%d %H")}"
|
23
|
+
(0..@count-1).each do |i|
|
26
24
|
@datapoints[i.hours.ago.strftime("%Y-%m-%d %H")] ||= 0
|
27
25
|
end
|
28
|
-
|
29
26
|
@datapoints = @datapoints.sort
|
30
27
|
end
|
31
28
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creation_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jon Collier
|