next_rails 1.2.2 → 1.2.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: ceb25dba1847fdd6aa7b71ea2dacac03a90e16cf855e59d6a92cb6855c9124f6
4
- data.tar.gz: 48c1a8bc8a02a2d717bb0da75c5145881ec96c0da6953309867238299d8f76b6
3
+ metadata.gz: e72b90b419e084f28bdd704b0130169cc2e6c6bb0d72e0ab953cede28c2cd11d
4
+ data.tar.gz: 7a14d79ce4a037e8a1ff04070021ade0323e245836e1016b7463b106331e96ba
5
5
  SHA512:
6
- metadata.gz: afe58b7bc957ceed1c2c1ead4fe64059e4657dcbab249ecd35138f90d3e335987ea6759590679009dee64b9eb8178a28ee030ad13a744ae082348e19f82cc0ff
7
- data.tar.gz: 00c6a32d28b7cb6836ee99246d6a92829d6a450753ad379ecf493015d809888790204e85ba55ac9c0c22c6ce30531422bbf646f7b5bea695c4193e47544c9c07
6
+ metadata.gz: b71eab63bf0f85e0d76ef308704a1247765ab5a404140591f902e3fc5fec13dd6c6c18e8328f2d8d6654cc3fc88fceba714adb1c86e7d9ea4ab0fbf151dc5468
7
+ data.tar.gz: a9c71c3d81c477d198b7be8408791ac5f0882da5042afc46a3f4144f76a80b8f93d6283ac3cacdaa93a91d892757e9c8028121f7776ea7399f0a4bcca22e35a4
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby-version: [3.1, 2.7.5, 2.3, 2.2, 2.1.9, 2.0.0]
16
+ ruby-version: [3.2, 3.1, 3.0, 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0.0]
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@v2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
- # main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.2.2...main)
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)
@@ -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 *messages
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, nil, "-").result(binding)
52
+ puts ERB.new(template, trim_mode: "-").result(binding)
53
53
  end
54
54
 
55
55
  def gem_header(_gem)
@@ -39,6 +39,8 @@ module NextRails
39
39
  "activejob",
40
40
  "activestorage",
41
41
  "activesupport",
42
+ "actionmailbox",
43
+ "actiontext",
42
44
  "railties",
43
45
  ].freeze
44
46
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NextRails
4
- VERSION = "1.2.2"
4
+ VERSION = "1.2.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.2.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-03-20 00:00:00.000000000 Z
12
+ date: 2023-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize