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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99667a7ba794d38f8ca3852c3bedf49d0ce0c6f3b0fc1617ec61fdd4c112b4cc
4
- data.tar.gz: 9b715a0abcaab886c7c1885bec322ca0587c1810565b0ff9430f64242571317b
3
+ metadata.gz: c6db9fb7cd60bea395ad5018e18a905246e877a34bc6f8742194e7302035b5ad
4
+ data.tar.gz: f3538f1ec8b8bd8280caa19f0410a04c43376343de6b2d5870ff01f7ea17eb17
5
5
  SHA512:
6
- metadata.gz: 5670d3a6881877846ccf63b07628b6469c4b89f19efc847763e9f8690110b4cfa2bb29d83623bb3f27d0c4bc8bbec6d17866bf2b145c595b6d6eb20473a44f78
7
- data.tar.gz: 899c6f98a0866da87507a80a626d2d5bb7576261fdce379cb98860b97b58a993d243be9d758d15a0248c91aa436cacdc0d6d1d839ccc07bdab9c6caaad227c8f
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-rails](https://github.com/bkeepers/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)
@@ -51,8 +51,8 @@ capybara_lockstep:
51
51
  requires: system_testing
52
52
 
53
53
  dotenv:
54
- prompt: "dotenv-rails"
55
- description: "Install dotenv-rails gem and add .env.sample"
54
+ prompt: "dotenv"
55
+ description: "Install dotenv gem and add .env.sample"
56
56
 
57
57
  erb_lint:
58
58
  prompt: "ERB Lint"
@@ -153,5 +153,11 @@ module Nextgen
153
153
 
154
154
  raise Thor::Error, message
155
155
  end
156
+
157
+ def read_system_time_zone_name
158
+ return unless File.symlink?("/etc/localtime")
159
+
160
+ File.readlink("/etc/localtime")[%r{zoneinfo/(.+)$}, 1]
161
+ end
156
162
  end
157
163
  end
@@ -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,3 @@
1
- install_gem "dotenv-rails", group: %i[development test]
1
+ install_gem "dotenv", version: ">= 3.0", group: %i[development test]
2
2
  copy_file ".env.sample"
3
3
  gitignore "/.env*", "!/.env.sample"
@@ -1,2 +1,3 @@
1
1
  gems = File.exist?("Gemfile") ? File.read("Gemfile").scan(/^\s*gem ["'](.+?)["']/).flatten : []
2
2
  template ".github/workflows/ci.yml.tt", context: binding
3
+ copy_file ".github/dependabot.yml"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Nextgen
2
- VERSION = "0.10.0".freeze
2
+ VERSION = "0.12.0".freeze
3
3
  end
@@ -0,0 +1,9 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ time: "06:00"
8
+ timezone: America/Los_Angeles
9
+ open-pull-requests-limit: 10
@@ -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@v3
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@v3
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@v3
110
+ - uses: actions/setup-node@v4
111
111
  with:
112
112
  <% if File.exist?(".node-version") -%>
113
113
  node-version-file: ".node-version"
@@ -5,6 +5,7 @@ require "capybara/rspec"
5
5
 
6
6
  Capybara.configure do |config|
7
7
  config.default_max_wait_time = 2
8
+ config.save_path = "tmp/screenshots"
8
9
  config.enable_aria_label = true
9
10
  config.server = :puma, {Silent: true}
10
11
  config.test_id = "data-testid"
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.10.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-06 00:00:00.000000000 Z
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.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!