evt-messaging 0.14.0.0 → 0.15.0.0

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: 6e244d53eb5fcdea40e6446ec08948e18cc9c2d7
4
- data.tar.gz: 05f1b977833797561c7beb3ac86105ec490f4c21
3
+ metadata.gz: 5c18f15a87a0f247b6276782c182b30486470297
4
+ data.tar.gz: 93a4fd65e81b3f41c7c270075362a3238188005e
5
5
  SHA512:
6
- metadata.gz: a9bc47b9ff845c80f14896772f7f1cddf96135847031bcc103cf9d7f68e49c4b082456f2fd1fb08382c2c241797b344b8ba785496a56f0c0714655e8598757e6
7
- data.tar.gz: eb9605ae1db4aadb406165ed8a11328d27c8c3f08b8a11899246b3b1036704fb1ebe9b94aa49266aeccb1bb5c66e979fb765cd780de1c9db18675a1241f93f44
6
+ metadata.gz: 500f7174f077e22b4d29da1569ecb4ebb011124b8ff07e642040b62c95c274caa01ccc0e577bd108b983bc5afe2dc442701e2710e96ec55d68719ff9c33bfa1a
7
+ data.tar.gz: 7969c42f65aaa75de28d48cd6fc2f6dc0133c3a9d1f751c4c0095bf4dc23d05253bec92463bd3b2d229f5ddbe24160b9495029b9155e4909f34a120add84c271
@@ -109,7 +109,6 @@ module Messaging
109
109
 
110
110
  messages.first
111
111
  end
112
- alias :message :one_message_write
113
112
  alias :one_message :one_message_write
114
113
 
115
114
  def message_replies(&blk)
@@ -122,6 +121,17 @@ module Messaging
122
121
  end.map { |record| record.data.message }
123
122
  end
124
123
  alias :replies :message_replies
124
+
125
+ def one_message_reply(&blk)
126
+ messages = message_replies(&blk)
127
+
128
+ if messages.length > 1
129
+ raise Error, "More than one matching message reply was written"
130
+ end
131
+
132
+ messages.first
133
+ end
134
+ alias :one_reply :one_message_reply
125
135
  end
126
136
  end
127
137
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.0
4
+ version: 0.15.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
@@ -44,7 +44,6 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - lib/loader.rb
48
47
  - lib/messaging.rb
49
48
  - lib/messaging/category.rb
50
49
  - lib/messaging/controls.rb
@@ -89,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
88
  version: '0'
90
89
  requirements: []
91
90
  rubyforge_project:
92
- rubygems_version: 2.6.11
91
+ rubygems_version: 2.6.8
93
92
  signing_key:
94
93
  specification_version: 4
95
94
  summary: Messaging primitives for Eventide
data/lib/loader.rb DELETED
@@ -1 +0,0 @@
1
- lib/messaging.rb