mongoid_ice_cube_extension 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7a9e72a6bcc80740b498b0f5691ba55204834c6
|
4
|
+
data.tar.gz: 389d68370cc724c0edb6eff0f4a0b822f154d84f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f080010842b625d3b9095a2ee10dd7d5d103ae504129fdc0c3fabb0e1f95dbe6cc20ce46f6573ecac69be84a75be08c147300170ea361e493a3dd85f9449460
|
7
|
+
data.tar.gz: 1edfc4da224648cf4c399ca9fc70c1bdd8e622a2e9f43c6f1fbf98ce5dd30fa7b74a6f4c18de60f46ce62f50f2017370cb06b96f35bbf03ba052a3ba0a88e133
|
@@ -10,7 +10,17 @@ module MongoidIceCubeExtension
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def mongoize value
|
13
|
-
value
|
13
|
+
case value
|
14
|
+
when IceCube::Schedule then value.to_hash
|
15
|
+
else value
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def evolve value
|
20
|
+
case value
|
21
|
+
when IceCube::Schedule then value.to_hash
|
22
|
+
else value
|
23
|
+
end
|
14
24
|
end
|
15
25
|
end
|
16
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_ice_cube_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|