active-redis 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. data/lib/active-redis.rb +5 -0
  2. metadata +4 -4
@@ -32,6 +32,11 @@ class ActiveRedis
32
32
  datetime = DateTime.new(hash["datetime(1i)"].to_i, hash['datetime(2i)'].to_i, hash['datetime(3i)'].to_i, hash["datetime(4i)"].to_i, hash["datetime(5i)"].to_i)
33
33
  end
34
34
 
35
+ def self.parse_date(hash)
36
+ date = DateTime.new(hash["date(1i)"].to_i, hash['date(2i)'].to_i, hash['date(3i)'].to_i, 0, 0)
37
+ return date.to_date
38
+ end
39
+
35
40
  def to_s
36
41
  self.id
37
42
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-redis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Barlow
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-13 00:00:00 +00:00
18
+ date: 2011-03-18 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21