propono 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/propono/services/publisher.rb +1 -1
- data/lib/propono/version.rb +1 -1
- data/test/integration/integration_test.rb +0 -1
- data/test/integration/sns_to_sqs_test.rb +3 -1
- data/test/integration/udp_proxy_test.rb +4 -1
- data/test/integration/udp_to_sqs_test.rb +4 -1
- data/test/services/publisher_test.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 299526d5c3416f58858496b984ec04ff96a74a69
|
4
|
+
data.tar.gz: 8ab281343f74f9c5bfc233891311f1f21ebbf9e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b3f4bbc2284bf4fad16d8c57dff469d94522b46948a5d1c882d0994b03a4c1d699680615dd653a0325671f512d84f47c165314d0e4d7cc914a8eda7871b318a
|
7
|
+
data.tar.gz: 16609ea0f80a7cb985b84d4b2015bdbedd2aa83441f6dbcab2263db623bc17d412c2f0a191b0aab7d7b178ca781c98baa181a7aaba18291260a333725333c479
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# 0.6.3 / 2013-10-20
|
2
|
+
|
3
|
+
* [FEATURE] Catch all StandardError exceptions for UDP publishes.
|
4
|
+
|
5
|
+
# 0.6.2 / 2013-10-20
|
6
|
+
|
7
|
+
* [BUGFIX] Fixed integration tests that sometimes failed due to shared UDP ports or slow SQS subscriptions.
|
8
|
+
|
9
|
+
# 0.6.1 / 2013-10-20
|
10
|
+
|
11
|
+
* [BUGFIX] Added `require 'json'` to udp_listener.rb
|
@@ -35,7 +35,7 @@ module Propono
|
|
35
35
|
def publish_via_udp
|
36
36
|
payload = {topic: topic_id, message: message}.to_json
|
37
37
|
UDPSocket.new.send(payload, 0, Propono.config.udp_host, Propono.config.udp_port)
|
38
|
-
rescue
|
38
|
+
rescue => e
|
39
39
|
Propono.config.logger.error "Propono failed to send : #{e}"
|
40
40
|
end
|
41
41
|
end
|
data/lib/propono/version.rb
CHANGED
@@ -6,6 +6,8 @@ module Propono
|
|
6
6
|
topic = "test-topic"
|
7
7
|
text = "This is my message"
|
8
8
|
|
9
|
+
Propono.subscribe_by_queue(topic)
|
10
|
+
|
9
11
|
thread = Thread.new do
|
10
12
|
Propono.listen_to_queue(topic) do |message|
|
11
13
|
assert_equal text, message
|
@@ -13,7 +15,7 @@ module Propono
|
|
13
15
|
end
|
14
16
|
end
|
15
17
|
Propono.publish(topic, text)
|
16
|
-
flunk unless wait_for_thread(thread)
|
18
|
+
flunk("Test Timeout") unless wait_for_thread(thread)
|
17
19
|
ensure
|
18
20
|
thread.terminate
|
19
21
|
end
|
@@ -5,6 +5,9 @@ module Propono
|
|
5
5
|
def test_the_message_gets_there
|
6
6
|
topic = "test-topic"
|
7
7
|
message = "This is my message"
|
8
|
+
Propono.config.udp_port = 20001
|
9
|
+
|
10
|
+
Propono.subscribe_by_queue(topic)
|
8
11
|
|
9
12
|
udp_thread = Thread.new do
|
10
13
|
Propono.proxy_udp
|
@@ -18,7 +21,7 @@ module Propono
|
|
18
21
|
end
|
19
22
|
|
20
23
|
Propono.publish(topic, message, protocol: :udp)
|
21
|
-
flunk unless wait_for_thread(sqs_thread)
|
24
|
+
flunk("Test timeout") unless wait_for_thread(sqs_thread)
|
22
25
|
ensure
|
23
26
|
udp_thread.terminate
|
24
27
|
sqs_thread.terminate
|
@@ -5,6 +5,9 @@ module Propono
|
|
5
5
|
def test_the_message_gets_there
|
6
6
|
topic = "test-topic"
|
7
7
|
message = "This is my message"
|
8
|
+
Propono.config.udp_port = 20002
|
9
|
+
|
10
|
+
Propono.subscribe_by_queue(topic)
|
8
11
|
|
9
12
|
udp_thread = Thread.new do
|
10
13
|
Propono.listen_to_udp do |udp_topic, udp_message|
|
@@ -21,7 +24,7 @@ module Propono
|
|
21
24
|
end
|
22
25
|
|
23
26
|
Propono.publish(topic, message, protocol: :udp)
|
24
|
-
flunk unless wait_for_thread(udp_thread) && wait_for_thread(sqs_thread)
|
27
|
+
flunk("Test Timeout") unless wait_for_thread(udp_thread) && wait_for_thread(sqs_thread)
|
25
28
|
ensure
|
26
29
|
udp_thread.terminate
|
27
30
|
sqs_thread.terminate
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: propono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MalcyL
|
@@ -105,6 +105,7 @@ extra_rdoc_files: []
|
|
105
105
|
files:
|
106
106
|
- .gitignore
|
107
107
|
- .travis.yml
|
108
|
+
- CHANGELOG.md
|
108
109
|
- CONTRIBUTING.md
|
109
110
|
- Gemfile
|
110
111
|
- LICENCE.md
|