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: 7275b4ed7dcdd6cc9d8291653169d722c9ffc126
4
- data.tar.gz: fb15d286ec9ec162e1ad255dc1c2deed2a8b8ec4
3
+ metadata.gz: de217b9be23db369bc8ff9a5aae2ade6b54bba64
4
+ data.tar.gz: 79a01481307d1a5648c8b9ac33a68616705fa664
5
5
  SHA512:
6
- metadata.gz: 90e634fc0974f443e2031a93f59c4f063437cd79ec7db5c0388c2be692301ae8cce7abb9734bfb3f3b38c2c90e21aab57e35a73d8152cc7785e61903e4b6136a
7
- data.tar.gz: aecf8da87303c160f552a22c6c15bfe6bf95b673daebbb294684ebfbac1f8da018b4f3ed5a0c44223fc47590cbdbb889bc01f4e267a88a2be5f5fe8f158e589f
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 = eval(message[:code])
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}`")
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module RubyPersistence
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-ruby_persistence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama