nextgen 0.28.2 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config/rails_versions.yml +8 -27
- data/lib/nextgen/generators/stylelint.rb +0 -1
- data/lib/nextgen/version.rb +1 -1
- data/template/.overcommit.yml.tt +1 -3
- data/template/.stylelintrc.js +6 -7
- data/template/test/support/capybara.rb.tt +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae7a114f28927aeca08642350b0f6fa8e1b40bcc0761e3263aba23d8e2d7fe0
|
4
|
+
data.tar.gz: 3be796cc5c8966e754519a6b3ec62296a2c5733984a9a8fed97d0843f4baf70a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca77628909d5c4112acd3c4fb48a1d2cd34db618a1cacf3a293a8bd99e05103ab00ac403e80ee5548775c196f2adfd79a538786de1b6fd657074a17bd60cdacd
|
7
|
+
data.tar.gz: d82a40374cbd39bf6c05e4c6641105d81c3eced5672f4e4f6fbbbb75d543a24b023dd83cdf9f8fd2e079f2d6c2b1a65a32ce0e89bbd396d69fc5efdedc2b9f8c
|
data/README.md
CHANGED
@@ -26,9 +26,9 @@ Nextgen is an **interactive** and flexible alternative to `rails new` that inclu
|
|
26
26
|
|
27
27
|
## Requirements
|
28
28
|
|
29
|
-
Nextgen generates apps using **Rails
|
29
|
+
Nextgen generates apps using **Rails 8.0**.
|
30
30
|
|
31
|
-
- **Ruby 3.
|
31
|
+
- **Ruby 3.2+** is required
|
32
32
|
- **Rubygems 3.4.8+** is required (run `gem update --system` to get it)
|
33
33
|
- **Node 20.9+ and Yarn** are required if you choose Vite or other Node-based options (see the [npm note](#yarn-or-npm) below)
|
34
34
|
- Additional tools may be required depending on the options you select (e.g. PostgreSQL)
|
@@ -54,7 +54,7 @@ Check out the [examples directory](./examples) to see some Rails apps that were
|
|
54
54
|
|
55
55
|
## What's included
|
56
56
|
|
57
|
-
**Nextgen starts with the "omakase" default behavior of `rails new`,** so you get the great things included in Rails
|
57
|
+
**Nextgen starts with the "omakase" default behavior of `rails new`,** so you get the great things included in Rails 8.0 like RuboCop, a GitHub Actions CI workflow, your choice of database platform, CSS framework, etc. You can also interactively disable parts of the default stack that you don't need, like JBuilder or Action Mailbox.
|
58
58
|
|
59
59
|
On top of that foundation, Nextgen offers dozens of useful enhancements to the vanilla Rails experience. You are free to pick and choose which (if any) of these to apply to your new project. Behind the scenes, **each enhancement is applied in a separate git commit,** so that you can later see what was applied and why, and revert the suggestions if necessary.
|
60
60
|
|
data/config/rails_versions.yml
CHANGED
@@ -2,8 +2,7 @@ current: ¤t
|
|
2
2
|
args: []
|
3
3
|
label: "%%CURRENT_VERSION%%"
|
4
4
|
asset_pipelines:
|
5
|
-
|
6
|
-
propshaft: Propshaft
|
5
|
+
propshaft: Propshaft (default)
|
7
6
|
databases:
|
8
7
|
sqlite3: SQLite3 (default)
|
9
8
|
postgresql: PostgreSQL (recommended)
|
@@ -15,42 +14,24 @@ current: ¤t
|
|
15
14
|
jdbcsqlite3: JDBCSQLite3
|
16
15
|
jdbcpostgresql: JDBCPostgreSQL
|
17
16
|
jdbc: JDBC
|
17
|
+
mariadb-mysql: MariaDB-MySQL
|
18
|
+
mariadb-trilogy: MariaDB-Trilogy
|
18
19
|
default_features:
|
19
20
|
brakeman: Brakeman
|
20
21
|
ci: GitHub Actions CI
|
22
|
+
kamal: Kamal
|
21
23
|
rubocop: RuboCop
|
24
|
+
solid: Solid Cache+Queue
|
25
|
+
thruster: Thruster
|
22
26
|
optional_features:
|
23
27
|
devcontainer: devcontainer files
|
24
28
|
|
25
29
|
edge:
|
26
30
|
<<: *current
|
27
31
|
args: ["--edge"]
|
28
|
-
label: "edge (
|
32
|
+
label: "edge (8-0-stable)"
|
29
33
|
|
30
34
|
main:
|
35
|
+
<<: *current
|
31
36
|
args: ["--main"]
|
32
37
|
label: "main (%%MAIN_VERSION%%)"
|
33
|
-
asset_pipelines:
|
34
|
-
propshaft: Propshaft (default)
|
35
|
-
databases:
|
36
|
-
sqlite3: SQLite3 (default)
|
37
|
-
postgresql: PostgreSQL (recommended)
|
38
|
-
mysql: MySQL
|
39
|
-
trilogy: Trilogy
|
40
|
-
oracle: Oracle
|
41
|
-
sqlserver: SQLServer
|
42
|
-
jdbcmysql: JDBCMySQL
|
43
|
-
jdbcsqlite3: JDBCSQLite3
|
44
|
-
jdbcpostgresql: JDBCPostgreSQL
|
45
|
-
jdbc: JDBC
|
46
|
-
mariadb-mysql: MariaDB-MySQL
|
47
|
-
mariadb-trilogy: MariaDB-Trilogy
|
48
|
-
default_features:
|
49
|
-
brakeman: Brakeman
|
50
|
-
ci: GitHub Actions CI
|
51
|
-
kamal: Kamal
|
52
|
-
rubocop: RuboCop
|
53
|
-
solid: Solid Cache+Queue
|
54
|
-
thruster: Thruster
|
55
|
-
optional_features:
|
56
|
-
devcontainer: devcontainer files
|
data/lib/nextgen/version.rb
CHANGED
data/template/.overcommit.yml.tt
CHANGED
@@ -59,7 +59,7 @@ PreCommit:
|
|
59
59
|
RuboCop:
|
60
60
|
enabled: true
|
61
61
|
required_executable: bundle
|
62
|
-
command: ["bundle", "exec", "rubocop"]
|
62
|
+
command: ["bundle", "exec", "rubocop", "-c", ".rubocop.yml"]
|
63
63
|
on_warn: fail
|
64
64
|
<% end -%>
|
65
65
|
|
@@ -68,8 +68,6 @@ PreCommit:
|
|
68
68
|
enabled: true
|
69
69
|
required_executable: npx
|
70
70
|
command: ["npx", "--no-install", "stylelint"]
|
71
|
-
env:
|
72
|
-
NODE_OPTIONS: --no-deprecation
|
73
71
|
include:
|
74
72
|
- app/assets/**/*.css
|
75
73
|
- app/components/**/*.css
|
data/template/.stylelintrc.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import strictValuePlugin from "stylelint-declaration-strict-value";
|
2
|
-
|
3
1
|
export default {
|
4
|
-
plugins: [strictValuePlugin],
|
5
2
|
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
|
6
3
|
rules: {
|
7
4
|
"color-hex-length": null,
|
@@ -18,11 +15,10 @@ export default {
|
|
18
15
|
ignoreProperties: ["font-named-instance"],
|
19
16
|
},
|
20
17
|
],
|
21
|
-
"
|
22
|
-
"/color/",
|
18
|
+
"declaration-property-value-allowed-list": [
|
23
19
|
{
|
24
|
-
|
25
|
-
|
20
|
+
"/color/": [
|
21
|
+
/^var\(--/,
|
26
22
|
"currentcolor",
|
27
23
|
"inherit",
|
28
24
|
"initial",
|
@@ -30,6 +26,9 @@ export default {
|
|
30
26
|
"unset",
|
31
27
|
],
|
32
28
|
},
|
29
|
+
{
|
30
|
+
message: "Found hard-coded color value; expected var(--...)",
|
31
|
+
},
|
33
32
|
],
|
34
33
|
"selector-class-pattern": [
|
35
34
|
// classes must be in BEM form, like this:
|
@@ -3,9 +3,9 @@
|
|
3
3
|
ActiveSupport.on_load(:action_dispatch_system_test_case) do
|
4
4
|
require "capybara"
|
5
5
|
require "capybara/rails"
|
6
|
-
|
6
|
+
<% if rspec? -%>
|
7
7
|
require "capybara/rspec"
|
8
|
-
|
8
|
+
<% end -%>
|
9
9
|
|
10
10
|
Capybara.configure do |config|
|
11
11
|
config.default_max_wait_time = 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nextgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 8.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 8.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,14 +220,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
requirements:
|
221
221
|
- - ">="
|
222
222
|
- !ruby/object:Gem::Version
|
223
|
-
version: '3.
|
223
|
+
version: '3.2'
|
224
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.5.
|
230
|
+
rubygems_version: 3.5.22
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Generate your next Rails app interactively!
|