nextgen 0.31.1 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nextgen/generators/base.rb +0 -5
- data/lib/nextgen/generators/bundler_audit.rb +1 -1
- data/lib/nextgen/generators/erb_lint.rb +1 -1
- data/lib/nextgen/generators/eslint.rb +1 -1
- data/lib/nextgen/generators/rspec_github_actions.rb +1 -1
- data/lib/nextgen/generators/rubocop.rb +8 -4
- data/lib/nextgen/generators/stylelint.rb +1 -1
- data/lib/nextgen/version.rb +1 -1
- data/template/.rubocop.yml.tt +7 -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: f01946bcb96b14d11711e59620947efa5b52ed7381f661e572ee64000e7e44d0
|
4
|
+
data.tar.gz: 910eb7a23125d0326a19a83be23784342711f58fe15f6686632d9b97517b7416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1080aeaf2918c284a0d3043b342a179456c69b004c126ee4a67b11c2b49ccdda90e0106a93229542cc3c382c354a5efd4ff1bdeddf5f1752d97086bd2a5373b7
|
7
|
+
data.tar.gz: edfdb9de426fd825ee534e9efeea5142329ec6b6adad9bc97a85eed69dbe63aff7cfc29054cf408a546873c936bd7fa66d80b6ea738493559a53f9e1e71cb8f2
|
@@ -81,8 +81,3 @@ if (time_zone = read_system_time_zone_name)
|
|
81
81
|
uncomment_lines "config/application.rb", /config\.time_zone/
|
82
82
|
gsub_file "config/application.rb", /(config\.time_zone = ).*$/, "\\1#{time_zone.inspect}"
|
83
83
|
end
|
84
|
-
|
85
|
-
if File.exist?(".github/workflows/ci.yml")
|
86
|
-
say_git "Opt into ubuntu-24.04 GitHub Actions runner"
|
87
|
-
gsub_file ".github/workflows/ci.yml", /\bubuntu-latest\b/, "ubuntu-24.04"
|
88
|
-
end
|
@@ -7,7 +7,7 @@ if File.exist?(".github/workflows/ci.yml")
|
|
7
7
|
say_git "Add bundle-audit job to CI workflow"
|
8
8
|
inject_into_file ".github/workflows/ci.yml", <<-YAML, after: /^jobs:\n/
|
9
9
|
scan_gems:
|
10
|
-
runs-on: ubuntu-
|
10
|
+
runs-on: ubuntu-latest
|
11
11
|
|
12
12
|
steps:
|
13
13
|
- name: Checkout code
|
@@ -13,7 +13,7 @@ if File.exist?(".github/workflows/ci.yml")
|
|
13
13
|
say_git "Add erb_lint job to CI workflow"
|
14
14
|
inject_into_file ".github/workflows/ci.yml", <<-YAML, after: /^jobs:\n/
|
15
15
|
erb_lint:
|
16
|
-
runs-on: ubuntu-
|
16
|
+
runs-on: ubuntu-latest
|
17
17
|
steps:
|
18
18
|
- name: Checkout code
|
19
19
|
uses: actions/checkout@v4
|
@@ -29,7 +29,7 @@ if File.exist?(".github/workflows/ci.yml")
|
|
29
29
|
node_spec = File.exist?(".node-version") ? 'node-version-file: ".node-version"' : 'node-version: "lts/*"'
|
30
30
|
inject_into_file ".github/workflows/ci.yml", <<-YAML, after: /^jobs:\n/
|
31
31
|
eslint:
|
32
|
-
runs-on: ubuntu-
|
32
|
+
runs-on: ubuntu-latest
|
33
33
|
|
34
34
|
steps:
|
35
35
|
- name: Checkout code
|
@@ -4,13 +4,17 @@ say_git "Install rubocop gems"
|
|
4
4
|
remove_gem "rubocop-rails-omakase"
|
5
5
|
gemfile = File.read("Gemfile")
|
6
6
|
plugins = []
|
7
|
-
|
8
|
-
|
7
|
+
requires = []
|
8
|
+
requires << "capybara" if gemfile.match?(/^\s*gem ['"]capybara['"]/)
|
9
|
+
requires << "factory_bot" if gemfile.match?(/^\s*gem ['"]factory_bot/)
|
9
10
|
plugins << "minitest" if minitest?
|
10
11
|
plugins << "performance"
|
11
12
|
plugins << "rails"
|
12
|
-
|
13
|
-
|
13
|
+
rubocop_gems = [
|
14
|
+
"rubocop",
|
15
|
+
*[*plugins, *requires].sort.map { "rubocop-#{_1}" }
|
16
|
+
]
|
17
|
+
install_gems(*rubocop_gems.reverse, group: :development, require: false)
|
14
18
|
binstub "rubocop" unless File.exist?("bin/rubocop")
|
15
19
|
|
16
20
|
say_git "Replace .rubocop.yml"
|
@@ -26,7 +26,7 @@ if File.exist?(".github/workflows/ci.yml")
|
|
26
26
|
node_spec = File.exist?(".node-version") ? 'node-version-file: ".node-version"' : 'node-version: "lts/*"'
|
27
27
|
inject_into_file ".github/workflows/ci.yml", <<-YAML, after: /^jobs:\n/
|
28
28
|
stylelint:
|
29
|
-
runs-on: ubuntu-
|
29
|
+
runs-on: ubuntu-latest
|
30
30
|
|
31
31
|
steps:
|
32
32
|
- name: Checkout code
|
data/lib/nextgen/version.rb
CHANGED
data/template/.rubocop.yml.tt
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nextgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-02-17 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: railties
|