activerabbit-ai 0.4.0 → 0.4.1

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: ec5ef4721bc8a2096c534eb4f04e54d0520daa42dc95341feefa5bca17ba88e7
4
- data.tar.gz: bd3b5b9eb8879ecc3eb682126262e036a46dc3352be1f5b0ba71e7d234402868
3
+ metadata.gz: cc6f70049c2b884248d9d15062ab2bb69887cdcf0430e92c96213d6a81559310
4
+ data.tar.gz: 2dd36a9c979f33b42bbe22e5422bc659a7d4c0752b312d9b8345cd2d11ad65bb
5
5
  SHA512:
6
- metadata.gz: 6421b105cc63156671b119f8ce06fa94a5ce4fa5525f3f8eba96ac351b6da59f6cda1edb00acb03d607e9d7e9ca5074fb288cf6b3f8874468e67ad6ed5684d78
7
- data.tar.gz: 8543aa8f59de9a40a35936927fcb6010e62a45221ebc071ad513ebd7a6c3d2c42243d57a18f5e520d20d6045fefce14d1db78f567e68941cec9690267724e480
6
+ metadata.gz: eebd3ced14adfd6831ec0405e2a33df376eb2e510156e37a78195038710133f75d2794b5aae06322ba3a7f1d29cb6633531a9eacc25e842df49995d85334739b
7
+ data.tar.gz: cc369187974da2d7c9b8fffccfc0079f875e1d78ae3644197eedeadfc64d0ab3e881c99ee1755597f85371bd7d923dbac2f8e403c0f62666c39fe75b070a0ee8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.4.1] - 2025-01-04
6
+
7
+ ### Fixed
8
+ - Added explicit `require "logger"` to prevent Rails initialization issues
9
+ - Made Rails.logger access safer with fallback to STDOUT logger
10
+ - Changed initializer to run after `:initialize_logger` to ensure proper load order
11
+ - Fixed potential NameError with ActiveSupport::LoggerThreadSafeLevel::Logger
12
+
5
13
  ## [0.4.0] - 2025-01-04
6
14
 
7
15
  ### Added
data/check_api_data.rb ADDED
File without changes
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "logger"
4
+
3
5
  begin
4
6
  require "rails/railtie"
5
7
  rescue LoadError
@@ -16,11 +18,11 @@ module ActiveRabbit
16
18
  class Railtie < Rails::Railtie
17
19
  config.active_rabbit = ActiveSupport::OrderedOptions.new
18
20
 
19
- initializer "active_rabbit.configure" do |app|
21
+ initializer "active_rabbit.configure", after: :initialize_logger do |app|
20
22
  # Configure ActiveRabbit from Rails configuration
21
23
  ActiveRabbit::Client.configure do |config|
22
24
  config.environment = Rails.env
23
- config.logger = Rails.logger
25
+ config.logger = Rails.logger rescue Logger.new(STDOUT)
24
26
  config.release = detect_release(app)
25
27
  end
26
28
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRabbit
4
4
  module Client
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerabbit-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Shapalov
@@ -81,6 +81,7 @@ files:
81
81
  - README.md
82
82
  - Rakefile
83
83
  - TESTING_GUIDE.md
84
+ - check_api_data.rb
84
85
  - examples/rails_app_testing.rb
85
86
  - examples/rails_integration.rb
86
87
  - examples/standalone_usage.rb