codeclimate 0.53.0 → 0.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8670c3a5508dcd9868790f63702f25a2bff79ee6
4
- data.tar.gz: 5f5837ffb7b352a3eb22e5a6bf2387851770a04b
3
+ metadata.gz: b941108c138ec172cf1ebacb9c35f06c8dad5f81
4
+ data.tar.gz: '09e2c7927b8ecbeca97e3faa1f03485fcc032339'
5
5
  SHA512:
6
- metadata.gz: 1a7bd69ebf91c8d13a07514c672d6ca57c3db70487f64c3835b8d401647dfe18322330ca08e4f4c8b43b5094b24feff9e046d81f6363c935d5503382a52003dd
7
- data.tar.gz: bc155b1de0bdf5912d198415b0f28047df84c25516fd09749746e3b5e135ea2d03742a86b7191f7e443866ada3222e26861f90f19ca987619c9a716062e6b148
6
+ metadata.gz: f5aa58b0f34582c5cf768ef12a4335cf3e9503df5c7da129d0f50a8c680970a5c7828d58936c78018744739e04456ee09672463d927b3854cbb23545d5ee71c5
7
+ data.tar.gz: 0b288ccebef70dcb5ca1246affcdbdf4a2a2467b84e2c53053cab3701d378e623ffc876f51adef73e8e7e4a2b565a35fe39ba093dca2dc9853b8630e06065d2d
@@ -68,7 +68,10 @@ module CC
68
68
  end
69
69
 
70
70
  def engine_eligible?(engine)
71
- !engine["community"] && engine["enable_regexps"].present? && files_exist?(engine)
71
+ engine["channels"].keys.any? { |channel| channel == "stable" } &&
72
+ !engine["community"] &&
73
+ engine["enable_regexps"].present? &&
74
+ files_exist?(engine)
72
75
  end
73
76
 
74
77
  def code_climate_check?(engine)
@@ -23,11 +23,14 @@ module CC
23
23
  private
24
24
 
25
25
  def show_help(command_name)
26
- command = Command[command_name]
27
- say "Usage: codeclimate #{command.synopsis}\n"
28
- say "\n"
29
- say "#{command.help}\n"
30
- say "\n\n"
26
+ if (command = Command[command_name])
27
+ say "Usage: codeclimate #{command.synopsis}\n"
28
+ say "\n"
29
+ say "#{command.help}\n"
30
+ say "\n\n"
31
+ else
32
+ say "Unknown command: #{command_name}"
33
+ end
31
34
  end
32
35
 
33
36
  def show_help_summary
@@ -45,7 +45,7 @@ module CC
45
45
  end
46
46
 
47
47
  def command_arguments
48
- @args[1..-1]
48
+ Array(@args[1..-1])
49
49
  end
50
50
 
51
51
  def command
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate