nextgen 0.38.0 → 0.39.1

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: 7c220f677e85be4d7743b5d4dbb09ae9d0d7f97d1373458f7ee1c1a2d371e9e7
4
- data.tar.gz: 79073932f4c22dbf2fbd8819e73fc2186d8ba1fdaa48f833ce925b513ff34a0e
3
+ metadata.gz: b870585e56d0c93d1f39947af10edf2eff44856eca5ae7986ecf53607619a142
4
+ data.tar.gz: 635f26513f607c6281100a7c1f29ddca876a133218be6c3ab1c1df4749f414be
5
5
  SHA512:
6
- metadata.gz: b9e400966014de7e998e9cf8da63858310a57bc2568dd8e6e54b7a9002971d2bd86eaeffb14441337ee827c6a326d681221fd1ebc4602cbeaa47bd247ff93c22
7
- data.tar.gz: 3f95b74419456f3c631060d8b9fe30e1dcbac165596bfbbb02cc39ad7b39d82e2fbb4bdfd749090f977b88359ce4f7fd110cc5947c4c56972883e15869462b4f
6
+ metadata.gz: 38f502206672ec466a48091b0c914bdfc6f0a75df2fb47c91f9136768930ae5bf06b5c49778518b20963edcc203486df97743e55bb60ddc5e948439adf1852c2
7
+ data.tar.gz: fd4439ac145209ecf12b5497072a6c30f38de469469a9b53c4aa6d824f85fcc8d59514abf67a26660455cf734d89129bbceae062370fa13357eaa64864a24e7e
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 Matt Brictson
3
+ Copyright (c) 2026 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  module Nextgen
4
4
  module Actions::Javascript
5
5
  def add_js_packages(*packages, dev: false)
6
- command = yarn? ? +"yarn add" : +"npm install --fund=false --audit-false"
6
+ command = yarn? ? +"yarn add" : +"npm install --fund=false"
7
7
  command << " -D" if dev
8
8
  run_js_command "#{command} #{packages.map(&:shellescape).join(" ")}"
9
9
  end
@@ -17,6 +17,7 @@ module Nextgen
17
17
 
18
18
  def add_package_json_scripts(scripts)
19
19
  scripts.each do |name, script|
20
+ script = script.sub(/^yarn run /, "npm run -- ") unless yarn?
20
21
  cmd = "npm pkg set scripts.#{name.to_s.shellescape}=#{script.shellescape}"
21
22
  say_status :run, cmd.truncate(60), :green
22
23
  run! cmd, verbose: false
@@ -17,7 +17,7 @@ if File.exist?(".github/workflows/ci.yml")
17
17
  runs-on: ubuntu-latest
18
18
  steps:
19
19
  - name: Checkout code
20
- uses: actions/checkout@v5
20
+ uses: actions/checkout@v6
21
21
 
22
22
  - name: Set up Ruby
23
23
  uses: ruby/setup-ruby@v1
@@ -2,7 +2,7 @@
2
2
 
3
3
  say_git "Install eslint"
4
4
  add_js_packages(
5
- "@eslint/js",
5
+ "@eslint/js@^9",
6
6
  "eslint@^9",
7
7
  "eslint-config-prettier",
8
8
  "eslint-formatter-compact",
@@ -14,7 +14,7 @@ add_js_packages(
14
14
  )
15
15
  add_package_json_scripts(
16
16
  "lint:js": "eslint 'app/{assets,components,frontend,javascript}/**/*.{cjs,js,jsx,ts,tsx}'",
17
- "fix:js": "npm run -- lint:js --fix",
17
+ "fix:js": "yarn run lint:js --fix",
18
18
  lint: "npm-run-all lint:**",
19
19
  fix: "npm-run-all fix:**"
20
20
  )
@@ -33,10 +33,10 @@ if File.exist?(".github/workflows/ci.yml")
33
33
 
34
34
  steps:
35
35
  - name: Checkout code
36
- uses: actions/checkout@v5
36
+ uses: actions/checkout@v6
37
37
 
38
38
  - name: Set up Node
39
- uses: actions/setup-node@v5
39
+ uses: actions/setup-node@v6
40
40
  with:
41
41
  #{node_spec}
42
42
  cache: #{js_package_manager}
@@ -25,7 +25,7 @@ erb = <<~YAML
25
25
 
26
26
  <%- end -%>
27
27
  - name: Checkout code
28
- uses: actions/checkout@v5
28
+ uses: actions/checkout@v6
29
29
 
30
30
  - name: Set up Ruby
31
31
  uses: ruby/setup-ruby@v1
@@ -47,7 +47,7 @@ erb = <<~YAML
47
47
  <%- if gems.include?("capybara") -%>
48
48
 
49
49
  - name: Keep screenshots from failed system tests
50
- uses: actions/upload-artifact@v4
50
+ uses: actions/upload-artifact@v6
51
51
  if: failure()
52
52
  with:
53
53
  name: screenshots
@@ -11,7 +11,7 @@ add_js_packages(
11
11
  )
12
12
  add_package_json_scripts(
13
13
  "lint:css": "stylelint 'app/{components,frontend,assets/stylesheets}/**/*.css'",
14
- "fix:css": "npm run -- lint:css --fix",
14
+ "fix:css": "yarn run lint:css --fix",
15
15
  lint: "npm-run-all lint:**",
16
16
  fix: "npm-run-all fix:**"
17
17
  )
@@ -30,10 +30,10 @@ if File.exist?(".github/workflows/ci.yml")
30
30
 
31
31
  steps:
32
32
  - name: Checkout code
33
- uses: actions/checkout@v5
33
+ uses: actions/checkout@v6
34
34
 
35
35
  - name: Set up Node
36
- uses: actions/setup-node@v5
36
+ uses: actions/setup-node@v6
37
37
  with:
38
38
  #{node_spec}
39
39
  cache: #{js_package_manager}
@@ -96,7 +96,7 @@ copy_file "app/frontend/images/example.svg"
96
96
  copy_file "test/helpers/inline_svg_helper_test.rb" if File.exist?("test/vite_helper.rb")
97
97
 
98
98
  say_git "Add a `bin/dev` script that uses run-pty"
99
- add_js_packages "run-pty@^5", dev: true
99
+ add_js_packages "run-pty@^6", dev: true
100
100
  copy_file "bin/dev-node", "bin/dev", mode: :preserve, force: true
101
101
  copy_file "run-pty.json"
102
102
  remove_file "Procfile.dev"
@@ -125,7 +125,7 @@ if File.exist?(".github/workflows/ci.yml")
125
125
  inject_into_file ".github/workflows/ci.yml", <<-YAML, before: /^\s+- name: Run tests/
126
126
 
127
127
  - name: Set up Node
128
- uses: actions/setup-node@v5
128
+ uses: actions/setup-node@v6
129
129
  with:
130
130
  #{node_spec}
131
131
  cache: #{js_package_manager}
@@ -11,8 +11,7 @@ module Nextgen
11
11
  :asset_pipelines,
12
12
  :databases,
13
13
  :default_features,
14
- :optional_features,
15
- keyword_init: true
14
+ :optional_features
16
15
  )
17
16
 
18
17
  class << RailsVersion
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.38.0"
4
+ VERSION = "0.39.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.6.9
227
+ rubygems_version: 4.0.7
228
228
  specification_version: 4
229
229
  summary: Generate your next Rails app interactively!
230
230
  test_files: []