next_rails 1.2.2 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +12 -1
- data/lib/deprecation_tracker.rb +4 -2
- data/lib/next_rails/bundle_report.rb +1 -1
- data/lib/next_rails/gem_info.rb +2 -0
- data/lib/next_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72b90b419e084f28bdd704b0130169cc2e6c6bb0d72e0ab953cede28c2cd11d
|
4
|
+
data.tar.gz: 7a14d79ce4a037e8a1ff04070021ade0323e245836e1016b7463b106331e96ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b71eab63bf0f85e0d76ef308704a1247765ab5a404140591f902e3fc5fec13dd6c6c18e8328f2d8d6654cc3fc88fceba714adb1c86e7d9ea4ab0fbf151dc5468
|
7
|
+
data.tar.gz: a9c71c3d81c477d198b7be8408791ac5f0882da5042afc46a3f4144f76a80b8f93d6283ac3cacdaa93a91d892757e9c8028121f7776ea7399f0a4bcca22e35a4
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
|
-
# main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.2.
|
1
|
+
# main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.2.4...main)
|
2
2
|
* Your changes/patches go here.
|
3
|
+
|
4
|
+
# v1.2.4 / 2023-04-21 [(commits)](https://github.com/fastruby/next_rails/compare/v1.2.3...v1.2.4)
|
5
|
+
|
6
|
+
- [BUGFIX: Update the warn method signature to support for Ruby 3]
|
7
|
+
|
8
|
+
# v1.2.3 / 2023-04-12 [(commits)](https://github.com/fastruby/next_rails/compare/v1.2.2...v1.2.3)
|
9
|
+
|
10
|
+
- [Fix ERB deprecation warning in Ruby 3.1]
|
11
|
+
|
12
|
+
- [Remove Rails gems from compatibility check]
|
13
|
+
|
3
14
|
# v1.2.2 / 2023-03-03 [(commits)](https://github.com/fastruby/next_rails/compare/v1.2.1...v1.2.2)
|
4
15
|
* [BUGFIX: Fixed `KernelWarnTracker#warn signature to match `Kernel#warn` for ruby 2.5+](https://github.com/fastruby/next_rails/pull/82)
|
5
16
|
* [CHORE: Added updated templates for bug fixes, feature requests and pull requests](https://github.com/fastruby/next_rails/pull/64) as per [this RFC](https://github.com/fastruby/RFCs/blob/main/2021-10-13-github-templates.md)
|
data/lib/deprecation_tracker.rb
CHANGED
@@ -18,13 +18,15 @@ class DeprecationTracker
|
|
18
18
|
@callbacks ||= []
|
19
19
|
end
|
20
20
|
|
21
|
-
def warn(*messages, uplevel: nil)
|
21
|
+
def warn(*messages, uplevel: nil, category: nil)
|
22
22
|
KernelWarnTracker.callbacks.each do |callback|
|
23
23
|
messages.each { |message| callback.(message) }
|
24
24
|
end
|
25
25
|
|
26
26
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5.0")
|
27
|
-
super
|
27
|
+
super(*messages)
|
28
|
+
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0")
|
29
|
+
super(*messages, uplevel: nil)
|
28
30
|
else
|
29
31
|
super
|
30
32
|
end
|
@@ -49,7 +49,7 @@ module NextRails
|
|
49
49
|
<%= incompatible_gems.length.to_s.red %> gems incompatible with Rails <%= rails_version %>
|
50
50
|
ERB
|
51
51
|
|
52
|
-
puts ERB.new(template,
|
52
|
+
puts ERB.new(template, trim_mode: "-").result(binding)
|
53
53
|
end
|
54
54
|
|
55
55
|
def gem_header(_gem)
|
data/lib/next_rails/gem_info.rb
CHANGED
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.2.
|
4
|
+
version: 1.2.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: 2023-
|
12
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|