nextgen 0.16.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nextgen/actions.rb +1 -1
- data/lib/nextgen/generators/base.rb +1 -1
- data/lib/nextgen/generators/vite.rb +10 -2
- data/lib/nextgen/version.rb +1 -1
- data/template/bin/setup +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38db6779e6011d4a674dbfcb2337f6d54778694a5c661163e79f9a22b279bb32
|
4
|
+
data.tar.gz: f4b8be15108161721b9ad1d2b48ede9715ef5a73941fde89a8a02bd6c1a79676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e986c9049350c61178690483c17b6a1ad1c905a7ed513ba101d1eb6d1718d22fddf67a82e2c436afd9f6b6370460030eaf12621b701dfffa3cee53216a66d4fa
|
7
|
+
data.tar.gz: b2a46622619b7bc69b04decccba76197f98624ebaa636d570e21d8db9983ad8e7d075cc025e996708fe1c02dac5b35fc579c1b282f87b1090cd9bb2f3627c671
|
data/lib/nextgen/actions.rb
CHANGED
@@ -12,8 +12,8 @@ move "app/assets/images", "app/frontend/images"
|
|
12
12
|
move "app/assets/stylesheets", "app/frontend/stylesheets"
|
13
13
|
remove_dir "app/assets"
|
14
14
|
inject_into_class "config/application.rb", "Application", <<-RUBY
|
15
|
-
|
16
|
-
|
15
|
+
# Prevents Rails from trying to eager-load the contents of app/frontend
|
16
|
+
config.javascript_path = "frontend"
|
17
17
|
|
18
18
|
RUBY
|
19
19
|
|
@@ -100,6 +100,14 @@ gsub_file "README.md", %r{bin/rails s(erver)?}, "yarn start"
|
|
100
100
|
gsub_file "bin/setup", %r{bin/rails s(erver)?}, "yarn start"
|
101
101
|
remove_file "Procfile.dev"
|
102
102
|
|
103
|
+
say_git "Add Safari cache workaround in development"
|
104
|
+
insert_into_file "config/environments/development.rb", <<-RUBY, before: /^end/
|
105
|
+
|
106
|
+
# Disable `Link: ... rel=preload` header to work around Safari caching bug
|
107
|
+
# https://bugs.webkit.org/show_bug.cgi?id=193533
|
108
|
+
config.action_view.preload_links_header = false
|
109
|
+
RUBY
|
110
|
+
|
103
111
|
say_git "Remove jsbundling-rails"
|
104
112
|
remove_gem "jsbundling-rails"
|
105
113
|
|
data/lib/nextgen/version.rb
CHANGED
data/template/bin/setup
CHANGED
@@ -9,7 +9,7 @@ def setup!
|
|
9
9
|
run "bundle install" if bundle_needed?
|
10
10
|
run "overcommit --install" if overcommit_installable?
|
11
11
|
run "bin/rails db:prepare" if database_present?
|
12
|
-
run "yarn install" if yarn_needed?
|
12
|
+
run "yarn install --check-files" if yarn_needed?
|
13
13
|
run "bin/rails tmp:create" if tmp_missing?
|
14
14
|
run "bin/rails restart"
|
15
15
|
|
@@ -49,7 +49,7 @@ def database_present?
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def yarn_needed?
|
52
|
-
File.exist?("yarn.lock")
|
52
|
+
File.exist?("yarn.lock")
|
53
53
|
end
|
54
54
|
|
55
55
|
def tmp_missing?
|
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.17.1
|
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-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.5.
|
225
|
+
rubygems_version: 3.5.11
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: Generate your next Rails app interactively!
|