converse 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -59,9 +59,7 @@ into a list of transactions that the application understands.
59
59
 
60
60
  class GetTransactions < ProviderInteraction
61
61
  def initialize(broker, substance)
62
- ask_broker_concerning(broker, "transactions")
63
- about("<client_id>/transactions.json")
64
- detailed_by(substance)
62
+ ask_broker(broker).concerning("transactions").about("<client_id>/transactions.json").detailed_by(substance)
65
63
  end
66
64
 
67
65
  def interpret_conversation(response)
@@ -13,50 +13,73 @@ module Converse
13
13
  def discuss_with_broker_concerning(broker, concern)
14
14
  discuss_with(broker)
15
15
  concerning(concern)
16
+ self
16
17
  end
17
18
 
18
19
  def ask_broker_concerning(broker, concern)
19
20
  ask_broker(broker)
20
21
  concerning(concern)
22
+ self
21
23
  end
22
24
 
23
25
  def tell_broker_concerning(broker, concern)
24
26
  tell_broker(broker)
25
27
  concerning(concern)
28
+ self
26
29
  end
27
30
 
28
31
  def ask_broker(broker)
29
32
  @broker = broker
30
33
  @should_i_ask = true
34
+ self
31
35
  end
32
36
 
33
37
  def tell_broker(broker)
34
38
  @broker = broker
35
39
  @should_i_ask = false
40
+ self
36
41
  end
37
42
 
38
43
  def discuss_with(broker)
39
44
  @broker = broker
45
+ self
40
46
  end
41
47
 
42
48
  def concerning(concern)
43
49
  @concern = concern.dup
50
+ self
44
51
  end
45
52
 
46
53
  def about(action)
47
54
  @action = action.dup
55
+ self
56
+ end
57
+
58
+ def to(action)
59
+ about(action)
48
60
  end
49
61
 
50
62
  def detailed_by(substance)
51
63
  @substance = substance
64
+ self
65
+ end
66
+
67
+ def using(substance)
68
+ detailed_by(substance)
69
+ end
70
+
71
+ def with(substance)
72
+ detailed_by(substance)
52
73
  end
53
74
 
54
75
  def by_asking
55
76
  @should_i_ask = true
77
+ self
56
78
  end
57
79
 
58
80
  def by_saying
59
81
  @should_i_ask = false
82
+ self
60
83
  end
61
84
 
62
85
  def ask
@@ -1,3 +1,3 @@
1
1
  module Converse
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
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: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 11
10
- version: 1.0.11
9
+ - 12
10
+ version: 1.0.12
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-10-25 00:00:00 Z
18
+ date: 2012-10-26 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