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 the debug option to thumbor urls #21

Merged
merged 2 commits into from
Jan 29, 2019
Merged

Conversation

okor
Copy link
Member

@okor okor commented Apr 7, 2016

It's sometimes super helpful to have the debug option, when developing application level cropping logic. So I suggest adding it here.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 98.901% when pulling 7768352 on okor:master into 241f126 on thumbor:master.

@okor
Copy link
Member Author

okor commented Apr 15, 2016

That failure https://travis-ci.org/thumbor/ruby-thumbor/builds/121544114 is only in the Ruby head build, related to installing ffi. So that has nothing to do with this PR.

@guilhermef
Copy link
Member

@okor, now it's passing, but you have to create a test for the debug url

@@ -132,6 +132,10 @@ def url_for(options, include_hash = true)

url_parts = Array.new

if options[:debug]
url_parts.push('debug')
Copy link
Member

Choose a reason for hiding this comment

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

This can be written as:

url_parts.push('debug') if options[:debug]

@okor
Copy link
Member Author

okor commented Apr 15, 2016

@guilhermef my bad 😊 will do

@guilhermef guilhermef merged commit b32312f into thumbor:master Jan 29, 2019
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