Skip to content
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

Merged

Conversation

DanielAmah
Copy link
Contributor

@DanielAmah DanielAmah commented Aug 25, 2018

PR description

  • This PR updates the sprocket gem and handles the vulnerability issues flagged by Heroku during deployment.
  • Added landing.css to asset precompile

Issue

#420

@DanielAmah DanielAmah force-pushed the update-sprocket-rails-gem branch 3 times, most recently from 600d1ab to ed3b2ea Compare August 25, 2018 23:40
@@ -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)

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 ].

Copy link
Member

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.

Copy link
Contributor Author

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"

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.

@DanielAmah DanielAmah force-pushed the update-sprocket-rails-gem branch 2 times, most recently from 783d2a8 to 2a8de71 Compare August 25, 2018 23:49
@@ -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)

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 ].

Copy link
Member

@tarzan tarzan left a 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)
Copy link
Member

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.

@tarzan tarzan merged commit df352f1 into DefactoSoftware:development Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants