Kong / unirest-ruby

Unirest in Ruby: Simplified, lightweight HTTP client library.
http://unirest.io/ruby
MIT License
364 stars 81 forks source link

Update rest-client version to support >2.0.0 #52

Open Zarthus opened 6 years ago

Zarthus commented 6 years ago

Versions of Ubuntu 18.04 will run into the following issue because OpenSSL is too new: https://github.com/rest-client/rest-client/pull/573

/ruby/2.5.0/gems/rest-client-1.8.0/lib/restclient/request.rb:163:in `fetch': key not found: :ciphers (KeyError)
stakach commented 6 years ago

I've noticed this too on 18.04, when performing a HTTP request... Did you find a workaround @Zarthus I'm just playing around with a lib that uses rest-client so haven't dived too deep into the issue

Zarthus commented 6 years ago

@stakach My "workaround" was to stop depending on a library I didn't need.

I changed to rest-client because my use was relatively basic. https://github.com/Zarthus/lobby-utility-bot/commit/c95ed19a9e39a980f5baf071e8895ffd14cc1f7b

white-gecko commented 5 years ago

I had the same issue on debian, but updating rest-client to >= 2.0.1 resolved the issue because of: https://github.com/rest-client/rest-client/pull/573