nextgen 0.10.0 → 0.12.0
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 +4 -4
- data/README.md +1 -1
- data/config/generators.yml +2 -2
- data/lib/nextgen/actions.rb +6 -0
- data/lib/nextgen/generators/base.rb +6 -0
- data/lib/nextgen/generators/dotenv.rb +1 -1
- data/lib/nextgen/generators/github_actions.rb +1 -0
- data/lib/nextgen/generators/vcr.rb +5 -0
- data/lib/nextgen/version.rb +1 -1
- data/template/.github/dependabot.yml +9 -0
- data/template/.github/workflows/ci.yml.tt +3 -3
- data/template/test/support/capybara.rb.tt +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6db9fb7cd60bea395ad5018e18a905246e877a34bc6f8742194e7302035b5ad
|
|
4
|
+
data.tar.gz: f3538f1ec8b8bd8280caa19f0410a04c43376343de6b2d5870ff01f7ea17eb17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ebb05f8e034cbd54cc88cafebb45da4dd6d0f165a2495c108441ad4816d7ad417bbf8be86389a32cad148bcc7fbe2b997f6c655c5df6bc95f6ea26b60576adb
|
|
7
|
+
data.tar.gz: 4ac4898307cb50f20650dcf45d4090a1c3af2c32cd316e0e0a24187db074919e92baf8bb81cefa4a1f50813641e680c12e09acbfcdbc826f401355721c9ba1ef
|
data/README.md
CHANGED
|
@@ -79,7 +79,7 @@ Nextgen can install and configure your choice of these recommended gems:
|
|
|
79
79
|
- [brakeman](https://github.com/presidentbeef/brakeman)
|
|
80
80
|
- [bundler-audit](https://github.com/rubysec/bundler-audit)
|
|
81
81
|
- [capybara-lockstep](https://github.com/makandra/capybara-lockstep)
|
|
82
|
-
- [dotenv
|
|
82
|
+
- [dotenv](https://github.com/bkeepers/dotenv)
|
|
83
83
|
- [erb_lint](https://github.com/Shopify/erb-lint)
|
|
84
84
|
- [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails)
|
|
85
85
|
- [good_migrations](https://github.com/testdouble/good-migrations)
|
data/config/generators.yml
CHANGED
|
@@ -51,8 +51,8 @@ capybara_lockstep:
|
|
|
51
51
|
requires: system_testing
|
|
52
52
|
|
|
53
53
|
dotenv:
|
|
54
|
-
prompt: "dotenv
|
|
55
|
-
description: "Install dotenv
|
|
54
|
+
prompt: "dotenv"
|
|
55
|
+
description: "Install dotenv gem and add .env.sample"
|
|
56
56
|
|
|
57
57
|
erb_lint:
|
|
58
58
|
prompt: "ERB Lint"
|
data/lib/nextgen/actions.rb
CHANGED
|
@@ -59,3 +59,9 @@ if File.exist?("config/database.yml")
|
|
|
59
59
|
say_git "Create initial schema.rb"
|
|
60
60
|
rails_command "db:prepare"
|
|
61
61
|
end
|
|
62
|
+
|
|
63
|
+
if (time_zone = read_system_time_zone_name)
|
|
64
|
+
say_git "Set default time zone: #{time_zone}"
|
|
65
|
+
uncomment_lines "config/application.rb", /config\.time_zone/
|
|
66
|
+
gsub_file "config/application.rb", /(config\.time_zone = ).*$/, "\\1#{time_zone.inspect}"
|
|
67
|
+
end
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
install_gems "vcr", "webmock", group: :test
|
|
2
2
|
copy_test_support_file "vcr.rb.tt"
|
|
3
3
|
copy_test_support_file "webmock.rb"
|
|
4
|
+
append_to_file ".gitattributes", <<~GITATTRS if File.exist?(".gitattributes")
|
|
5
|
+
|
|
6
|
+
# Mark VCR cassettes as having been generated.
|
|
7
|
+
#{rspec? ? "spec" : "test"}/cassettes/* linguist-generated
|
|
8
|
+
GITATTRS
|
data/lib/nextgen/version.rb
CHANGED
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
with:
|
|
32
32
|
bundler-cache: true
|
|
33
33
|
<% if File.exist?("package.json") -%>
|
|
34
|
-
- uses: actions/setup-node@
|
|
34
|
+
- uses: actions/setup-node@v4
|
|
35
35
|
with:
|
|
36
36
|
<% if File.exist?(".node-version") -%>
|
|
37
37
|
node-version-file: ".node-version"
|
|
@@ -79,7 +79,7 @@ jobs:
|
|
|
79
79
|
runs-on: ubuntu-latest
|
|
80
80
|
steps:
|
|
81
81
|
- uses: actions/checkout@v4
|
|
82
|
-
- uses: actions/setup-node@
|
|
82
|
+
- uses: actions/setup-node@v4
|
|
83
83
|
with:
|
|
84
84
|
<% if File.exist?(".node-version") -%>
|
|
85
85
|
node-version-file: ".node-version"
|
|
@@ -107,7 +107,7 @@ jobs:
|
|
|
107
107
|
runs-on: ubuntu-latest
|
|
108
108
|
steps:
|
|
109
109
|
- uses: actions/checkout@v4
|
|
110
|
-
- uses: actions/setup-node@
|
|
110
|
+
- uses: actions/setup-node@v4
|
|
111
111
|
with:
|
|
112
112
|
<% if File.exist?(".node-version") -%>
|
|
113
113
|
node-version-file: ".node-version"
|
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.12.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-02
|
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -148,6 +148,7 @@ files:
|
|
|
148
148
|
- template/.erb-lint.yml.tt
|
|
149
149
|
- template/.eslintrc.cjs
|
|
150
150
|
- template/.github/PULL_REQUEST_TEMPLATE.md.tt
|
|
151
|
+
- template/.github/dependabot.yml
|
|
151
152
|
- template/.github/workflows/ci.yml.tt
|
|
152
153
|
- template/.overcommit.yml.tt
|
|
153
154
|
- template/.prettierrc.cjs
|
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
220
|
- !ruby/object:Gem::Version
|
|
220
221
|
version: '0'
|
|
221
222
|
requirements: []
|
|
222
|
-
rubygems_version: 3.5.
|
|
223
|
+
rubygems_version: 3.5.6
|
|
223
224
|
signing_key:
|
|
224
225
|
specification_version: 4
|
|
225
226
|
summary: Generate your next Rails app interactively!
|