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

Fixed use of unqualified Time class #58

Merged
merged 1 commit into from Nov 17, 2020
Merged

Conversation

paul
Copy link
Owner

@paul paul commented Nov 11, 2020

It seems if you have another progress bar gem installed[1], the also use
the ProgressBar namespace and declare a Time class within that
namespace. If I use the unqualified Time instead of ::Time, then
that other one gets picked up and doesn't work.

Fixes #57

1: https://github.com/jfelchner/ruby-progressbar/blob/master/lib/ruby-progressbar/time.rb

It seems if you have another progress bar gem installed[1], the also use
the ProgressBar namespace and declare a `Time` class within that
namespace. If I use the unqualified `Time` instead of `::Time`, then
that other one gets picked up and doesn't work.

1: https://github.com/jfelchner/ruby-progressbar/blob/master/lib/ruby-progressbar/time.rb
@harryloewen
Copy link

Thanks @paul 💯

@paul paul merged commit c1b47c7 into master Nov 17, 2020
@paul paul deleted the chore/fix-time-namespace branch November 17, 2020 19:47
@paul
Copy link
Owner Author

paul commented Nov 17, 2020

Released 1.3.3

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.

undefined method `at' for ProgressBar::Time:Class
3 participants