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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 716abfe47d510898c47f2749d0a5483440a942715026987eb095692c1a4eb318
4
- data.tar.gz: f310c7a2344b9d790c6b5d05245343282fd77d3d72a28f4979b6f2aec8e7853f
3
+ metadata.gz: 38db6779e6011d4a674dbfcb2337f6d54778694a5c661163e79f9a22b279bb32
4
+ data.tar.gz: f4b8be15108161721b9ad1d2b48ede9715ef5a73941fde89a8a02bd6c1a79676
5
5
  SHA512:
6
- metadata.gz: 605927e26e03a6c7d83acd1c2dfcee1069946ef08a5dd9de6ecf424b92a91fc76271b172144fe892c4b6cc9a1c80bff9ed22df7bf99739f4faf815cf21253a87
7
- data.tar.gz: 5f9beef52e5f057d8ebba6be8c4686bf3bcfc143d4bb45e264ce057dcc0d48ad1ab1df38e896df028ce58a3c3ccfe2b0791af3cac0b07b9bccdfdbb0f9d34e97
6
+ metadata.gz: e986c9049350c61178690483c17b6a1ad1c905a7ed513ba101d1eb6d1718d22fddf67a82e2c436afd9f6b6370460030eaf12621b701dfffa3cee53216a66d4fa
7
+ data.tar.gz: b2a46622619b7bc69b04decccba76197f98624ebaa636d570e21d8db9983ad8e7d075cc025e996708fe1c02dac5b35fc579c1b282f87b1090cd9bb2f3627c671
@@ -119,7 +119,7 @@ module Nextgen
119
119
 
120
120
  desc "Apply auto-corrections"
121
121
  task fix: %w[] do
122
- Thor::Base.shell.new.say_status :OK, "All fixes applied!"
122
+ puts ">>>>>> [OK] All fixes applied!"
123
123
  end
124
124
  RUBY
125
125
  end
@@ -23,7 +23,7 @@ append_to_file "Rakefile", <<~RUBY
23
23
 
24
24
  desc "Run all checks"
25
25
  task default: %w[#{test_task}] do
26
- Thor::Base.shell.new.say_status :OK, "All checks passed!"
26
+ puts ">>>>>> [OK] All checks passed!"
27
27
  end
28
28
  RUBY
29
29
 
@@ -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
- # Prevents Rails from trying to eager-load the contents of app/frontend
16
- config.javascript_path = "frontend"
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.16.0"
4
+ VERSION = "0.17.1"
5
5
  end
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") && !run("yarn check --check-files", silent: true, exception: false)
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.16.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-06-22 00:00:00.000000000 Z
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.13
225
+ rubygems_version: 3.5.11
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: Generate your next Rails app interactively!