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: 9bff785a1e4c86f100d12d83c387b472e8881e53
4
- data.tar.gz: 54754d4197b98815514808f05f3a566b96c32ad0
3
+ metadata.gz: e7a9e72a6bcc80740b498b0f5691ba55204834c6
4
+ data.tar.gz: 389d68370cc724c0edb6eff0f4a0b822f154d84f
5
5
  SHA512:
6
- metadata.gz: 0387777dbddad841863fe873bb717e8d96c410e9f51104ced4f756cfa579b345781c300e19598b4a27623f4281bd3b334dcaac55c312b09f401d892d9a1a074a
7
- data.tar.gz: 74de81613420d4000cdc52feae641b0f3558333c18883065165b1cdc891c73558c776e8b1414b5b1fdc045dab69e72e3fb9f7507827417c4f5cb77ea99ef5db0
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.to_hash
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
 
@@ -1,3 +1,3 @@
1
1
  module MongoidIceCubeExtension
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-22 00:00:00.000000000 Z
11
+ date: 2015-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid