ruboty-ruby_persistence 0.1.2 → 0.1.3
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: de217b9be23db369bc8ff9a5aae2ade6b54bba64
|
4
|
+
data.tar.gz: 79a01481307d1a5648c8b9ac33a68616705fa664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c72db9e113af16f96e94877026f50e71e7dd3fc973fc0a8a1de861cd69ac2620478d04edaff8804be66e3583b52f9a011d48b4fe7854f3a464a4ff8564ce6213
|
7
|
+
data.tar.gz: 0f5a2870e619ba67721b31647db8e574ceccc54ad72fa2dfae29fc9e8006def4363c6e4a3200e9607b7dcfb19b809227ddf71a0c26a7064437e848057a928e04
|
@@ -50,7 +50,7 @@ module Ruboty
|
|
50
50
|
|
51
51
|
def set_and_persist(message)
|
52
52
|
name = message[:name]
|
53
|
-
result =
|
53
|
+
result = context.instance_eval(message[:code])
|
54
54
|
context.__send__(:define_method, name) { result }
|
55
55
|
variables[name] = result
|
56
56
|
message.reply("`#{name}` is now `#{result.inspect}`")
|