-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update sprocket gem to handle vulnerability issues #421
update sprocket gem to handle vulnerability issues #421
Conversation
600d1ab
to
ed3b2ea
Compare
@@ -58,5 +58,6 @@ class Application < Rails::Application | |||
# config.i18n.default_locale = :de | |||
config.secret_token = ENV["SECRET_TOKEN"] | |||
config.active_record.raise_in_transactional_callbacks = true | |||
config.assets.precompile << %w(landing.css) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ].
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to make this explicit, they are automagically precompiled on deploy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this because of the upgrade of the sprocket version demands that I specify this explicitly. It was throwing an error that landing.css was missing ....
Gemfile
Outdated
@@ -40,7 +40,7 @@ gem "paperclip", "~> 5.1.0" | |||
gem "aws-sdk" | |||
gem "redcarpet" | |||
gem "holidays" | |||
gem "sprockets-rails", "~> 2.3" | |||
gem 'sprockets-rails', "~>3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
783d2a8
to
2a8de71
Compare
config/application.rb
Outdated
@@ -58,5 +58,6 @@ class Application < Rails::Application | |||
# config.i18n.default_locale = :de | |||
config.secret_token = ENV["SECRET_TOKEN"] | |||
config.active_record.raise_in_transactional_callbacks = true | |||
config.assets.precompile %w(landing.css) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/ExtraSpacing: Unnecessary spacing detected.
Layout/SpaceBeforeFirstArg: Put one space between the method name and the first argument.
Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ].
2a8de71
to
0fbdd2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you remove the assets precompile addition? Don't think it's needed.
@@ -58,5 +58,6 @@ class Application < Rails::Application | |||
# config.i18n.default_locale = :de | |||
config.secret_token = ENV["SECRET_TOKEN"] | |||
config.active_record.raise_in_transactional_callbacks = true | |||
config.assets.precompile << %w(landing.css) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to make this explicit, they are automagically precompiled on deploy.
PR description
Issue
#420