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 eq instead of eql #17

Merged
merged 1 commit into from
May 23, 2016
Merged

Conversation

okkez
Copy link
Member

@okkez okkez commented May 23, 2016

Because eq calls Object#==, eql calls Object#eql?.
When Fluentd v0.14.0.rc.1, Fluent::Engine.now returns
Fluent::EventTime instance instead of Time instance.

Fluent::EventTime provides only Fluent::EventTime#==.
We should use eq to check equality of Fluent::EventTime.

Because `eq` calls `Object#==`, `eql` calls `Object#eql?`.
When Fluentd v0.14.0.rc.1, `Fluent::Engine.now` returns
`Fluent::EventTime` instance instead of `Time` instance.

`Fluent::EventTime` provides only `Fluent::EventTime#==`.
We should use `eq` to check equality of `Fluent::EventTime`.
@coveralls
Copy link

coveralls commented May 23, 2016

Coverage Status

Coverage remained the same at 92.982% when pulling 5f05525 on okkez:use-eq into a00f02d on sonots:master.

@sonots
Copy link
Collaborator

sonots commented May 23, 2016

Thanks, and I will drop 1.9.3 and 2.0.0 supports > travis

@sonots sonots merged commit 49d329a into fluent-plugins-nursery:master May 23, 2016
@okkez okkez deleted the use-eq branch May 23, 2016 08:26
@okkez
Copy link
Member Author

okkez commented May 23, 2016

Thanks!

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