emque-producing 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +3 -2
- data/README.md +6 -6
- data/lib/emque/producing/message/message.rb +5 -1
- data/lib/emque/producing/version.rb +1 -1
- data/spec/producing/message/message_spec.rb +14 -0
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Emque Producing CHANGELOG
|
2
2
|
|
3
|
-
- [
|
4
|
-
|
3
|
+
- [Return true or false when evalutating a valid message](https://github.com/emque/emque-producing/pull/45) (1.1.4)
|
4
|
+
- [Ensure we only confirm_select messages where raise_on_failure=true](https://github.com/emque/emque-producing/pull/41) (1.1.3)
|
5
|
+
- [Migrate from Virtus.model to Virtus.value_object](https://github.com/emque/emque-producing/pull/38) (1.1.2)
|
data/README.md
CHANGED
@@ -5,8 +5,7 @@
|
|
5
5
|
Define and send messages with Ruby to a variety of [message brokers](http://en.wikipedia.org/wiki/Message_broker).
|
6
6
|
The only currently supported message broker is [RabbitMQ](https://www.rabbitmq.com)
|
7
7
|
|
8
|
-
This is a library that pairs nicely with [Emque
|
9
|
-
Consuming](https://www.github.com/teamsnap/emque-consuming), a framework for
|
8
|
+
This is a library that pairs nicely with [Emque Consuming](https://www.github.com/emque/emque-consuming), a framework for
|
10
9
|
consuming and routing messages to your code.
|
11
10
|
|
12
11
|
## Installation
|
@@ -85,8 +84,7 @@ Or install it yourself as:
|
|
85
84
|
)
|
86
85
|
|
87
86
|
For a more thorough guide to creating new messages and/or message producing
|
88
|
-
applications, [please read the wiki
|
89
|
-
entry](https://github.com/teamsnap/emque-producing/wiki/Creating-New-Producing-Applications)
|
87
|
+
applications, [please read the wiki entry](https://github.com/emque/emque-producing/wiki/Creating-New-Producing-Applications)
|
90
88
|
|
91
89
|
## Requirements
|
92
90
|
|
@@ -99,7 +97,7 @@ entry](https://github.com/teamsnap/emque-producing/wiki/Creating-New-Producing-A
|
|
99
97
|
To run tests...
|
100
98
|
|
101
99
|
```
|
102
|
-
rspec
|
100
|
+
bundle exec rspec
|
103
101
|
```
|
104
102
|
|
105
103
|
If you would like to test the gem as part of your client, you can update the
|
@@ -115,7 +113,9 @@ adapter which may be convenient in the case of CI environments.
|
|
115
113
|
|
116
114
|
## Contributing
|
117
115
|
|
118
|
-
|
116
|
+
FIRST: Read our style guides at https://github.com/teamsnap/guides/tree/master/ruby
|
117
|
+
|
118
|
+
1. Fork it ( http://github.com/emque/emque-producing/fork )
|
119
119
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
120
120
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
121
121
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -287,6 +287,20 @@ describe Emque::Producing::Message do
|
|
287
287
|
end
|
288
288
|
end
|
289
289
|
|
290
|
+
context "valid?" do
|
291
|
+
describe "it returns true" do
|
292
|
+
it "returns true when the message is valid" do
|
293
|
+
message = TestMessage.new(:test_id => 1)
|
294
|
+
expect(message.valid?).to be(true)
|
295
|
+
end
|
296
|
+
|
297
|
+
it "returns fales when the message is invalid" do
|
298
|
+
message = TestMessage.new()
|
299
|
+
expect(message.valid?).to be(false)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
290
304
|
context "raise_on_failure" do
|
291
305
|
describe "when false" do
|
292
306
|
let(:message) { TestMessageDontRaiseOnFailure.new() }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emque-producing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-06-
|
13
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: oj
|