pushyd 0.20.0 → 0.20.1

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: f28f30eb8e374a96c94d9db2e3211cb96e130805
4
- data.tar.gz: 2b3f74b4cf520b66847c1626c44e3257e6310a49
3
+ metadata.gz: c2c2fdf04d821f7426534efaf27cf2d9b22f4dd9
4
+ data.tar.gz: 675fc154c60c0e485a998512514f56075442b7f0
5
5
  SHA512:
6
- metadata.gz: 20bb1cc397e0d112988e0f8988645a553eefb19c288c81a49d531e4fc644607a45a160c3db0ff77c76a2e2e13666d877a44072e585baaf4553120ab6b56def2d
7
- data.tar.gz: 167aa4659b654a46195671d00d46d6a205b19fb528aac492d6c0b8cc12ad4b8580b02975b9365eee082780785e574e8601dd26a01f8c386629a42a3f69ad9b92
6
+ metadata.gz: c6a95461c0fc1906ebcc622f8e8d07e3e78c0568d45ab05a472cbcaa87ec07efc9bae8ab4712459331fd904bac65c2e452368b6517277ce15e5399f1a7af58fd
7
+ data.tar.gz: d3b4448c9802b03b4913620ea3d2517dffdce669d7146c306322c05b99cda7162ab9ef6da4a23f3fb0b25f1a0a0636feff36ab34411b372fcd0ea716b2920476
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pushyd (0.20.0)
4
+ pushyd (0.20.1)
5
5
  api-auth
6
- bmc-daemon-lib (~> 0.3.14)
6
+ bmc-daemon-lib (~> 0.3.16)
7
7
  bunny (~> 2.3)
8
8
  daemons
9
9
  json
@@ -19,7 +19,7 @@ GEM
19
19
  amq-protocol (2.0.1)
20
20
  api-auth (2.0.1)
21
21
  ast (2.3.0)
22
- bmc-daemon-lib (0.3.14)
22
+ bmc-daemon-lib (0.3.16)
23
23
  chamber (~> 2.9)
24
24
  bunny (2.5.1)
25
25
  amq-protocol (>= 2.0.1)
@@ -15,7 +15,7 @@ SHOUTER_SENTAT_DECIMALS = 6
15
15
  # Constants: logger
16
16
  LOG_HEADER_TIME = "%Y-%m-%d %H:%M:%S"
17
17
  LOG_HEADER_FORMAT = "%s \t%d\t%-8s %-15s "
18
- LOG_MESSAGE_TRIM = 250
18
+ LOG_MESSAGE_TRIM = 500
19
19
  LOG_MESSAGE_TEXT = "%s%s"
20
20
  LOG_MESSAGE_ARRAY = "%s %s"
21
21
  LOG_MESSAGE_HASH = "%s %-20s %s\n"
@@ -45,6 +45,9 @@ module PushyDaemon
45
45
 
46
46
  # Handle errors and acknowledgments
47
47
  # log_debug "handle_message : channel[#{@channel.inspect}]"
48
+ rescue Exception => e
49
+ log_error "handle_message: EXCEPTION: #{e.message}, #{e.inspect}", e.backtrace
50
+ channel_ackit(message[:tag], false)
48
51
  rescue StandardError => e
49
52
  log_error "handle_message: unknown: #{e.message}, #{e.inspect}", e.backtrace
50
53
  channel_ackit(message[:tag], false)
data/lib/pushyd/proxy.rb CHANGED
@@ -36,6 +36,12 @@ module PushyDaemon
36
36
 
37
37
  # Send config table to logs
38
38
  log_info "Proxy initialized", @table.to_s.lines
39
+
40
+ rescue StandardError => e
41
+ puts "Proxy.initialize: exception: #{e.inspect}"
42
+ log_error "Proxy.initialize: exception: #{e.inspect}"
43
+ raise MqConsumerException, e.message
44
+
39
45
  end
40
46
 
41
47
  protected
data/pushyd.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.20.0"
4
+ spec.version = "0.20.1"
5
5
 
6
6
  # Project description
7
7
  spec.name = "pushyd"
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  # spec.add_development_dependency "pry"
29
29
 
30
30
  # Runtime dependencies
31
- spec.add_runtime_dependency "bmc-daemon-lib", "~> 0.3.14"
31
+ spec.add_runtime_dependency "bmc-daemon-lib", "~> 0.3.16"
32
32
  spec.add_runtime_dependency "daemons"
33
33
  spec.add_runtime_dependency "json"
34
34
  spec.add_runtime_dependency "bunny", "~> 2.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushyd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.3.14
89
+ version: 0.3.16
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.3.14
96
+ version: 0.3.16
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: daemons
99
99
  requirement: !ruby/object:Gem::Requirement