time_array 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/time_array/time_array.rb +1 -1
- data/lib/time_array/units.rb +1 -1
- data/lib/time_array/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad5a748553784421e97b4911badf2b763d310f51
|
4
|
+
data.tar.gz: 2d48f7f257bcb85d1f2bd46aaa6eb48a2dbbb572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3b5ea83272254b1797bb1b7214e0a306ed433ba41a81c700a39f4c922ea69b361c38d0699d61cb16ef42a3c5d0a90ad3361cfaf3165b800798d3bc0ddbddc5
|
7
|
+
data.tar.gz: fd69fb50dbd4309ad9d3c825368e4d35e103ea7d82c78ace777b4e2188528266d9498d59fc04707898413d3f0cc75f36273bcea4f84cef9c4e77652529fe1e0e
|
@@ -189,7 +189,7 @@ module TimeArray
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def group_by(interval)
|
192
|
-
raise ArgumentError, "interval not valid. Valid intervals are :hour, :day, :wday, :month" unless Units.valid?(interval)
|
192
|
+
raise ArgumentError, "interval not valid. Valid intervals are :hour, :day, :wday, :month, :year" unless Units.valid?(interval)
|
193
193
|
t = start_time
|
194
194
|
h = GroupHash.new{|h,k| h[k]=[]}
|
195
195
|
@v.each do |v|
|
data/lib/time_array/units.rb
CHANGED
data/lib/time_array/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_array
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iwan Buetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|