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

Allow svgo plugins to be disabled #110

Closed
wants to merge 1 commit into from
Closed

Conversation

tomhughes
Copy link
Contributor

No description provided.

@Firefishy
Copy link

The Travis CI build failure seems to be a false positive.

@@ -4,11 +4,17 @@ class ImageOptim
class Worker
# https://github.com/svg/svgo
class Svgo < Worker
DISABLE_PLUGINS_OPTION =
option(:disable_plugins, [], Array, 'List of plugins to disable'){ |v| v }
Copy link
Owner

Choose a reason for hiding this comment

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

No need to provide Array as an argument as type will be guessed from [].
Better to use Array(v).map(&:to_s) in the proc to have no problems with single values and arrays with non string values.

@toy
Copy link
Owner

toy commented Nov 9, 2015

Great!
It will be fair also to add enable_plugins option.
And please add entry to CHANGELOG.markdown.

@Firefishy Yep, a bug in rubocop, resolved on master

@tomhughes
Copy link
Contributor Author

Hopefully that should be all your comments addressed now.

Adds :disable_plugins and :enable_plugins options to the svgo worker.
@toy
Copy link
Owner

toy commented Nov 10, 2015

Thanks, merged 8d534db

@toy toy closed this Nov 10, 2015
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.

None yet

3 participants