codeclimate 0.60.1 → 0.61.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/analyzer/engines_runner.rb +0 -1
- data/lib/cc/cli/analyze.rb +0 -3
- data/lib/cc/cli/version_checker.rb +4 -15
- 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: 149011b2425fdffb832f83df49f5c1386da31c21
|
|
4
|
+
data.tar.gz: bd9d3b38a7bf247ad7c30abde5c85c05f28da9a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f38dda1499408d0c8af93e11667b96c7180c158169ed983c488f0708ea3b1acb8c837f0a959640c2a0d8827a5bf11386526eaf53839113a7899eb513ce225e93
|
|
7
|
+
data.tar.gz: 1971d05987100c532a94eaafde2adf15e1173a0ee6bcf19d1f1039d65c5a4cf61b00fbf8281de051689beab3a680c2e89e5828df46e21aa8f92e686ff46098a6
|
|
@@ -3,7 +3,6 @@ require "securerandom"
|
|
|
3
3
|
module CC
|
|
4
4
|
module Analyzer
|
|
5
5
|
class EnginesRunner
|
|
6
|
-
InvalidEngineName = Class.new(StandardError)
|
|
7
6
|
NoEnabledEngines = Class.new(StandardError)
|
|
8
7
|
|
|
9
8
|
def initialize(registry, formatter, source_dir, config, requested_paths = [], container_label = nil)
|
data/lib/cc/cli/analyze.rb
CHANGED
|
@@ -30,9 +30,6 @@ module CC
|
|
|
30
30
|
runner = EnginesRunner.new(registry, formatter, source_dir, config, path_options)
|
|
31
31
|
runner.run
|
|
32
32
|
end
|
|
33
|
-
|
|
34
|
-
rescue EnginesRunner::InvalidEngineName => ex
|
|
35
|
-
fatal(ex.message)
|
|
36
33
|
rescue EnginesRunner::NoEnabledEngines
|
|
37
34
|
fatal("No enabled engines. Add some to your .codeclimate.yml file!")
|
|
38
35
|
end
|
|
@@ -10,7 +10,7 @@ module CC
|
|
|
10
10
|
DEFAULT_VERSIONS_URL = "https://versions.codeclimate.com".freeze
|
|
11
11
|
|
|
12
12
|
def check
|
|
13
|
-
return unless global_config.check_version?
|
|
13
|
+
return unless global_config.check_version? && version_check_is_due?
|
|
14
14
|
|
|
15
15
|
print_new_version_message if outdated?
|
|
16
16
|
|
|
@@ -26,19 +26,11 @@ module CC
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def outdated?
|
|
29
|
-
|
|
30
|
-
api_response["outdated"] == true
|
|
31
|
-
else
|
|
32
|
-
global_cache.outdated?
|
|
33
|
-
end
|
|
29
|
+
api_response["outdated"]
|
|
34
30
|
end
|
|
35
31
|
|
|
36
32
|
def latest_version
|
|
37
|
-
|
|
38
|
-
api_response["latest"]
|
|
39
|
-
else
|
|
40
|
-
global_cache.latest_version
|
|
41
|
-
end
|
|
33
|
+
api_response["latest"]
|
|
42
34
|
end
|
|
43
35
|
|
|
44
36
|
def print_new_version_message
|
|
@@ -51,11 +43,8 @@ module CC
|
|
|
51
43
|
cache! JSON.parse(api_response_body)
|
|
52
44
|
rescue JSON::ParserError => error
|
|
53
45
|
CLI.debug(error)
|
|
54
|
-
# We don't know so use cached values or pretend all is peachy. We'll
|
|
55
|
-
# try again next time.
|
|
56
46
|
{
|
|
57
|
-
"
|
|
58
|
-
"outdated" => global_cache.outdated || false,
|
|
47
|
+
"outdated" => false,
|
|
59
48
|
}
|
|
60
49
|
end
|
|
61
50
|
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.61.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-04-
|
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|