bug_bunny 5.2.0 → 5.4.0

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.
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: 5.2.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gabix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-29 00:00:00.000000000 Z
11
+ date: 2026-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -220,6 +220,48 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '1.6'
223
+ - !ruby/object:Gem::Dependency
224
+ name: activerecord
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '6.1'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '6.1'
237
+ - !ruby/object:Gem::Dependency
238
+ name: railties
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '6.1'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '6.1'
251
+ - !ruby/object:Gem::Dependency
252
+ name: sqlite3
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '1.4'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '1.4'
223
265
  description: BugBunny is a lightweight RPC framework for Ruby on Rails over RabbitMQ.
224
266
  It simulates a RESTful architecture with an intelligent router, Active Record-like
225
267
  resources, and middleware support.
@@ -229,6 +271,7 @@ executables: []
229
271
  extensions: []
230
272
  extra_rdoc_files: []
231
273
  files:
274
+ - ".rspec"
232
275
  - AGENTS.md
233
276
  - CHANGELOG.md
234
277
  - CLAUDE.md
@@ -247,6 +290,7 @@ files:
247
290
  - lib/bug_bunny/configuration.rb
248
291
  - lib/bug_bunny/consumer.rb
249
292
  - lib/bug_bunny/consumer_middleware.rb
293
+ - lib/bug_bunny/consumer_middleware/rails_executor.rb
250
294
  - lib/bug_bunny/controller.rb
251
295
  - lib/bug_bunny/drain_tracker.rb
252
296
  - lib/bug_bunny/exception.rb
@@ -267,7 +311,6 @@ files:
267
311
  - lib/bug_bunny/version.rb
268
312
  - lib/generators/bug_bunny/install/install_generator.rb
269
313
  - lib/generators/bug_bunny/install/templates/initializer.rb
270
- - lib/tasks/bug_bunny.rake
271
314
  - plan_test.txt
272
315
  - skill/SKILL.md
273
316
  - skill/references/client-middleware.md
@@ -287,6 +330,11 @@ files:
287
330
  - spec/integration/infrastructure_spec.rb
288
331
  - spec/integration/publisher_confirms_spec.rb
289
332
  - spec/integration/resource_spec.rb
333
+ - spec/rails/app.rb
334
+ - spec/rails/consumer_rails_executor_spec.rb
335
+ - spec/rails/install_generator_spec.rb
336
+ - spec/rails/rails_helper.rb
337
+ - spec/rails/railtie_rake_tasks_spec.rb
290
338
  - spec/spec_helper.rb
291
339
  - spec/support/bunny_mocks.rb
292
340
  - spec/support/integration_helper.rb
@@ -294,6 +342,7 @@ files:
294
342
  - spec/unit/communication_error_wrapping_spec.rb
295
343
  - spec/unit/configuration_spec.rb
296
344
  - spec/unit/consumer_middleware_spec.rb
345
+ - spec/unit/consumer_rails_executor_outside_rails_spec.rb
297
346
  - spec/unit/consumer_spec.rb
298
347
  - spec/unit/controller_after_action_spec.rb
299
348
  - spec/unit/drain_tracker_spec.rb
@@ -317,7 +366,7 @@ metadata:
317
366
  homepage_uri: https://github.com/gedera/bug_bunny
318
367
  source_code_uri: https://github.com/gedera/bug_bunny
319
368
  changelog_uri: https://github.com/gedera/bug_bunny/blob/main/CHANGELOG.md
320
- documentation_uri: https://github.com/gedera/bug_bunny/blob/v5.2.0/skill
369
+ documentation_uri: https://github.com/gedera/bug_bunny/blob/v5.4.0/skill
321
370
  post_install_message:
322
371
  rdoc_options: []
323
372
  require_paths:
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'date'
4
-
5
- namespace :bug_bunny do
6
- desc 'Sync BugBunny AI docs reference in CLAUDE.md with the installed version'
7
- task :sync do
8
- spec = Gem::Specification.find_by_name('bug_bunny')
9
- version = spec.version.to_s
10
- docs_path = File.join(spec.gem_dir, 'docs', 'ai')
11
- claude_md_path = File.join(Dir.pwd, 'CLAUDE.md')
12
-
13
- content = if File.exist?(claude_md_path)
14
- File.read(claude_md_path)
15
- else
16
- app_name = File.basename(Dir.pwd).split(/[-_]/).map(&:capitalize).join
17
- puts 'bug_bunny:sync — CLAUDE.md not found, creating it.'
18
- "# #{app_name}\n"
19
- end
20
-
21
- # Idempotent: same version already present, nothing to do
22
- if content.include?('### bug_bunny') && content.include?("**Version:** #{version}")
23
- puts "bug_bunny:sync — already at #{version}, nothing to do."
24
- next
25
- end
26
-
27
- block = <<~BLOCK
28
- ### bug_bunny
29
- - **Version:** #{version}
30
- - **Docs:** #{docs_path}
31
- - **Updated:** #{Date.today}
32
- BLOCK
33
-
34
- # Replace existing block if present
35
- if content.match?(/^### bug_bunny\n/)
36
- updated = content.gsub(/^### bug_bunny\n(?:- \*\*.*\n)*/, block)
37
- File.write(claude_md_path, updated)
38
- puts "bug_bunny:sync — updated to #{version} in CLAUDE.md"
39
- elsif content.include?('## Gemas internas')
40
- # Append under existing section
41
- updated = content.sub(/^## Gemas internas\n/, "## Gemas internas\n\n#{block}")
42
- File.write(claude_md_path, updated)
43
- puts "bug_bunny:sync — added #{version} under '## Gemas internas' in CLAUDE.md"
44
- else
45
- # Create section at end of file
46
- File.write(claude_md_path, content.rstrip + "\n\n## Gemas internas\n\n#{block}")
47
- puts "bug_bunny:sync — added '## Gemas internas' section with #{version} to CLAUDE.md"
48
- end
49
- end
50
- end