lib/suspenders/app_builder.rb in welaika-suspenders-2.23.0 vs lib/suspenders/app_builder.rb in welaika-suspenders-2.24.0
- old
+ new
@@ -191,24 +191,10 @@
' config.static_cache_control = "public, max-age=#{1.year.to_i}"',
after: serve_static_files_line
)
end
- def setup_staging_environment
- staging_file = 'config/environments/staging.rb'
- copy_file 'staging.rb', staging_file
-
- config = <<-RUBY
-
-Rails.application.configure do
- # ...
-end
- RUBY
-
- append_file staging_file, config
- end
-
def setup_secret_token
template 'secrets.yml', 'config/secrets.yml', force: true
end
def disallow_wrapping_parameters
@@ -226,10 +212,17 @@
def create_shared_javascripts
copy_file '_javascript.html.slim', 'app/views/application/_javascript.html.slim'
end
+ def create_shared_css_overrides
+ copy_file(
+ "_css_overrides.html.erb",
+ "app/views/application/_css_overrides.html.erb",
+ )
+ end
+
def create_application_layout
remove_file 'app/views/layouts/application.html.erb'
template 'suspenders_layout.html.slim',
'app/views/layouts/application.html.slim',
force: true
@@ -440,10 +433,9 @@
end
def create_binstubs
bundle_command "binstubs brakeman"
bundle_command "binstubs rubocop"
- bundle_command "binstubs i18n-tasks"
end
def copy_miscellaneous_files
copy_file "browserslist", "browserslist"
copy_file "errors.rb", "config/initializers/errors.rb"