ruboty-ruby_persistence 0.1.0 → 0.1.1

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: 8941fe76d89fbb1f4cf864cc3ca44f919c41e4c7
4
- data.tar.gz: 3a43616d4e6a8fa8908ccf0652a0b615ac14382b
3
+ metadata.gz: 4f9678cb901da05598d448e5f5ccbc33ce72270e
4
+ data.tar.gz: bf8e16ed9201ccc4f5223d45fb0f2a9904cdd021
5
5
  SHA512:
6
- metadata.gz: 1d9e24161c69aefc8ce1da443ac74a974c39b09589a4b190f7944adc7b2d84d4e31e08c5c16a5df2e0e0a7fae648729b4e33e84a2badfd22503796b23fe72303
7
- data.tar.gz: a37c3981d28a76a265e6ded025a804764090c42fc3cbae2b6f96f6a622143be2ed79e31b00ad7aae8aa9fae8b709d85113aeea79e751c8c48cc430aad9b6b407
6
+ metadata.gz: 7a7ac650e5c9cc1a3b1a24dd68b842d876aaf42b63c143e8bbf99fa990de39ad5637549bc539dda114588d52df7567e798a45d9b02a7ed16c641372a3dddf952
7
+ data.tar.gz: eb187a01d908669f04929957d0deb36843c3f54827401db13c80ac9acddde9358521c38e899dc006dacd3a8f67804e981fbe78456bb9f2d7c56bf79e0be6d3f1
@@ -51,9 +51,9 @@ module Ruboty
51
51
  def set_and_persist(message)
52
52
  name = message[:name]
53
53
  result = eval(message[:code])
54
- context.define_method(name) { result }
54
+ context.__send__(:define_method, name) { result }
55
55
  variables[name] = result
56
- message.reply("`#{name}` is now `#{result.to_inspect}`")
56
+ message.reply("`#{name}` is now `#{result.inspect}`")
57
57
  rescue Exception => exception
58
58
  message.reply("#{exception.class}: #{exception}")
59
59
  end
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module RubyPersistence
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama