activerabbit-ai 0.3.1 → 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: 7140880a3f3d5d65a37a01fc85789c656911488e5106411c6777a4f2d24812a9
4
- data.tar.gz: c429cfdda0f862d1c9ba81315451899115d58f82ec28d77a266b962029f22101
3
+ metadata.gz: cc6f70049c2b884248d9d15062ab2bb69887cdcf0430e92c96213d6a81559310
4
+ data.tar.gz: 2dd36a9c979f33b42bbe22e5422bc659a7d4c0752b312d9b8345cd2d11ad65bb
5
5
  SHA512:
6
- metadata.gz: f0656be41868bb0acbbcd15d72cc8e09efc2ee63fb1671a6b71de083e0066bd7d28dc7b62cf67b31935a885fd604e6ff8b0b25e66b46eff3beb020d9726695f8
7
- data.tar.gz: 513e482c93e2465fc7b275b6256ef40843cc6e0e9b0ae41a9bb4a118fe20aed5d7367c13925ac17efc7350595edfd3d8a8307baa55d3c5d37ebf266ef2aced48
6
+ metadata.gz: eebd3ced14adfd6831ec0405e2a33df376eb2e510156e37a78195038710133f75d2794b5aae06322ba3a7f1d29cb6633531a9eacc25e842df49995d85334739b
7
+ data.tar.gz: cc369187974da2d7c9b8fffccfc0079f875e1d78ae3644197eedeadfc64d0ab3e881c99ee1755597f85371bd7d923dbac2f8e403c0f62666c39fe75b070a0ee8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
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
+
13
+ ## [0.4.0] - 2025-01-04
14
+
15
+ ### Added
16
+ - Comprehensive RSpec test suite with 73+ test examples
17
+ - API integration tests with WebMock for mocked API calls
18
+ - Live API integration tests for real API testing
19
+ - Support for testing Rails middleware integration
20
+ - API helper modules for test setup and configuration
21
+ - Test coverage for all major gem components:
22
+ - HTTP client with Net::HTTP implementation
23
+ - Configuration management and validation
24
+ - PII scrubbing functionality
25
+ - Error and performance tracking
26
+ - Batch processing and retry logic
27
+
28
+ ### Improved
29
+ - Enhanced test reliability with proper WebMock configuration
30
+ - Better error handling in test scenarios
31
+ - Comprehensive validation of API communication
32
+ - Live API testing capabilities with localhost support
33
+
34
+ ### Fixed
35
+ - Corrected User-Agent header in HTTP client tests
36
+ - Fixed WebMock header matching issues
37
+ - Resolved RSpec version constant references
38
+ - Improved test isolation and cleanup
39
+
5
40
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
41
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
42
 
data/check_api_data.rb ADDED
File without changes
@@ -175,7 +175,7 @@ module ActiveRabbit
175
175
  # Set headers
176
176
  request['Content-Type'] = 'application/json'
177
177
  request['Accept'] = 'application/json'
178
- request['User-Agent'] = "ActiveRabbit-Ruby/#{ActiveRabbit::Client::VERSION}"
178
+ request['User-Agent'] = "ActiveRabbit-Client/#{ActiveRabbit::Client::VERSION}"
179
179
  request['X-Project-Token'] = configuration.api_key
180
180
 
181
181
  if configuration.project_id
@@ -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.3.1"
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.3.1
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
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  - !ruby/object:Gem::Version
122
123
  version: '0'
123
124
  requirements: []
124
- rubygems_version: 3.5.11
125
+ rubygems_version: 3.5.15
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: Ruby client for ActiveRabbit.ai application monitoring and error tracking