creation_report 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CreationReport
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -11,6 +11,7 @@ class DataSet::HourlyDataSet < DataSet
11
11
  end
12
12
 
13
13
  fill_with_zeroes(@count)
14
+ trim_to_limit
14
15
  end
15
16
 
16
17
  # Array of dates corresponding to datapoints in "2009-11-18" format
@@ -25,4 +26,8 @@ class DataSet::HourlyDataSet < DataSet
25
26
  end
26
27
  @datapoints = @datapoints.sort
27
28
  end
29
+
30
+ def trim_to_limit
31
+ @datapoints = @datapoints.slice( 0-@count, @count )
32
+ end
28
33
  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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Collier
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-25 00:00:00 Z
18
+ date: 2012-05-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements: []
126
126
 
127
127
  rubyforge_project:
128
- rubygems_version: 1.8.24
128
+ rubygems_version: 1.8.17
129
129
  signing_key:
130
130
  specification_version: 3
131
131
  summary: Easily generate graphs for ActiveRecord object creation.