bmc-daemon-lib 0.3.0 → 0.3.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: 51d2fdee16ca885f005c34f7c8397a9d9204b43d
4
- data.tar.gz: 4ec68d9f87a93f171cd02057af392500b11be85a
3
+ metadata.gz: c81bcc7adad109a21ed683bc018e2a1586cd412a
4
+ data.tar.gz: ea213fa3acc97fefb473e8b17f8ecd82ea192290
5
5
  SHA512:
6
- metadata.gz: 84f136ee87bec96835b716df93dc1faf3f3d49c9094f173928ac8b083bfb29b45cd582f7747430f2af5a2754d9c8da1ba6d8729ad54be1cbf2042a5969fa3855
7
- data.tar.gz: f578421f1565e0a1cdbf15bb39eefa039e11e49dfa8173f0d825fd7a32ffacc6e703dfeb63538162989b362e864cfd9be730282ab1f37ecbe6e4cace6983963b
6
+ metadata.gz: bf9481c910f09498991118530ffacf3bfa5f963113799dad1a25f83aeb58c777e2029eb2fa832a901e1d1a12fc2dbc3564a48fb700a66c69e4de62fe97da6515
7
+ data.tar.gz: b6373f0a35618876834efc917e5adce4ef718731487f13a083c5207b376c92d7b5b517db9edc70d8edf32f5ac557b4e86d0c6e85558b9a2625f29b1cee22b68a
@@ -1,17 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bmc-daemon-lib (0.3.0)
5
- bunny
4
+ bmc-daemon-lib (0.3.1)
6
5
  chamber (~> 2.9)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
10
9
  specs:
11
- amq-protocol (2.0.1)
12
10
  ast (2.3.0)
13
- bunny (2.5.1)
14
- amq-protocol (>= 2.0.1)
15
11
  chamber (2.9.0)
16
12
  hashie (~> 3.3)
17
13
  thor (~> 0.19.1)
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.3.0"
4
+ spec.version = "0.3.1"
5
5
 
6
6
  # Project description
7
7
  spec.name = "bmc-daemon-lib"
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  # Runtime dependencies
29
29
  spec.add_runtime_dependency "chamber", "~> 2.9"
30
- spec.add_runtime_dependency "bunny"
31
30
  end
@@ -73,32 +73,6 @@ module BmcDaemonLib
73
73
  error "consumer cancelled remotely: #{all.inspect}"
74
74
  end
75
75
 
76
- # Start connexion to RabbitMQ
77
- def connect_to busconf
78
- fail PushyDaemon::EndpointConnexionContext, "invalid bus host/port" unless busconf
79
- info "connecting to bus", {
80
- broker: busconf,
81
- recover: AMQP_RECOVERY_INTERVAL,
82
- heartbeat: AMQP_HEARTBEAT_INTERVAL,
83
- prefetch: AMQP_PREFETCH
84
- }
85
- conn = Bunny.new busconf.to_s,
86
- logger: @logger,
87
- # heartbeat: :server,
88
- automatically_recover: true,
89
- network_recovery_interval: AMQP_RECOVERY_INTERVAL,
90
- heartbeat_interval: AMQP_HEARTBEAT_INTERVAL,
91
- read_write_timeout: AMQP_HEARTBEAT_INTERVAL*2
92
- conn.start
93
-
94
- rescue Bunny::TCPConnectionFailedForAllHosts, Bunny::AuthenticationFailureError, AMQ::Protocol::EmptyResponseError => e
95
- fail PushyDaemon::EndpointConnectionError, "error connecting (#{e.class})"
96
- rescue StandardError => e
97
- fail PushyDaemon::EndpointConnectionError, "unknow (#{e.inspect})"
98
- else
99
- return conn
100
- end
101
-
102
76
  def identifier len
103
77
  rand(36**len).to_s(36)
104
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc-daemon-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.9'
83
- - !ruby/object:Gem::Dependency
84
- name: bunny
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  description: 'Shared utilities to build a daemon: logger, configuration, helpers'
98
84
  email: bmc-daemon-lib@bmconseil.com
99
85
  executables: []