ocm 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -5
- data/lib/ocm/iron_cache_orm.rb +3 -3
- data/lib/ocm/ormable.rb +1 -0
- data/lib/ocm/version.rb +1 -1
- data/test/test_ocm.rb +2 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ocm (0.0.
|
4
|
+
ocm (0.0.2)
|
5
5
|
iron_cache
|
6
6
|
jsonable
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
iron_cache (1.1
|
12
|
-
iron_core (>= 0.2
|
13
|
-
iron_core (0.
|
14
|
-
rest (>= 2.0.
|
11
|
+
iron_cache (1.2.1)
|
12
|
+
iron_core (>= 0.4.2)
|
13
|
+
iron_core (0.4.2)
|
14
|
+
rest (>= 2.0.2)
|
15
15
|
jsonable (0.0.3)
|
16
16
|
mime-types (1.19)
|
17
17
|
minitest (3.3.0)
|
data/lib/ocm/iron_cache_orm.rb
CHANGED
@@ -3,9 +3,9 @@ require 'iron_cache'
|
|
3
3
|
module Ocm
|
4
4
|
class Orm
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
@cache =
|
6
|
+
# initialize with a cache object from IronCache::Client, eg: iron_cache.cache("my_object_cache")
|
7
|
+
def initialize(cache)
|
8
|
+
@cache = cache
|
9
9
|
end
|
10
10
|
|
11
11
|
def key_for(idable, id=nil)
|
data/lib/ocm/ormable.rb
CHANGED
data/lib/ocm/version.rb
CHANGED
data/test/test_ocm.rb
CHANGED