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

Use the older way of converting to hash #80

Merged
merged 1 commit into from
Sep 21, 2016
Merged

Use the older way of converting to hash #80

merged 1 commit into from
Sep 21, 2016

Conversation

vivekbisen
Copy link
Contributor

In the latest version of this gem, .to_h was used to convert to Hashes from Array of arrays. This method was implemented in ruby version 2.1 and above. Since this is a legacy gem, we should use a method that goes way back.

This PR fixes the issue for those who use this gem in applications that don't support ruby 2.1 yet. Also, if this gem is installed via brew in MacOS, it breaks coz brew uses ruby 2.0.0

@vivekbisen
Copy link
Contributor Author

@nateberkopec
🚢 🙏

@nateberkopec nateberkopec merged commit 3eb7852 into tj:master Sep 21, 2016
@nateberkopec
Copy link
Collaborator

Pushed in 1.7.3

@chrisarcand
Copy link

Good catch @vivekbisen 👍

asedge pushed a commit to NARKOZ/gitlab that referenced this pull request Apr 25, 2017
The latest version of `terminal-table` is compatible with ruby 2.0 again, see tj/terminal-table#80
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