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

Adds missing array to cached_asset_file.rb #80

Merged
merged 1 commit into from
Nov 27, 2017

Conversation

LeahArmstrong
Copy link
Contributor

Added an array where one appears to be missing.
Causes this error in Rails 4.0.3:

/gems/inline_svg-1.3.0/lib/inline_svg/cached_asset_file.rb:17: syntax error, unexpected ',' (SyntaxError)
    def initialize(paths:, filters: [])

Added an array where one appears to be missing.
Receiving  this error in Rails 4.0.3:
```
/gems/inline_svg-1.3.0/lib/inline_svg/cached_asset_file.rb:17: syntax error, unexpected ',' (SyntaxError)
    def initialize(paths:, filters: [])
```
Copy link
Owner

@jamesmartin jamesmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DustinArmstrong thanks for opening this PR. I appreciate you helping to improve this project! 👍

Given the syntax error I assume you're seeing the problem while running a version of Ruby older than 2.1 (which introduced required keyword arguments). I've never set a minimum required Ruby version for this gem, although maybe I should in future.

In any case, I think your fix makes sense. Thanks again! ✨

@jamesmartin jamesmartin merged commit b04b1b9 into jamesmartin:master Nov 27, 2017
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.

2 participants