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 +4 -4
- data/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +5 -1
- data/README.md +2 -2
- data/lib/deprecation_tracker.rb +11 -1
- data/lib/next_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c67d799d599530c9a05a6dc5c45ce565a131cd9d3ae1ef0d433931873ea9e2
|
4
|
+
data.tar.gz: d48ba5e3aa9332eb34d0a489dbc3977640dd15ffe51845d4c1050ba794ea5a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8083833e12cfaa07b7787b28fc1ce088b42ad09bada36d81af657787a10dadfe6b8f30e0925cb85b96f568dcd7bdf9bf4b1a1ff3bc3f5941e9c19a2767a84dd
|
7
|
+
data.tar.gz: b838fe07dc40f693974088d1e828210f335139c17a17f183dcaeca1beb2b1a87a9d83634efe3d9e03ba1402469c39810250bcb2a8641fac2f615caa0aeb9c65b
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
# main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.4.
|
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
|
-
|
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
|
-
$
|
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
|
data/lib/deprecation_tracker.rb
CHANGED
@@ -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
|
-
|
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
|
}
|
data/lib/next_rails/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|