codeclimate 0.70.6 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/engines.yml +1 -4
- data/lib/cc/cli/prepare.rb +3 -1
- data/lib/cc/cli/version_checker.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6554cbb3da0217746ddde0024b4b5f1b5976ab43
|
|
4
|
+
data.tar.gz: 12b304175c0c47e1ecd25910092e78fec8e90013
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bad5a4d87f017e5821f51ac623f7f4becfcee23c31bdfedae98a91a9a67a5d6800219e252eec6147eb9b764670579119379c386e7bbe3baf166849e167f7bf4a
|
|
7
|
+
data.tar.gz: 6aa63221685842b3841fd48c39ea3a1eefd4f1eccf74e451b05d77812e4eabb6eda6d1f560a5e8795711fe6b195b22c25083c03969ace925e70b67dff4f48b41
|
data/config/engines.yml
CHANGED
|
@@ -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
|
-
|
|
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:
|
data/lib/cc/cli/prepare.rb
CHANGED
|
@@ -58,7 +58,9 @@ module CC
|
|
|
58
58
|
ensure_external!(url) unless allow_internal_ips?
|
|
59
59
|
|
|
60
60
|
uri = URI.parse(url)
|
|
61
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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:
|
|
11
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|