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

Don't include ellipsis in truncated digest output #183

Merged
merged 1 commit into from
Sep 27, 2018

Conversation

iNecas
Copy link

@iNecas iNecas commented May 11, 2018

Using truncate to limit the length of the digest has the unwanted side
effect of adding an ellipsis when the input is longer than the limit.

Also don't instantiate a new object for every digest.

Inspired by
rails/rails@b9e7c67

@iNecas
Copy link
Author

iNecas commented Sep 13, 2018

@bbonislawski @damianlegawiec as #180 was released, in contains an issue with '...' being included in the hashes. Mind merging this fix and releasing a new version? The latest release is broken when trying to use sha1 hashing mechanism.

Thanks

@iNecas
Copy link
Author

iNecas commented Sep 19, 2018

Just in case you would have a chance to have a look @bbonislawski @damianlegawiec. This is still an issue for us

@VygovskySergey
Copy link

@iNecas Can you rebase against current master branch?

Using truncate to limit the length of the digest has the unwanted side
effect of adding an ellipsis when the input is longer than the limit.

Also don't instantiate a new object for every digest.

Inspired by
rails/rails@b9e7c67
@iNecas
Copy link
Author

iNecas commented Sep 27, 2018

Rebased

@damianlegawiec damianlegawiec merged commit 19e5b65 into spree:master Sep 27, 2018
@iNecas
Copy link
Author

iNecas commented Oct 1, 2018

Thanks for merge, Any chance to get a new release with this change?

@damianlegawiec
Copy link
Member

@iNecas will do it today - sorry for the long delay - we're polishing another Spree release and that takes some time as you can imagine :)

@damianlegawiec
Copy link
Member

@iNecas 1.3.2 was pushed to RubyGems :)

@iNecas
Copy link
Author

iNecas commented Oct 1, 2018

Awesome. Thanks @damianlegawiec!

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