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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa5896db51acd0cd4c78503ea4ed9c0c1b396090
4
- data.tar.gz: a4978dc1c86f1f1828e03433d2587fa69c54570b
3
+ metadata.gz: ad5a748553784421e97b4911badf2b763d310f51
4
+ data.tar.gz: 2d48f7f257bcb85d1f2bd46aaa6eb48a2dbbb572
5
5
  SHA512:
6
- metadata.gz: 0385f2d1d7cac766a234350ab93a058561250689f0c77f7eeb0e1d5cdf8718f8311f7dd06c9322cb7a269e953d75351edba8e001ec1c629b3fb0cd526c29901c
7
- data.tar.gz: ef291bcbacd519537534ac1c29fe2eb983ac624d288854633233024f232ee95ee4665998bf48a2eff749aff32a977dbd9f8d591ca16639c523adbf5a0188e0ed
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|
@@ -1,6 +1,6 @@
1
1
  module TimeArray
2
2
  module Units
3
- LIST = [:hour, :day, :month, :year]
3
+ LIST = [:hour, :day, :wday, :month, :year]
4
4
 
5
5
  def self.valid?(u)
6
6
  LIST.include?(u.to_sym)
@@ -1,3 +1,3 @@
1
1
  module TimeArray
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2014-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler