armitage-rubocop 0.3.0 → 0.4.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
  SHA256:
3
- metadata.gz: 78253dc7efb504e30da59bf13a0bcd652a3eea2cf7615728953d5be96c4fe2ca
4
- data.tar.gz: a849fc78ba2fbf5c978d597cc414bf170eae73331a3279192011d0f78fe28429
3
+ metadata.gz: 359cd3f8b8ad4c91a05625e29ed422ac152e2f07a3ba4c90105d18a4393bd416
4
+ data.tar.gz: 0a8b8321f6a8c0be8fda8529934253e3d687a30e8f625cad937583afeccc6acd
5
5
  SHA512:
6
- metadata.gz: 8aff7d0c011652057f8ef6485fff365026d0b599d27e62213b0e78a2122e1204f90707e519e9d08520afe640095eacbc92202ebda7c31992b4787f3f1f541602
7
- data.tar.gz: ac5691d1c0ca86f99059de8eaa12c600b6d65d1cb3a8ea381a8576d63c6243549fde24c095097c5467e2352e83f75dd7b3f9f08818aec99da463bfbd29237c65
6
+ metadata.gz: 34be74e593fff0768b9358d6dcc9f473c5c56f119d46e2e53e235568b9da1413102bb90f859ef33a8c64c59e0267fc811dbe402c5fb111fd3b04397e78a299fb
7
+ data.tar.gz: 22a214792d0c5f018ea7f43e6eed5dfe342a6cdb48d87dfd3eb7918aff21794f6e95a2b2af755f093a32e534cdae33b1ed64aa1ce200e543af40709699e39fe3
data/Rakefile CHANGED
@@ -85,13 +85,13 @@ namespace :armitage_rubocop do
85
85
  next if RuboCop::ConfigLoader.default_configuration.key?(cop)
86
86
  next if RuboCop::Cop::Cop.registry.contains_cop_matching?([cop])
87
87
  next if cop == 'inherit_mode'
88
- invalid_cops[cop] << "\e[31mBAD COP\e[0m"
88
+ invalid_cops[cop] = "\e[31mBAD COP\e[0m"
89
89
  end
90
90
 
91
91
  # NOTE: validate cop params
92
92
  rubocop_config.keys.each do |cop|
93
93
  next if invalid_cops.key?(cop)
94
- invalid_params = []
94
+ invalid_params = Set.new
95
95
 
96
96
  rubocop_config[cop].each_key do |cop_param|
97
97
  next if RuboCop::Config::COMMON_PARAMS.include?(cop_param)
@@ -100,7 +100,7 @@ namespace :armitage_rubocop do
100
100
  end
101
101
 
102
102
  next if invalid_params.empty?
103
- invalid_cops[cop] = "\e[31mBAD PARAMS\e[0m: #{invalid_params.join(', ')}"
103
+ invalid_cops[cop] = "\e[31mBAD PARAMS\e[0m: #{invalid_params.to_a.join(', ')}"
104
104
  end
105
105
  end
106
106
 
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'armitage-rubocop'
9
- spec.version = '0.3.0'
9
+ spec.version = '0.4.0'
10
10
  spec.license = 'MIT'
11
11
  spec.authors = ['Rustam Ibragimov']
12
12
  spec.email = ['iamdaiver@icloud.com']
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
22
  end
23
23
 
24
- spec.add_dependency 'rubocop', '= 0.57.2'
24
+ spec.add_dependency 'rubocop', '= 0.58.1'
25
25
  spec.add_dependency 'rubocop-rspec', '= 1.27.0'
26
26
 
27
27
  spec.add_development_dependency 'bundler'
@@ -203,9 +203,8 @@ Style/InlineComment:
203
203
  Style/InverseMethods:
204
204
  Enabled: true
205
205
 
206
- # TODO: enalbe when it will be supported by rubocop
207
- # Style/IpAddresses:
208
- # Enabled: false
206
+ Style/IpAddresses:
207
+ Enabled: false
209
208
 
210
209
  Style/Lambda:
211
210
  Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armitage-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-24 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.57.2
19
+ version: 0.58.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.57.2
26
+ version: 0.58.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement