converse 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Ernst
1
+ Copyright (c) 2012 Ernst van Graan, Hetzner (Pty) Ltd
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -8,6 +8,10 @@ module Converse
8
8
  def broker_conversation(topic)
9
9
  end
10
10
 
11
+ def translate_response(response)
12
+ response
13
+ end
14
+
11
15
  def discuss(concern, action)
12
16
  broker_conversation(open_topic(concern, action))
13
17
  end
@@ -51,7 +51,8 @@ module Converse
51
51
  @conversation = broker.broker_conversation(@broker.open_topic(@concern, @action))
52
52
  @conversation.subscribe(SimpleLogger.new)
53
53
  @should_i_ask ? response = ask : response = say
54
- interpret_conversation(response)
54
+ translated_response = broker.translate_response(response)
55
+ interpret_conversation(translated_response)
55
56
  end
56
57
 
57
58
  def interpret_conversation(response)
@@ -1,3 +1,3 @@
1
1
  module Converse
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: converse
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 8
10
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ernst van Graan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-06 00:00:00 Z
18
+ date: 2012-10-05 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Converse provides Broker/Translator classes to facilitate communication across an API by means of conversations