gameon-redis 0.0.0.pre23 → 0.0.0.pre24
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.
- checksums.yaml +4 -4
- data/lib/gameon-redis/base.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc1c6011db73c8f510dbfa2a6e78ad260428c56f
|
|
4
|
+
data.tar.gz: ab5411da3c96cbdd98d69705937bab5ffdfe9f94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19302e54ccd37d0c2b583d33053606f4c4ba798fc4be84fc956d1d9afda16198b46dd0212be230c90e32f977eb116782b4c020b88072e77683e7b5eaadd69dc0
|
|
7
|
+
data.tar.gz: a8f868554dcb7748bf4ef62160ac965f0a41d5d9116d69d50813962d9d16ff1a6c546cad31e22f266834468c91a3ee1d9afe6c77029f9dedbc638e1562386f04
|
data/lib/gameon-redis/base.rb
CHANGED
|
@@ -22,7 +22,7 @@ module GameOn
|
|
|
22
22
|
p "GameOn::Persistence::DS instance id = #{@id}"
|
|
23
23
|
if exists? @id
|
|
24
24
|
#if (@@redis.get @id ) && (Marshal.load @@redis.get @id)
|
|
25
|
-
env[:gameon] = load @id
|
|
25
|
+
env[:gameon] = self.load @id
|
|
26
26
|
p "resotred #{env[:gameon]}"
|
|
27
27
|
else
|
|
28
28
|
p 'new obj from GameOn::Env class '
|
|
@@ -39,7 +39,7 @@ module GameOn
|
|
|
39
39
|
@@redis.set(obj.id, @env)
|
|
40
40
|
return Marshal.load @env
|
|
41
41
|
end
|
|
42
|
-
def load id
|
|
42
|
+
def self.load id
|
|
43
43
|
return Marshal.load @@redis.get @id
|
|
44
44
|
#return Marshal.load @@redis.get GameOn::Env.id.to_s + 'gameon'
|
|
45
45
|
end
|