next_rails 1.4.3 → 1.4.4

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: e64671ecb9db7b44630185f7d4beaab0d0e400042a94c0680f596c3949574ce3
4
- data.tar.gz: 650f5f5c9ac646f7048df93d4b88bfc6a2e66a5b83b7c67e02d39ea60200e8eb
3
+ metadata.gz: d1c67d799d599530c9a05a6dc5c45ce565a131cd9d3ae1ef0d433931873ea9e2
4
+ data.tar.gz: d48ba5e3aa9332eb34d0a489dbc3977640dd15ffe51845d4c1050ba794ea5a27
5
5
  SHA512:
6
- metadata.gz: 4defd08efc6167e924e628e4324713318c26270e9621e957bd580e34250e8c80befb7f9e463db3a66d058b77793501e78131269f6da98f5b29ff49122d994118
7
- data.tar.gz: 41ef23669ff6f94d4ca504e7c10e330a6701d6f094ef946ff10e5def762e06f5638d3dab181c433ca2e36b422fa307b1779b1214de59521b4c144b4cb032d430
6
+ metadata.gz: b8083833e12cfaa07b7787b28fc1ce088b42ad09bada36d81af657787a10dadfe6b8f30e0925cb85b96f568dcd7bdf9bf4b1a1ff3bc3f5941e9c19a2767a84dd
7
+ data.tar.gz: b838fe07dc40f693974088d1e828210f335139c17a17f183dcaeca1beb2b1a87a9d83634efe3d9e03ba1402469c39810250bcb2a8641fac2f615caa0aeb9c65b
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby-version: ["3.4", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6"]
16
+ ruby-version: ["3.4", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5"]
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@v2
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
- # main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.4.3...main)
1
+ # main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.4.4...main)
2
2
 
3
3
  - [BUGFIX: example](https://github.com/fastruby/next_rails/pull/<number>)
4
4
 
5
5
  * Your changes/patches go here.
6
6
 
7
+ # v1.4.4 / 2025-02-26 [(commits)](https://github.com/fastruby/next_rails/compare/v1.4.3...v1.4.4)
8
+
9
+ - [FEATURE: Update deprecation tracker to support newer Rails versions (7.1+)](https://github.com/fastruby/next_rails/pull/142)
10
+
7
11
  # v1.4.3 / 2025-02-20 [(commits)](https://github.com/fastruby/next_rails/compare/v1.4.2...v1.4.3)
8
12
 
9
13
  - [Add next_rails --init](https://github.com/fastruby/next_rails/pull/139)
data/README.md CHANGED
@@ -140,7 +140,7 @@ next_rails --help # For more options and examples
140
140
  This command helps you dual-boot your application.
141
141
 
142
142
  ```bash
143
- next --init # Create Gemfile.next and Gemfile.next.lock
143
+ next_next --init # Create Gemfile.next and Gemfile.next.lock
144
144
  vim Gemfile # Tweak your dependencies conditionally using `next?`
145
145
  next bundle install # Install new gems
146
146
  next rails s # Start server using Gemfile.next
@@ -168,7 +168,7 @@ Or install it yourself as:
168
168
 
169
169
  Execute:
170
170
 
171
- $ next --init
171
+ $ next_rails --init
172
172
 
173
173
  Init will create a Gemfile.next and an initialized Gemfile.next.lock.
174
174
  The Gemfile.next.lock is initialized with the contents of your existing
@@ -73,7 +73,17 @@ class DeprecationTracker
73
73
  mode = opts[:mode]
74
74
  transform_message = opts[:transform_message]
75
75
  deprecation_tracker = DeprecationTracker.new(shitlist_path, transform_message, mode)
76
- if defined?(ActiveSupport)
76
+ # Since Rails 7.1 the preferred way to track deprecations is to use the deprecation trackers via
77
+ # `Rails.application.deprecators`.
78
+ # We fallback to tracking deprecations via the ActiveSupport singleton object if Rails.application.deprecators is
79
+ # not defined for older Rails versions.
80
+ if defined?(Rails) && defined?(Rails.application) && defined?(Rails.application.deprecators)
81
+ Rails.application.deprecators.each do |deprecator|
82
+ deprecator.behavior << -> (message, _callstack = nil, _deprecation_horizon = nil, _gem_name = nil) {
83
+ deprecation_tracker.add(message)
84
+ }
85
+ end
86
+ elsif defined?(ActiveSupport)
77
87
  ActiveSupport::Deprecation.behavior << -> (message, _callstack = nil, _deprecation_horizon = nil, _gem_name = nil) {
78
88
  deprecation_tracker.add(message)
79
89
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NextRails
4
- VERSION = "1.4.3"
4
+ VERSION = "1.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: next_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Tagwerker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-02-21 00:00:00.000000000 Z
12
+ date: 2025-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.5.11
211
+ rubygems_version: 3.5.22
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: A toolkit to upgrade your next Rails application