nextgen 0.11.0 → 0.12.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: e767c1fa3b2359b5472dd5ac7ba7d56eb7db593005299bff5f1dd447f819357a
4
- data.tar.gz: ad16e84e405b666d97df23f80c486fe82467217fb0920c3ff0842494aa582d1f
3
+ metadata.gz: c6db9fb7cd60bea395ad5018e18a905246e877a34bc6f8742194e7302035b5ad
4
+ data.tar.gz: f3538f1ec8b8bd8280caa19f0410a04c43376343de6b2d5870ff01f7ea17eb17
5
5
  SHA512:
6
- metadata.gz: 619a74b6fb01b1ebe55ecc8e4bd90b94c6de0ba80372ff005ba6f595b16374bc4e8b6f6fab98029edcdea9de44082e4d9fd9757f9e550fdeb45765ec5fa7443b
7
- data.tar.gz: c46e0bb02315cc853419d665267abea5bcad14d5fc55fcff9645319ddb3ca61e734a6c71931f46c6bdcad2b2e1a96eee2a78bd54a11db957eae28333eb689f74
6
+ metadata.gz: 7ebb05f8e034cbd54cc88cafebb45da4dd6d0f165a2495c108441ad4816d7ad417bbf8be86389a32cad148bcc7fbe2b997f6c655c5df6bc95f6ea26b60576adb
7
+ data.tar.gz: 4ac4898307cb50f20650dcf45d4090a1c3af2c32cd316e0e0a24187db074919e92baf8bb81cefa4a1f50813641e680c12e09acbfcdbc826f401355721c9ba1ef
@@ -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,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,3 @@
1
1
  module Nextgen
2
- VERSION = "0.11.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.11.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-03-08 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