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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8aa670fdbe16b853d3529fc07b7cbb5029db46b46ef30066bb9e2c1e4caf2b59
4
- data.tar.gz: ca3a30684dab8edd9bfa5532d4f268491a2d16e785ebff456e44efe113944b60
3
+ metadata.gz: f01946bcb96b14d11711e59620947efa5b52ed7381f661e572ee64000e7e44d0
4
+ data.tar.gz: 910eb7a23125d0326a19a83be23784342711f58fe15f6686632d9b97517b7416
5
5
  SHA512:
6
- metadata.gz: f4ad3a531106fa86c03700f3d926a125a7a74bb486a2c35b897ce2fdb23547e1c9ec3994de9f7d2b2e3124bc7f2e874590992ec008409b2ad454b4ef397a516d
7
- data.tar.gz: 420c1476571ce7ba13a35d7e858e43f8925a236b34be620a9963f791b114460d6298a608da1e9a85fff955536376694c0e9224bcffc9cc413f5b6353924a1142
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-24.04
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-24.04
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-24.04
32
+ runs-on: ubuntu-latest
33
33
 
34
34
  steps:
35
35
  - name: Checkout code
@@ -4,7 +4,7 @@ return unless File.exist?(".github/workflows/ci.yml")
4
4
 
5
5
  erb = <<~YAML
6
6
  test:
7
- runs-on: ubuntu-24.04
7
+ runs-on: ubuntu-latest
8
8
 
9
9
  <%- if gems.include?("pg") -%>
10
10
  services:
@@ -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
- plugins << "capybara" if gemfile.match?(/^\s*gem ['"]capybara['"]/)
8
- plugins << "factory_bot" if gemfile.match?(/^\s*gem ['"]factory_bot/)
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
- install_gem("rubocop-rails", version: ">= 2.22.0", group: :development, require: false)
13
- install_gems(*plugins.map { "rubocop-#{_1}" }, "rubocop", group: :development, require: false)
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-24.04
29
+ runs-on: ubuntu-latest
30
30
 
31
31
  steps:
32
32
  - name: Checkout code
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.31.1"
4
+ VERSION = "0.32.0"
5
5
  end
@@ -1,5 +1,11 @@
1
- require:
1
+ <% if plugins.any? -%>
2
+ plugins:
3
+ <% end -%>
2
4
  <%= plugins.map { " - rubocop-#{_1}" }.join("\n") %>
5
+ <% if requires.any? -%>
6
+ require:
7
+ <%= requires.map { " - rubocop-#{_1}" }.join("\n") %>
8
+ <% end -%>
3
9
 
4
10
  inherit_mode:
5
11
  merge:
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.31.1
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-01-04 00:00:00.000000000 Z
10
+ date: 2025-02-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties