-
Notifications
You must be signed in to change notification settings - Fork 102
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
Only require power_assert if version > 1.8.7 #71
Conversation
GitHub: #71 Patch by estolfo. Thanks!!!
Thanks for your report!
It isn't needed because we rescue So we don't merge this change.
We don't support 1.8.7 actively because 1.8.7 died. But your change is small. So we've merged it. |
I've released 3.0.1. Please try it. |
Thank @kou Maybe you can change the gemspec so that you officially state that you don't support 1.8.7 ? |
Yes. I know about it. Ruby 1.8.7 died. So "we don't support 1.8.7" is the default. We don't say about it explicitly. |
ah, I see what you're saying. ok, make sense ! On Tue, Aug 5, 2014 at 3:31 PM, Kouhei Sutou notifications@github.com
|
Thanks. :-) |
Hi again @kou assert an_object After upgrading, it seems to be calling == on an_object somewhere. Am I using assert incorrectly ? |
Could you show a sample test code that works on my environment? |
The follwoing reproduces your problem? require "test-unit"
class X < Test::Unit::TestCase
def test_x
assert 10
end
end |
If you scroll down in this test output, you can see that it's trying to compare the response['lastOp'] to something (which is #Object:0x7f8c85b9b4a0) We were using this line just to validate that the value at 'lastOp' was not nil. |
Argument object's `==` may be broken. :< GitHub: #71 Reported by Emily. Thanks!!!
Thanks. eb7af08 will solve your problem. But it is a bug of bson gem. It seems that the latest bson gem fixes the bug. Maybe, bson gem what you used is old. https://github.com/mongodb/bson-ruby/blob/master/lib/bson/timestamp.rb#L51 is needed. |
Great, thanks @kou |
The power_assert gem uses hash syntax that is not valid in Ruby version 1.8.7
I've made two changes: