From 8acc0af46995090f697317bdea4569c839e5fc90 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 1 Oct 2026 18:56:17 +0200 Subject: [PATCH 1/5] Add failing tests for applying filter_parameters to logged URLs Rails filters the params it logs with config.filter_parameters, but the query string, Referer and Location that logtail-rack logs carry the same values in plain text. The spec app gets the filter_parameters Rails 8 generates for new apps. The tests pin that these apply to the logged query string, Referer and Location, that Procs are left out of the rack list, and that a rack list the app customised is kept. Co-Authored-By: Claude Opus 5.5 --- spec/logtail-rails/http_events_spec.rb | 63 ++++++++++++++++++++++++++ spec/support/rails.rb | 2 + 2 files changed, 65 insertions(+) diff --git a/spec/logtail-rails/http_events_spec.rb b/spec/logtail-rails/http_events_spec.rb index 2e8bb2a..a409205 100755 --- a/spec/logtail-rails/http_events_spec.rb +++ b/spec/logtail-rails/http_events_spec.rb @@ -92,6 +92,69 @@ def method_for_action(action_name) end end + describe "query string filters" do + around(:each) do |example| + class RackHttpRedirectController < ActionController::Base + layout nil + + def index + redirect_to "/next?email=jane%40example.com&step=2" + end + + def method_for_action(action_name) + action_name + end + end + + ::RailsApp.routes.draw do + get '/rack_http_redirect' => 'rack_http_redirect#index' + end + + example.run + + Object.send(:remove_const, :RackHttpRedirectController) + end + + it "should filter the app's filter_parameters from the query string, the Referer and the Location" do + dispatch_rails_request("/rack_http_redirect?email=jane%40example.com&page=2&password=hunter2", + "HTTP_REFERER" => "https://example.com/signup?email=jane%40example.com&ref=ad") + + rows = io.string.split("\n").map { |line| JSON.parse(line) } + http_request_received = rows.map { |row| row.dig("event", "http_request_received") }.compact.first + expect(http_request_received["query_string"]).to eq("email=[FILTERED]&page=2&password=[FILTERED]") + expect(JSON.parse(http_request_received["headers_json"])["Referer"]).to eq("https://example.com/signup?email=[FILTERED]&ref=ad") + + http_response_sent = rows.map { |row| row.dig("event", "http_response_sent") }.compact.first + _name, location = JSON.parse(http_response_sent["headers_json"]).find { |name, _value| name.casecmp("location").zero? } + expect(location).to eq("http://example.org/next?email=[FILTERED]&step=2") + end + + it "should use the app's filter_parameters without Procs, when query_string_filters are rack's default" do + with_query_string_filters(described_class::DEFAULT_QUERY_STRING_FILTERS) do + Logtail::Integrations::Rails.filter_parameters_in_urls([:email, /\Apin\z/, ->(_key, value) { value.replace("[FILTERED]") }]) + + expect(described_class.query_string_filters).to eq([:email, /\Apin\z/]) + end + end + + it "should keep query_string_filters that the app customised" do + with_query_string_filters(described_class::DEFAULT_QUERY_STRING_FILTERS + ["code"]) do + Logtail::Integrations::Rails.filter_parameters_in_urls([:email]) + + expect(described_class.query_string_filters).to eq(described_class::DEFAULT_QUERY_STRING_FILTERS + ["code"]) + end + end + + def with_query_string_filters(filters) + previous = described_class.query_string_filters + described_class.query_string_filters = filters + + yield + ensure + described_class.query_string_filters = previous + end + end + # Remove blank lines since Rails does this to space out requests in the logs def clean_lines(lines) lines.select { |line| !line.start_with?(" @metadat") } diff --git a/spec/support/rails.rb b/spec/support/rails.rb index 47cef1c..7b48823 100755 --- a/spec/support/rails.rb +++ b/spec/support/rails.rb @@ -18,6 +18,8 @@ class RailsApp < Rails::Application config.active_support.deprecation = :stderr config.eager_load = false config.hosts = nil + # What config/initializers/filter_parameter_logging.rb sets in new Rails 8 apps + config.filter_parameters += [:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc] end RailsApp.initialize! From 1f15e11a333430e23658a3b478274931f0a81294 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 1 Oct 2026 18:58:28 +0200 Subject: [PATCH 2/5] TEMP: run CI against the logtail-rack branch until 0.2.9 is released Points logtail-rack at the claude/query-string-filters branch of logtail-ruby-rack in the root Gemfile and in every gemfiles/*.gemfile, so CI exercises HTTPEvents.query_string_filters. To be replaced by a follow-up commit that requires logtail-rack ~> 0.2, >= 0.2.9 once it's released. Co-Authored-By: Claude Opus 5.5 --- Gemfile | 2 ++ gemfiles/rails-5.0.gemfile | 2 +- gemfiles/rails-5.1.gemfile | 2 +- gemfiles/rails-5.2.gemfile | 2 +- gemfiles/rails-6.0.gemfile | 2 +- gemfiles/rails-6.1.gemfile | 2 +- gemfiles/rails-7.0.gemfile | 2 +- gemfiles/rails-7.1.gemfile | 2 +- gemfiles/rails-7.2.gemfile | 2 +- gemfiles/rails-8.0.gemfile | 2 +- gemfiles/rails-8.1.gemfile | 2 +- gemfiles/rails-edge.gemfile | 2 +- 12 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index 8d20490..4661881 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,5 @@ source "https://rubygems.org" gem 'sidekiq', '>= 7.3.0', require: false, group: :test if RUBY_VERSION >= '2.7.0' gemspec + +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' diff --git a/gemfiles/rails-5.0.gemfile b/gemfiles/rails-5.0.gemfile index 2da8487..30d5424 100755 --- a/gemfiles/rails-5.0.gemfile +++ b/gemfiles/rails-5.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-5.1.gemfile b/gemfiles/rails-5.1.gemfile index 6adb3f7..f2c9095 100755 --- a/gemfiles/rails-5.1.gemfile +++ b/gemfiles/rails-5.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-5.2.gemfile b/gemfiles/rails-5.2.gemfile index 9375d63..349f7a8 100755 --- a/gemfiles/rails-5.2.gemfile +++ b/gemfiles/rails-5.2.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.2.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-6.0.gemfile b/gemfiles/rails-6.0.gemfile index e6e3320..7b63f21 100755 --- a/gemfiles/rails-6.0.gemfile +++ b/gemfiles/rails-6.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 6.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-6.1.gemfile b/gemfiles/rails-6.1.gemfile index fb7e121..ee5007b 100755 --- a/gemfiles/rails-6.1.gemfile +++ b/gemfiles/rails-6.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 6.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-7.0.gemfile b/gemfiles/rails-7.0.gemfile index ad045e1..679f561 100755 --- a/gemfiles/rails-7.0.gemfile +++ b/gemfiles/rails-7.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 7.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-7.1.gemfile b/gemfiles/rails-7.1.gemfile index 83ac20c..21acc17 100755 --- a/gemfiles/rails-7.1.gemfile +++ b/gemfiles/rails-7.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 7.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' # ActiveSupport passes quirks_mode to JSON.generate until 7.2.4 and 8.1, json 3 no longer accepts it gem 'json', '< 3' diff --git a/gemfiles/rails-7.2.gemfile b/gemfiles/rails-7.2.gemfile index 2a86de7..8d9e7a7 100644 --- a/gemfiles/rails-7.2.gemfile +++ b/gemfiles/rails-7.2.gemfile @@ -6,6 +6,6 @@ gem 'rails', '~> 7.2.4' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' gemspec :path => '../' diff --git a/gemfiles/rails-8.0.gemfile b/gemfiles/rails-8.0.gemfile index d34482f..c3b6f49 100755 --- a/gemfiles/rails-8.0.gemfile +++ b/gemfiles/rails-8.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 8.0.0' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' # ActiveSupport passes quirks_mode to JSON.generate until 7.2.4 and 8.1, json 3 no longer accepts it gem 'json', '< 3' diff --git a/gemfiles/rails-8.1.gemfile b/gemfiles/rails-8.1.gemfile index 03b4e39..f7ae5ad 100755 --- a/gemfiles/rails-8.1.gemfile +++ b/gemfiles/rails-8.1.gemfile @@ -4,6 +4,6 @@ gem 'rails', '~> 8.1.0' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' gemspec :path => '../' diff --git a/gemfiles/rails-edge.gemfile b/gemfiles/rails-edge.gemfile index ac2df52..1dfd0d9 100755 --- a/gemfiles/rails-edge.gemfile +++ b/gemfiles/rails-edge.gemfile @@ -4,7 +4,7 @@ gem 'rails', github: 'rails/rails', branch: 'main' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack' +gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' From df899212e94174d27932265b2c8e006f7e0cfd4a Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 1 Oct 2026 18:59:38 +0200 Subject: [PATCH 3/5] Filter the app's filter_parameters from logged query strings and URLs The integration, which runs in the :logtail initializer after the app's config initializers, now sets HTTPEvents.query_string_filters to Rails.application.config.filter_parameters, without Procs, which rewrite values while query string filters match names. A list the app changed from rack's DEFAULT_QUERY_STRING_FILTERS is kept. Co-Authored-By: Claude Opus 5.5 --- lib/logtail-rails.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/logtail-rails.rb b/lib/logtail-rails.rb index 6d431bf..c3508ae 100755 --- a/lib/logtail-rails.rb +++ b/lib/logtail-rails.rb @@ -44,6 +44,7 @@ def self.integrate! ActionView.integrate! ActiveRecord.integrate! RackLogger.integrate! + filter_parameters_in_urls(::Rails.application.config.filter_parameters) end def self.enabled=(value) @@ -65,6 +66,16 @@ def self.middlewares @middlewares ||= [Logtail::Integrations::Rack::HTTPContext, SessionContext, Logtail::Integrations::Rack::UserContext, Logtail::Integrations::Rack::HTTPEvents, Logtail::Integrations::Rails::ErrorEvent].select(&:enabled?) end + + # Filters the app's filter_parameters from the query strings and the Referer and Location + # URLs that Rack::HTTPEvents logs, unless the app customised its query_string_filters. + # Procs are left out: they rewrite values, while query string filters match names. + def self.filter_parameters_in_urls(filter_parameters) + http_events = Logtail::Integrations::Rack::HTTPEvents + return if http_events.query_string_filters != http_events::DEFAULT_QUERY_STRING_FILTERS + + http_events.query_string_filters = filter_parameters.reject { |filter| filter.is_a?(Proc) } + end end end end From 6f9e6d2c78092db5b8f1d5d8c8f0e3738807e346 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 1 Oct 2026 18:37:15 +0200 Subject: [PATCH 4/5] Expect real response durations in the request specs logtail-rack 0.2.8 times responses with the monotonic clock, which Timecop doesn't freeze, so "Completed 200 OK in 0.0ms" no longer holds. The last CI run on main still resolved logtail-rack 0.2.7. Co-Authored-By: Claude Opus 5.5 --- spec/logtail-rails/http_events_spec.rb | 4 ++-- spec/logtail-rails/rack_logger_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/logtail-rails/http_events_spec.rb b/spec/logtail-rails/http_events_spec.rb index a409205..8bab812 100755 --- a/spec/logtail-rails/http_events_spec.rb +++ b/spec/logtail-rails/http_events_spec.rb @@ -45,7 +45,7 @@ def method_for_action(action_name) expect(lines[0]).to include("Started GET \\\"/rack_http\\\"") expect(lines[1]).to include("Processing by RackHttpController#index as HTML") - expect(lines[2]).to include("Completed 200 OK in 0.0ms") + expect(lines[2]).to match(/Completed 200 OK in \d+\.\d+ms/) end context "with the route silenced" do @@ -87,7 +87,7 @@ def method_for_action(action_name) expect(lines.length).to eq(2) expect(lines[0]).to include("Processing by RackHttpController#index as HTML") - expect(lines[1]).to include("GET /rack_http completed with 200 OK in 0.0ms") + expect(lines[1]).to match(/GET \/rack_http completed with 200 OK in \d+\.\d+ms/) end end end diff --git a/spec/logtail-rails/rack_logger_spec.rb b/spec/logtail-rails/rack_logger_spec.rb index e3c2109..6976159 100755 --- a/spec/logtail-rails/rack_logger_spec.rb +++ b/spec/logtail-rails/rack_logger_spec.rb @@ -49,7 +49,7 @@ def method_for_action(action_name) expect(lines.length).to eq(3) expect(lines[0]).to include("Started GET \\\"/rails_rack_logger\\\"") expect(lines[1]).to include("Processing by RailsRackLoggerController#index as HTML") - expect(lines[2]).to include("Completed 200 OK in 0.0ms") + expect(lines[2]).to match(/Completed 200 OK in \d+\.\d+ms/) ensure Logtail::Integrations::Rails::EventLogSubscriber.enabled = original_enabled end From 39fbde5bc57170840d9d473a3ffe09a8e0395ea2 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Fri, 2 Oct 2026 16:10:21 +0200 Subject: [PATCH 5/5] Revert "TEMP: run CI against the logtail-rack branch until 0.2.9 is released" This reverts commit 1f15e11a333430e23658a3b478274931f0a81294. --- Gemfile | 2 -- gemfiles/rails-5.0.gemfile | 2 +- gemfiles/rails-5.1.gemfile | 2 +- gemfiles/rails-5.2.gemfile | 2 +- gemfiles/rails-6.0.gemfile | 2 +- gemfiles/rails-6.1.gemfile | 2 +- gemfiles/rails-7.0.gemfile | 2 +- gemfiles/rails-7.1.gemfile | 2 +- gemfiles/rails-7.2.gemfile | 2 +- gemfiles/rails-8.0.gemfile | 2 +- gemfiles/rails-8.1.gemfile | 2 +- gemfiles/rails-edge.gemfile | 2 +- 12 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 4661881..8d20490 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,3 @@ source "https://rubygems.org" gem 'sidekiq', '>= 7.3.0', require: false, group: :test if RUBY_VERSION >= '2.7.0' gemspec - -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' diff --git a/gemfiles/rails-5.0.gemfile b/gemfiles/rails-5.0.gemfile index 30d5424..2da8487 100755 --- a/gemfiles/rails-5.0.gemfile +++ b/gemfiles/rails-5.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-5.1.gemfile b/gemfiles/rails-5.1.gemfile index f2c9095..6adb3f7 100755 --- a/gemfiles/rails-5.1.gemfile +++ b/gemfiles/rails-5.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-5.2.gemfile b/gemfiles/rails-5.2.gemfile index 349f7a8..9375d63 100755 --- a/gemfiles/rails-5.2.gemfile +++ b/gemfiles/rails-5.2.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 5.2.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2' diff --git a/gemfiles/rails-6.0.gemfile b/gemfiles/rails-6.0.gemfile index 7b63f21..e6e3320 100755 --- a/gemfiles/rails-6.0.gemfile +++ b/gemfiles/rails-6.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 6.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-6.1.gemfile b/gemfiles/rails-6.1.gemfile index ee5007b..fb7e121 100755 --- a/gemfiles/rails-6.1.gemfile +++ b/gemfiles/rails-6.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 6.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-7.0.gemfile b/gemfiles/rails-7.0.gemfile index 679f561..ad045e1 100755 --- a/gemfiles/rails-7.0.gemfile +++ b/gemfiles/rails-7.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 7.0.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_VERSION >= "3.4.0" gem 'mutex_m' diff --git a/gemfiles/rails-7.1.gemfile b/gemfiles/rails-7.1.gemfile index 21acc17..83ac20c 100755 --- a/gemfiles/rails-7.1.gemfile +++ b/gemfiles/rails-7.1.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 7.1.0' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' # ActiveSupport passes quirks_mode to JSON.generate until 7.2.4 and 8.1, json 3 no longer accepts it gem 'json', '< 3' diff --git a/gemfiles/rails-7.2.gemfile b/gemfiles/rails-7.2.gemfile index 8d9e7a7..2a86de7 100644 --- a/gemfiles/rails-7.2.gemfile +++ b/gemfiles/rails-7.2.gemfile @@ -6,6 +6,6 @@ gem 'rails', '~> 7.2.4' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' gemspec :path => '../' diff --git a/gemfiles/rails-8.0.gemfile b/gemfiles/rails-8.0.gemfile index c3b6f49..d34482f 100755 --- a/gemfiles/rails-8.0.gemfile +++ b/gemfiles/rails-8.0.gemfile @@ -4,7 +4,7 @@ gem 'rails', '~> 8.0.0' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' # ActiveSupport passes quirks_mode to JSON.generate until 7.2.4 and 8.1, json 3 no longer accepts it gem 'json', '< 3' diff --git a/gemfiles/rails-8.1.gemfile b/gemfiles/rails-8.1.gemfile index f7ae5ad..03b4e39 100755 --- a/gemfiles/rails-8.1.gemfile +++ b/gemfiles/rails-8.1.gemfile @@ -4,6 +4,6 @@ gem 'rails', '~> 8.1.0' gem 'sidekiq', '>= 7.3.0', require: false gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' gemspec :path => '../' diff --git a/gemfiles/rails-edge.gemfile b/gemfiles/rails-edge.gemfile index 1dfd0d9..ac2df52 100755 --- a/gemfiles/rails-edge.gemfile +++ b/gemfiles/rails-edge.gemfile @@ -4,7 +4,7 @@ gem 'rails', github: 'rails/rails', branch: 'main' gem 'sidekiq', '>= 7.3.0', require: false if RUBY_VERSION >= '2.7.0' gem 'logtail' -gem 'logtail-rack', git: 'https://github.com/logtail/logtail-ruby-rack.git', branch: 'claude/query-string-filters' +gem 'logtail-rack' if RUBY_PLATFORM == "java" gem 'mime-types', '2.6.2'