nextgen 0.21.0 → 0.23.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: f5e200d3e6e25f5397dfa61209e92088f53115e54fed6aeee753899fa3978011
4
- data.tar.gz: 87e09910259c3d83d974d4fb974fda1172566196dc0062910ced93f7f9a540c4
3
+ metadata.gz: ccbe3efa90a32fceeb62ba7b8ccfb7b138a43d3c301e6491763a4103bc142991
4
+ data.tar.gz: b2845c59c5170a82b81b1e55ec836a342bb51d32ab031575db051987d62d6424
5
5
  SHA512:
6
- metadata.gz: f8a17ffed163b4a3e1490d0ef48ee02514bd508d1c6f09739c60b58b79e2085aef6c0cf9002d8a5c5fb0a82fd5ba3f79821e4e058521c5cab5e5467401e6814d
7
- data.tar.gz: 385623e44d389433962b84fb87fe4afa6b6a26e07a0e6c79decdfb7def59a00a86095c6c1d31330622545a5624650234ad3a7e23dac0040e304a4007292b10fa
6
+ metadata.gz: b3dea1fc75cbf2df5e483efc6bbd025dd8994f273b078351182aacceb66a69ade48a186cce0f4ce4a6e4fa1206f9fcf7bd53efe448cdb3be8e8bad808cd12707
7
+ data.tar.gz: 86bed37b89d18353da4d09a1004b6a9267c2a82f56f0ca398a3f6c5935a3639260722a325f7b699fab60cf5d86a41f7c205ea885cbdc0f017a9cc3865357110f
@@ -7,22 +7,3 @@ if minitest?
7
7
  elsif rspec?
8
8
  empty_directory_with_keep_file "spec/mailers"
9
9
  end
10
-
11
- say_git "Ensure absolute URLs can be used in all environments"
12
- insert_into_file "config/environments/development.rb", <<-RUBY, after: "raise_delivery_errors = false\n"
13
- config.action_mailer.default_url_options = {host: "localhost:3000"}
14
- config.action_mailer.asset_host = "http://localhost:3000"
15
- RUBY
16
-
17
- insert_into_file "config/environments/test.rb", <<-RUBY, after: "config.action_mailer.delivery_method = :test\n"
18
- config.action_mailer.default_url_options = {host: "localhost:3000"}
19
- config.action_mailer.asset_host = "http://localhost:3000"
20
- RUBY
21
-
22
- insert_into_file "config/environments/production.rb", <<-RUBY, after: /config\.action_mailer\.raise_deliv.*\n/
23
- config.action_mailer.default_url_options = {
24
- host: ENV.fetch("RAILS_HOSTNAME", "app.example.com"),
25
- protocol: "https"
26
- }
27
- config.action_mailer.asset_host = "https://\#{ENV.fetch("RAILS_HOSTNAME", "app.example.com")}"
28
- RUBY
@@ -8,3 +8,7 @@ document_deploy_var "RAILS_HOSTNAME", "Redirect all requests to the specified ca
8
8
  insert_into_file "config.ru",
9
9
  %(use Rack::CanonicalHost, ENV.fetch("RAILS_HOSTNAME", nil) if ENV["RAILS_HOSTNAME"].present?\n),
10
10
  before: /^run Rails.application/
11
+
12
+ gsub_file "config/environments/production.rb",
13
+ /\bhost: "example\.com"/,
14
+ 'host: ENV.fetch("RAILS_HOSTNAME", "example.com")'
@@ -11,7 +11,7 @@ plugins << "performance"
11
11
  plugins << "rails"
12
12
  install_gem("rubocop-rails", version: ">= 2.22.0", group: :development, require: false)
13
13
  install_gems(*plugins.map { "rubocop-#{_1}" }, "rubocop", group: :development, require: false)
14
- binstub "rubocop"
14
+ binstub "rubocop" unless File.exist?("bin/rubocop")
15
15
 
16
16
  say_git "Replace .rubocop.yml"
17
17
  template ".rubocop.yml", context: binding, force: true
@@ -33,4 +33,5 @@ inject_into_file "README.md", <<~MARKDOWN, after: /rake fix\n```\n/
33
33
  MARKDOWN
34
34
 
35
35
  say_git "Auto-correct any existing issues"
36
+ uncomment_lines "config/environments/development.rb", /apply_rubocop_autocorrect_after_generate!/
36
37
  run "bin/rubocop -A --fail-level F", capture: true
@@ -117,7 +117,8 @@ say_git "Remove sprockets"
117
117
  remove_file "config/initializers/assets.rb"
118
118
  comment_lines "config/environments/development.rb", /^\s*config\.assets\./
119
119
  comment_lines "config/environments/production.rb", /^\s*config\.assets\./
120
- gsub_file "app/views/layouts/application.html.erb", /^.*<%= stylesheet_link_tag.*$/, ""
120
+ gsub_file "app/views/layouts/application.html.erb", /^.*<%= javascript_include_tag.*\n/, ""
121
+ gsub_file "app/views/layouts/application.html.erb", /^.*<%= stylesheet_link_tag.*\n/, ""
121
122
  remove_gem "sprockets-rails"
122
123
 
123
124
  if File.exist?(".github/workflows/ci.yml")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.21.0"
4
+ VERSION = "0.23.0"
5
5
  end
@@ -6,6 +6,6 @@ These environment variables affect how the app functions when deployed in produc
6
6
 
7
7
  - `RAILS_DISABLE_SSL` - Disable HSTS and secure cookies
8
8
  - `RAILS_ENV` **REQUIRED** - "production"
9
- - `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 5)
9
+ - `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 3)
10
10
  - `SECRET_KEY_BASE` **REQUIRED** - Unique, secret key used to encrypt and sign cookies and other sensitive data
11
- - `WEB_CONCURRENCY` - Number of Puma processes (default: number of CPUs)
11
+ - `WEB_CONCURRENCY` - Number of Puma processes (default: 1)
@@ -3,4 +3,6 @@
3
3
  return unless Gem.loaded_specs.key?("rubocop")
4
4
 
5
5
  require "rubocop/rake_task"
6
- RuboCop::RakeTask.new
6
+ RuboCop::RakeTask.new(:rubocop) do |task|
7
+ task.options.push "-c", ".rubocop.yml"
8
+ end
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.21.0
4
+ version: 0.23.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-08-30 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.5.18
227
+ rubygems_version: 3.5.16
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Generate your next Rails app interactively!