ruboty-talk 0.0.2 → 0.0.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: c43949604039ed19040448ef61ba0825a4877567
4
- data.tar.gz: 7b52f89ac7b29109fe3dcb1acbdf7d347844605f
3
+ metadata.gz: 1ffac9a397a607b71e67b0590e58f1434936974c
4
+ data.tar.gz: 151f63756e06d7f0330c2a9a4bda582595e8767c
5
5
  SHA512:
6
- metadata.gz: 2717f4a8aed2bfbde77046c4350e48294003fac6e53c7fe19418ce7cf89c68029a919d5ee53ff2205324153425475415b693e677fff4430d37b23d6dd7bfb479
7
- data.tar.gz: b0bac23d16babb81c118ce4daac0d5cf75d8a118005c0e5641c40d35591d6fdd416d8acb37a8021172ec57aa327fec6db1b4320bf575ca5f99f53f4bccc02c61
6
+ metadata.gz: 1b98689d1c9e375e3d37ecd89d5c7a6b8075fca4bb7a3c2db7dbe79ce499311ec6c71e327f5d0ea9822b3f99872fed22352b79750d15332142a5e9c5a954f6d4
7
+ data.tar.gz: 227da1ca5f82452cb4023194c08c415742ae8b0ed1c56719450a4d011fc7676e49c9b223eafae0335af7145284629b90379b27d8e8fd2c1ba8d0ccc3b5c6fc09
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.3
2
+ - Keep context
3
+
1
4
  ## 0.0.2
2
5
  - Make it compatible with Ruby 2.0
3
6
 
@@ -15,7 +15,9 @@ module Ruboty
15
15
  )
16
16
 
17
17
  def talk(message)
18
- message.reply(client.create_dialogue(message[:body]).body["utt"])
18
+ response = client.create_dialogue(message[:body], context: @context)
19
+ @context = response.body["context"]
20
+ message.reply(response.body["utt"])
19
21
  end
20
22
 
21
23
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Talk
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-talk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2014-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docomoru