bug_bunny 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bug_bunny/adapter.rb +5 -5
- data/lib/bug_bunny/version.rb +1 -1
- metadata +6 -7
- data/bug_bunny.gemspec +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daaffb39ad9bdde817c106114b90ce45b7807b1e77d4c411846506618791bece
|
4
|
+
data.tar.gz: d578e38d4faf58d2f23514d641ba01a40a43f8f723a9ab4640a2c6cb97c9d657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac312aee21baa512994dadf9807225012b3a3cedb91956df52da97680432d2d955045700d4b2012dbc4ed2a7bf69b5a0d14a7f464fd1ae17001e7d7e0a01420
|
7
|
+
data.tar.gz: a9e4feea6301be2aadcc5551fcc085caeb36747dc6f2d9d792126f904e29befbbea2433d36b833956a37508cfe3be72d403f2d264656cf86ef3fed453cfd4d23
|
data/lib/bug_bunny/adapter.rb
CHANGED
@@ -20,7 +20,7 @@ module BugBunny
|
|
20
20
|
:service_message,
|
21
21
|
:consume_response
|
22
22
|
|
23
|
-
def initialize
|
23
|
+
def initialize(attrs = {})
|
24
24
|
@logger = Logger.new('./log/bug_bunny.log', 'monthly')
|
25
25
|
@communication_response = ::BugBunny::Response.new status: false
|
26
26
|
@time_to_wait = 2
|
@@ -89,10 +89,10 @@ module BugBunny
|
|
89
89
|
# Session.correlation_id = metadata.correlation_id
|
90
90
|
# Session.queue_name = queue.name
|
91
91
|
|
92
|
-
unless defined?(ActiveRecord) && ActiveRecord::Base.connection_pool.with_connection(&:active?)
|
93
|
-
|
94
|
-
|
95
|
-
end
|
92
|
+
# unless defined?(ActiveRecord) && ActiveRecord::Base.connection_pool.with_connection(&:active?)
|
93
|
+
# logger.error('[PG] PG connection down')
|
94
|
+
# exit 7
|
95
|
+
# end
|
96
96
|
|
97
97
|
begin
|
98
98
|
message = ::BugBunny::Message.new(correlation_id: metadata.correlation_id, reply_to: metadata.reply_to, **payload)
|
data/lib/bug_bunny/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bug_bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gabix
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -49,7 +49,6 @@ files:
|
|
49
49
|
- Gemfile
|
50
50
|
- README.md
|
51
51
|
- Rakefile
|
52
|
-
- bug_bunny.gemspec
|
53
52
|
- lib/bug_bunny.rb
|
54
53
|
- lib/bug_bunny/adapter.rb
|
55
54
|
- lib/bug_bunny/controller.rb
|
@@ -69,7 +68,7 @@ metadata:
|
|
69
68
|
homepage_uri: https://github.com/gedera/bug_bunny
|
70
69
|
source_code_uri: https://github.com/gedera/bug_bunny
|
71
70
|
changelog_uri: https://github.com/gedera/bug_bunny/blob/main/CHANGELOG.md
|
72
|
-
post_install_message:
|
71
|
+
post_install_message:
|
73
72
|
rdoc_options: []
|
74
73
|
require_paths:
|
75
74
|
- lib
|
@@ -84,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
83
|
- !ruby/object:Gem::Version
|
85
84
|
version: '0'
|
86
85
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
88
|
-
signing_key:
|
86
|
+
rubygems_version: 3.5.11
|
87
|
+
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: Gem for sync and async comunication via rabbit bunny.
|
91
90
|
test_files: []
|
data/bug_bunny.gemspec
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/bug_bunny/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "bug_bunny"
|
7
|
-
spec.version = BugBunny::VERSION
|
8
|
-
spec.authors = ["gabix"]
|
9
|
-
spec.email = ["gab.edera@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Gem for sync and async comunication via rabbit bunny."
|
12
|
-
spec.description = "Gem for sync and async comunication via rabbit bunny."
|
13
|
-
spec.homepage = "https://github.com/gedera/bug_bunny"
|
14
|
-
spec.required_ruby_version = ">= 2.6.0"
|
15
|
-
|
16
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
|
-
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/gedera/bug_bunny"
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/gedera/bug_bunny/blob/main/CHANGELOG.md"
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(__dir__) do
|
25
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
27
|
-
end
|
28
|
-
end
|
29
|
-
spec.bindir = "exe"
|
30
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
-
spec.require_paths = ["lib"]
|
32
|
-
|
33
|
-
# Uncomment to register a new dependency of your gem
|
34
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
35
|
-
|
36
|
-
spec.add_dependency "bunny", "~> 2.20"
|
37
|
-
spec.add_development_dependency "rubocop"
|
38
|
-
|
39
|
-
# For more information and examples about making a new gem, check out our
|
40
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
41
|
-
end
|