Skip to content

Commit 601e913

Browse files
authored
Fix active record logger dependency for older rails versions that was breaking the build (#731)
Can read more on the active record logger issue: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror Also a good idea to add the logger gem as a dependancy as it will stop being a core Ruby library in 3.5. Also bumped the appraisal gem to fix: thoughtbot/appraisal#199
1 parent 2ab1580 commit 601e913

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased](https://github.com/rpush/rpush/tree/HEAD)
44

5+
* Fix active record logger dependency for older rails versions that was breaking the build [\#731](https://github.com/rpush/rpush/pull/731) ([SixiS](https://github.com/sixis))
6+
57
[Full Changelog](https://github.com/rpush/rpush/compare/v9.2.0...HEAD)
68

79
## [v9.2.0](https://github.com/rpush/rpush/tree/v9.2.0) (2024-11-28)

Gemfile.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PATH
55
activesupport (>= 6.0, != 7.2.1, != 7.2.0, != 7.1.4)
66
googleauth
77
jwt (>= 1.5.6)
8+
logger
89
multi_json (~> 1.0)
910
net-http-persistent
1011
net-http2 (~> 0.18, >= 0.18.3)
@@ -41,7 +42,7 @@ GEM
4142
tzinfo (~> 2.0)
4243
addressable (2.8.7)
4344
public_suffix (>= 2.0.2, < 7.0)
44-
appraisal (2.4.1)
45+
appraisal (2.5.0)
4546
bundler
4647
rake
4748
thor (>= 0.14.0)
@@ -217,7 +218,7 @@ GEM
217218
tzinfo (2.0.6)
218219
concurrent-ruby (~> 1.0)
219220
unicode-display_width (2.5.0)
220-
uri (1.0.2)
221+
uri (1.0.3)
221222
web-push (3.0.1)
222223
jwt (~> 2.0)
223224
openssl (~> 3.0)

rpush.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
3737
s.add_runtime_dependency 'net-http2', '~> 0.18', '>= 0.18.3'
3838
s.add_runtime_dependency 'jwt', '>= 1.5.6'
3939
s.add_runtime_dependency 'activesupport', '>= 6.0', '!= 7.1.4', '!= 7.2.0', '!= 7.2.1' # https://github.com/rails/rails/issues/52820
40+
s.add_runtime_dependency 'logger'
4041
s.add_runtime_dependency 'thor', ['>= 0.18.1', '< 2.0']
4142
s.add_runtime_dependency 'railties'
4243
s.add_runtime_dependency 'rainbow'

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def redis?
2626
end
2727

2828
if active_record?
29+
require 'logger'
2930
require 'active_record'
3031
if ActiveRecord::Base.respond_to?(:default_column_serializer)
3132
# New default in Rails 7.1: https://github.com/rails/rails/pull/47422

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy