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

Object#timeout is deprecated, use Timeout.timeout instead. #58

Open
bharathnalla opened this issue Dec 6, 2016 · 1 comment
Open

Object#timeout is deprecated, use Timeout.timeout instead. #58

bharathnalla opened this issue Dec 6, 2016 · 1 comment

Comments

@bharathnalla
Copy link

This warning is thrown by dependency httpclient 2.6.0.1 when using rally_api 1.2.1 along with windows ruby version 2.3.1p112.

This issue seems to be fixed in the latest release version 2.8.2.4 here. can we use the latest release as dependency if it is alright?
However i donot see any issue with ruby version 2.1.7

Warnings from console:
Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:747:in connect': Object#timeout is deprecated, use Timeout.timeout instead. Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in query': Object#timeout is deprecated, use Timeout.timeout instead.
Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in query': Object#timeout is deprecated, use Timeout.timeout instead. Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in query': Object#timeout is deprecated, use Timeout.timeout instead.
Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in query': Object#timeout is deprecated, use Timeout.timeout instead. Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in query': Object#timeout is deprecated, use Timeout.timeout instead.
Ruby23-x64/lib/ruby/gems/2.3.0/gems/httpclient-2.6.0.1/lib/httpclient/session.rb:617:in `query': Object#timeout is deprecated, use Timeout.timeout instead.

@jessejensen
Copy link

It looks like they are just forcing httpclient 2.6 because it was a quick fix for a cert validation issue. Maybe just change it to:
s.add_dependency('httpclient', '>=2.6.0.1')

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

No branches or pull requests

2 participants