codeclimate 0.70.6 → 0.71.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 409a9848d3112f05fee637754dfe391b8dd4db76
4
- data.tar.gz: 25ac4e42a0dc4f8b4cdd9f9ff8bece1533674693
3
+ metadata.gz: 6554cbb3da0217746ddde0024b4b5f1b5976ab43
4
+ data.tar.gz: 12b304175c0c47e1ecd25910092e78fec8e90013
5
5
  SHA512:
6
- metadata.gz: 17020e645131ca2c7a6fadf303e21d7b7e647d4e3e606cc84d5a193a42c36b11e0b2ee8f77df9375521fa5cb40c16d54d3c2cd1f5e120b4fcec998c582f75cbd
7
- data.tar.gz: c295d178f931273258e76c54ce13fdf11a0375af7b0e4eade022ad0a91e9ba6db277d90d0e629c82c160e62f83729263e32825d1c9fd0830a9610ef977eb0c65
6
+ metadata.gz: bad5a4d87f017e5821f51ac623f7f4becfcee23c31bdfedae98a91a9a67a5d6800219e252eec6147eb9b764670579119379c386e7bbe3baf166849e167f7bf4a
7
+ data.tar.gz: 6aa63221685842b3841fd48c39ea3a1eefd4f1eccf74e451b05d77812e4eabb6eda6d1f560a5e8795711fe6b195b22c25083c03969ace925e70b67dff4f48b41
@@ -165,10 +165,7 @@ rubocop:
165
165
  rubocop-0-49: codeclimate/codeclimate-rubocop:rubocop-0-49
166
166
  rubocop-0-50: codeclimate/codeclimate-rubocop:rubocop-0-50
167
167
  rubocop-0-51: codeclimate/codeclimate-rubocop:rubocop-0-51
168
- description: A Ruby static code analyzer, based on the community Ruby style guide.
169
- rubocop-v35:
170
- channels:
171
- stable: codeclimate/codeclimate-rubocop:v35
168
+ rubocop-0-52: codeclimate/codeclimate-rubocop:rubocop-0-52
172
169
  description: A Ruby static code analyzer, based on the community Ruby style guide.
173
170
  rubymotion:
174
171
  channels:
@@ -58,7 +58,9 @@ module CC
58
58
  ensure_external!(url) unless allow_internal_ips?
59
59
 
60
60
  uri = URI.parse(url)
61
- resp = Net::HTTP.get_response(uri)
61
+ http = Net::HTTP.new(uri.host, uri.port)
62
+ http.use_ssl = uri.scheme == "https"
63
+ resp = http.get(uri)
62
64
  if resp.code == "200"
63
65
  write_file(target_path, resp.body)
64
66
  say("Wrote #{url} to #{target_path}")
@@ -66,11 +66,13 @@ module CC
66
66
  uri = URI.parse(ENV.fetch("CODECLIMATE_VERSIONS_URL", DEFAULT_VERSIONS_URL))
67
67
  uri.query = { version: version, uid: global_config.uuid }.to_query
68
68
 
69
- request = Net::HTTP::Get.new(uri, "User-Agent" => user_agent)
69
+ http = Net::HTTP.new(uri.host, uri.port)
70
+ http.open_timeout = 5
71
+ http.read_timeout = 5
72
+ http.ssl_timeout = 5
73
+ http.use_ssl = uri.scheme == "https"
70
74
 
71
- Net::HTTP.start(uri.host, uri.port, open_timeout: 5, read_timeout: 5, ssl_timeout: 5, use_ssl: uri.scheme == "https") do |http|
72
- http.request(request)
73
- end
75
+ http.get(uri, "User-Agent" => user_agent)
74
76
  end
75
77
  end
76
78
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.6
4
+ version: 0.71.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2018-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport