gameon-redis 0.0.0.pre36 → 0.0.0.pre37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameon-redis/base.rb +0 -9
- 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: 0b5fcf6caf63a9a2d982362a371547eabde06eaf
|
4
|
+
data.tar.gz: 24b69e1a32eb507d900863e77eb65206ae7632ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 411fa9d9bbc6849297224cdbd3475e4f97ac2d6aebba7bf102de27fb5b220bfe97268938c4d5a30283f2c999a3dcec148ac4e2ce53941d9ab5ab5cd7091450a7
|
7
|
+
data.tar.gz: 9273024bb646117511bcc52be97c87d27da963a892d54644a749c297bb4a216085335b9407d5922cda64c91e0161434bcf487432c8f39d4a62e8b61b365c1b99
|
data/lib/gameon-redis/base.rb
CHANGED
@@ -38,18 +38,9 @@ module GameOn
|
|
38
38
|
begin
|
39
39
|
@gameon_env = Marshal.dump obj
|
40
40
|
@@redis.set(obj.id, @gameon_env)
|
41
|
-
#rescue SomeExceptionClass => some_variable
|
42
|
-
# code that deals with some exception
|
43
|
-
#rescue SomeOtherException => some_other_variable
|
44
|
-
# code that deals with some other exception
|
45
|
-
#else
|
46
|
-
# return false
|
47
|
-
# code that runs only if *no* exception was raised
|
48
41
|
ensure
|
49
42
|
p "storing GameOn Env #{obj}"
|
50
|
-
# ensure that this code always runs, no matter what
|
51
43
|
end
|
52
|
-
#return Marshal.load @gameon_env
|
53
44
|
end
|
54
45
|
def DS.load id
|
55
46
|
return Marshal.load (@@redis.get(id))
|