-
Notifications
You must be signed in to change notification settings - Fork 16
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
Improve delgation from class to default client. Drop support of Ruby 1.9 #10
Improve delgation from class to default client. Drop support of Ruby 1.9 #10
Conversation
describe Centrifuge do | ||
context 'delegation' do | ||
it 'class should delegate methods to default client' do | ||
client_double = double('default_client') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test creates a double, since some methods require args, and writing separate test for each delegation would create a lot of clutter.
Seems like gem is incompatible with ruby < 2 |
@tuned-up thanks! Asked @arrowcircle to review |
I think we can drop support of Ruby 1.9. Its EOL long time ago. |
@arrowcircle I agree - no need to support EOL software, users that need Ruby 1.9 can continue to use current version |
@arrowcircle 1.9.3 removed! |
@tuned-up Thanks! |
It allows to call all public methods from default client using
Centrifuge
class.Also, I found that there is no
timeout=
method, so i remove a delegation.