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

Improve delgation from class to default client. Drop support of Ruby 1.9 #10

Merged

Conversation

tuned-up
Copy link
Contributor

@tuned-up tuned-up commented Apr 8, 2017

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.

describe Centrifuge do
context 'delegation' do
it 'class should delegate methods to default client' do
client_double = double('default_client')
Copy link
Contributor Author

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.

@tuned-up
Copy link
Contributor Author

tuned-up commented Apr 8, 2017

Seems like gem is incompatible with ruby < 2
Gem::InstallError: public_suffix requires Ruby version >= 2.0.

@FZambia FZambia requested a review from arrowcircle April 9, 2017 06:13
@FZambia
Copy link
Member

FZambia commented Apr 9, 2017

@tuned-up thanks! Asked @arrowcircle to review

@arrowcircle
Copy link
Contributor

I think we can drop support of Ruby 1.9. Its EOL long time ago.
@FZambia What do You think?

@FZambia
Copy link
Member

FZambia commented Apr 11, 2017

@arrowcircle I agree - no need to support EOL software, users that need Ruby 1.9 can continue to use current version

@arrowcircle
Copy link
Contributor

@tuned-up could you please remove 1.9 ruby from CI?

@FZambia After merge we need to release 1.2 version with notice about Ruby 1.9 support drop.

@arrowcircle arrowcircle changed the title Improve delgation from class to default client Improve delgation from class to default client. Drop support of Ruby 1.9 Apr 11, 2017
@tuned-up
Copy link
Contributor Author

@arrowcircle 1.9.3 removed!

@arrowcircle arrowcircle merged commit eeb9901 into centrifugal:master Apr 11, 2017
@arrowcircle
Copy link
Contributor

@tuned-up 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.

3 participants