freddy 0.4.1 → 0.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 150435d81a37c816cd2c9c3bf4c3a4e76cf9c2b7
4
- data.tar.gz: e9c6998369bd82df946374a44ab90f34d043faa1
3
+ metadata.gz: cd30720991795db96e70f26190cf3a1b65e92417
4
+ data.tar.gz: fc188e002812f0d38781bd9971a8dec0f27fab4e
5
5
  SHA512:
6
- metadata.gz: c2a3c862df5e8bcbe0f9d711ca513fdf0737d48fc429c958a5e346157ded4d466bcc3a8bba62912a02623585bcc55bd4729935f8bda7a3460524713d8dd92a5b
7
- data.tar.gz: c45bd40f528f1fc55839adbaa371d8bf85b159f94c225f8558414c444ce5e5199f7dae8f96a4c1947ea32a886c45b0a2ad8f3b671430010eb6be825b771f3190
6
+ metadata.gz: eeb84534acc65e95aa33cfdb4a7619af476cf5355192dacc1b078cde7702f8323b0370bd63036d29fd10a4550fb6c11a68922c93b14e517d2482712001c23f04
7
+ data.tar.gz: fe31e8cdc06941aa5d3d5bb214802bae19e4d86bf11d40a6381c3eef0f9cfcf8296eaa100d72e2a501f9c8fd001e6ad02ee1b0afcf5f4f62e5c9eaea8a9253ec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1
1
+ 2.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freddy (0.4.1)
4
+ freddy (0.4.2)
5
5
  bunny (= 1.6.3)
6
6
  hamster (~> 1.0.1.pre.rc3)
7
7
  symbolizer
@@ -49,3 +49,6 @@ DEPENDENCIES
49
49
  pry
50
50
  rake
51
51
  rspec
52
+
53
+ BUNDLED WITH
54
+ 1.10.6
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.1'
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}
@@ -92,9 +92,8 @@ class Freddy
92
92
  @request_map.delete correlation_id
93
93
  request[:callback].call payload, delivery
94
94
  else
95
- message = "Got rpc response for correlation_id #{correlation_id} but there is no requester"
96
- @logger.warn message
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
- message = "Request #{correlation_id} timed out waiting response from #{request[:destination]} with timeout #{request[:timeout]}"
36
- @logger.warn message
37
- Freddy.notify 'RequestTimeout', message, request: correlation_id, destination: request[:destination], timeout: request[:timeout]
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.1
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-08-18 00:00:00.000000000 Z
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.8
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