codeclimate 0.41.0 → 0.42.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/lib/cc/cli.rb +1 -1
- data/lib/cc/cli/help.rb +1 -1
- data/lib/cc/cli/{dependencies.rb → prepare.rb} +6 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97b8703152c1d5f176ab6bca9be91372c916b6e9
|
4
|
+
data.tar.gz: 3a39cc2ac4d058872de43517885a1f5afd572028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4348dc046d73642b2140078a4d359bbd400336ab7072954c307208e00c46189384d959db591f8b139d85da2da8495909313d17dfaadd5b3c6b89bfa6b677c358
|
7
|
+
data.tar.gz: a638fe4d722976ebce93e082d6a0c7149498b039035af467710ecbea34a4c1eb7aca07aa048557b1143f0927993fea7126c5d285029b54ab1654d23f00960023
|
data/lib/cc/cli.rb
CHANGED
@@ -11,9 +11,9 @@ module CC
|
|
11
11
|
autoload :Command, "cc/cli/command"
|
12
12
|
autoload :Console, "cc/cli/console"
|
13
13
|
autoload :Engines, "cc/cli/engines"
|
14
|
-
autoload :Dependencies, "cc/cli/dependencies"
|
15
14
|
autoload :Help, "cc/cli/help"
|
16
15
|
autoload :Init, "cc/cli/init"
|
16
|
+
autoload :Prepare, "cc/cli/prepare"
|
17
17
|
autoload :Runner, "cc/cli/runner"
|
18
18
|
autoload :Test, "cc/cli/test"
|
19
19
|
autoload :ValidateConfig, "cc/cli/validate_config"
|
data/lib/cc/cli/help.rb
CHANGED
@@ -9,7 +9,7 @@ require "uri"
|
|
9
9
|
|
10
10
|
module CC
|
11
11
|
module CLI
|
12
|
-
class
|
12
|
+
class Prepare < Command
|
13
13
|
InternalHostError = Class.new(StandardError)
|
14
14
|
FetchError = Class.new(StandardError)
|
15
15
|
|
@@ -24,10 +24,10 @@ module CC
|
|
24
24
|
|
25
25
|
def run
|
26
26
|
require_codeclimate_yml
|
27
|
-
fatal("No
|
27
|
+
fatal("No fetches configured") unless fetches.present?
|
28
28
|
|
29
29
|
::CC::Resolv.with_fixed_dns { fetch_all }
|
30
|
-
success("All
|
30
|
+
success("All fetches fetched")
|
31
31
|
rescue FetchError, InternalHostError => ex
|
32
32
|
fatal(ex.message)
|
33
33
|
end
|
@@ -38,8 +38,8 @@ module CC
|
|
38
38
|
@args.include?("--allow-internal-ips")
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
42
|
-
@
|
41
|
+
def fetches
|
42
|
+
@fetches ||= config[:prepare] && config[:prepare].fetch
|
43
43
|
end
|
44
44
|
|
45
45
|
def config
|
@@ -47,7 +47,7 @@ module CC
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def fetch_all
|
50
|
-
|
50
|
+
fetches.each do |entry|
|
51
51
|
fetch(entry.url, entry.path)
|
52
52
|
end
|
53
53
|
end
|
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.42.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: 2016-11-
|
11
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.11.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.
|
60
|
+
version: 0.11.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: highline
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,7 +212,6 @@ files:
|
|
212
212
|
- lib/cc/cli/config.rb
|
213
213
|
- lib/cc/cli/config_generator.rb
|
214
214
|
- lib/cc/cli/console.rb
|
215
|
-
- lib/cc/cli/dependencies.rb
|
216
215
|
- lib/cc/cli/engines.rb
|
217
216
|
- lib/cc/cli/engines/disable.rb
|
218
217
|
- lib/cc/cli/engines/enable.rb
|
@@ -222,6 +221,7 @@ files:
|
|
222
221
|
- lib/cc/cli/engines/remove.rb
|
223
222
|
- lib/cc/cli/help.rb
|
224
223
|
- lib/cc/cli/init.rb
|
224
|
+
- lib/cc/cli/prepare.rb
|
225
225
|
- lib/cc/cli/runner.rb
|
226
226
|
- lib/cc/cli/test.rb
|
227
227
|
- lib/cc/cli/upgrade_config_generator.rb
|