bug_bunny 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: e955f527c2414c898f4bb9fa0f5584b59d112492edde985e41aad43dd9531795
4
- data.tar.gz: 14bd2be642714c1a275a2e2a57d7a1c96caf386162af7403b888031a76eaab4d
3
+ metadata.gz: daaffb39ad9bdde817c106114b90ce45b7807b1e77d4c411846506618791bece
4
+ data.tar.gz: d578e38d4faf58d2f23514d641ba01a40a43f8f723a9ab4640a2c6cb97c9d657
5
5
  SHA512:
6
- metadata.gz: f7e81ea70ee7b358befc49b4165a37556fb28fe18fdab973f1a8e5faaa2d253138f0424651965a54ed251a8043e4de7b85810d06cc4e1929ef80db412877f709
7
- data.tar.gz: c55269bbf9612e22d20a39784f4d8b03f05a501c5b3833d4b7f56bf0d377c300ce833a369d7c82663d09ab2b49b9cf3572c20a2d9c8f73d57de097414bef7727
6
+ metadata.gz: bac312aee21baa512994dadf9807225012b3a3cedb91956df52da97680432d2d955045700d4b2012dbc4ed2a7bf69b5a0d14a7f464fd1ae17001e7d7e0a01420
7
+ data.tar.gz: a9e4feea6301be2aadcc5551fcc085caeb36747dc6f2d9d792126f904e29befbbea2433d36b833956a37508cfe3be72d403f2d264656cf86ef3fed453cfd4d23
@@ -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
- logger.error('[PG] PG connection down')
94
- exit 7
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BugBunny
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
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.0
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: 2023-02-06 00:00:00.000000000 Z
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.4.6
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