lib/mortar/updater.rb in mortar-0.15.29 vs lib/mortar/updater.rb in mortar-0.15.30
- old
+ new
@@ -26,10 +26,14 @@
READ_TIMEOUT = 5
def self.get_newest_version
begin
require "excon"
- gem_data = Mortar::Helpers.json_decode(Excon.get('http://rubygems.org/api/v1/gems/mortar.json', {:connect_timeout => CONNECT_TIMEOUT, :read_timeout => READ_TIMEOUT}).body)
+ gem_data = Mortar::Helpers.json_decode(
+ Excon.get('https://rubygems.org/api/v1/gems/mortar.json',
+ {:connect_timeout => CONNECT_TIMEOUT,
+ :read_timeout => READ_TIMEOUT,
+ :ssl_version => :TLSv1}).body)
gem_data.default = "0.0.0"
gem_data['version']
rescue Exception => e
'0.0.0'
end