freddy 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +4 -1
- data/freddy.gemspec +1 -1
- data/lib/freddy/request.rb +2 -3
- data/lib/freddy/request_manager.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd30720991795db96e70f26190cf3a1b65e92417
|
4
|
+
data.tar.gz: fc188e002812f0d38781bd9971a8dec0f27fab4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb84534acc65e95aa33cfdb4a7619af476cf5355192dacc1b078cde7702f8323b0370bd63036d29fd10a4550fb6c11a68922c93b14e517d2482712001c23f04
|
7
|
+
data.tar.gz: fe31e8cdc06941aa5d3d5bb214802bae19e4d86bf11d40a6381c3eef0f9cfcf8296eaa100d72e2a501f9c8fd001e6ad02ee1b0afcf5f4f62e5c9eaea8a9253ec
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.2
|
data/Gemfile.lock
CHANGED
data/freddy.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "freddy"
|
7
|
-
spec.version = '0.4.
|
7
|
+
spec.version = '0.4.2'
|
8
8
|
spec.authors = ["Urmas Talimaa"]
|
9
9
|
spec.email = ["urmas.talimaa@gmail.com"]
|
10
10
|
spec.description = %q{Messaging API}
|
data/lib/freddy/request.rb
CHANGED
@@ -92,9 +92,8 @@ class Freddy
|
|
92
92
|
@request_map.delete correlation_id
|
93
93
|
request[:callback].call payload, delivery
|
94
94
|
else
|
95
|
-
|
96
|
-
|
97
|
-
Freddy.notify 'NoRequesterForResponse', message, correlation_id: correlation_id
|
95
|
+
@logger.warn "Got rpc response for correlation_id #{correlation_id} but there is no requester"
|
96
|
+
Freddy.notify 'NoRequesterForResponse', "Got rpc response but there is no requester", correlation_id: correlation_id
|
98
97
|
end
|
99
98
|
rescue Exception => e
|
100
99
|
destination_report = request ? "to #{request[:destination]}" : ''
|
@@ -32,9 +32,12 @@ class Freddy
|
|
32
32
|
def timeout(correlation_id, request)
|
33
33
|
@requests.delete correlation_id
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
@logger.warn "Request timed out waiting response from #{request[:destination]}, correlation id #{correlation_id}"
|
36
|
+
Freddy.notify 'RequestTimeout', "Request timed out waiting for response from #{request[:destination]}", {
|
37
|
+
correlation_id: correlation_id,
|
38
|
+
destination: request[:destination],
|
39
|
+
timeout: request[:timeout]
|
40
|
+
}
|
38
41
|
|
39
42
|
request[:callback].call({error: 'RequestTimeout', message: 'Timed out waiting for response'}, nil)
|
40
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Urmas Talimaa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.4.
|
155
|
+
rubygems_version: 2.4.5.1
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: API for inter-application messaging supporting acknowledgements and request-response
|