quality 37.1.1 → 38.0.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: 6e394e347040933d69847c4582fc43a3f15ab5325fb0c906da179a3ef04dd978
4
- data.tar.gz: 14e4a38f238945557a8d1b8e164a03f67e09a96ac3453886fff14746f75312f0
3
+ metadata.gz: 313add6992c8a1f267328a1806dd28365c4d1a9f5c6bd1c8647cab8ea0dcc13f
4
+ data.tar.gz: 239a065dbee555879d31febe98f182351899bbc4d60546f842eed7228a076d6d
5
5
  SHA512:
6
- metadata.gz: 32e74ae8aa22d4b8a0864f7ea7a6abfd213ccb64ec3c73c716706d95f053adf024638732344b786023a784b75e88a7ea7420cce549b4602ed8e5f0c209f01af4
7
- data.tar.gz: 461e2d650b35393e64376e9f16f95704ef82fac9bd2f34caa5e6fab82719585327e184e753865edff79fb570ab044b807a33fa132cc7911c05fcd4242de28159
6
+ metadata.gz: de7208c080d5b76b4315d1cb12ad1c8cb231c8a3e41de3fb4a969ae3111a90d69190d23bcdcf7a6f29eace8fb50b2dbcfb412bd93ba97b85ae3600bcb4a78143
7
+ data.tar.gz: f1e306ac0000e7687f098b8e30dfbc82fa58edccb040904ae979573c261c20068a2454a8e7bb62344d534de9a8aeb2374879e6db2df51ba2238d2c92156c9703
data/README.md CHANGED
@@ -149,7 +149,9 @@ updates.
149
149
 
150
150
  This includes RuboCop upgrades - the quality gem locks in a specific
151
151
  minor version of RuboCop to avoid your metrics being bumped and
152
- breaking your build.
152
+ breaking your build. This lock affects both the Docker-based quality
153
+ gem (helping to ensure build stability for floating major versions) as
154
+ well as the gem when included directly in your project's gems.
153
155
 
154
156
  Expect your build to break on major upgrades if you use RuboCop.
155
157
 
@@ -23,9 +23,7 @@ module Quality
23
23
 
24
24
  def process_file(file, &count_violations_on_line)
25
25
  out = ''
26
- while (@current_line = file.gets)
27
- out += process_line(&count_violations_on_line)
28
- end
26
+ out += process_line(&count_violations_on_line) while (@current_line = file.gets)
29
27
  out
30
28
  end
31
29
 
@@ -110,9 +110,7 @@ module Quality
110
110
  end
111
111
 
112
112
  def report_violations(existing)
113
- if existing != MAX_VIOLATIONS
114
- @logger.puts "Existing violations: #{existing}"
115
- end
113
+ @logger.puts "Existing violations: #{existing}" if existing != MAX_VIOLATIONS
116
114
  @logger.puts "Found #{@violations} #{@cmd} violations"
117
115
  end
118
116
 
@@ -8,9 +8,7 @@ module Quality
8
8
  class Bigfiles < Tool
9
9
  def bigfiles_args
10
10
  args = ['--glob', "'#{source_and_doc_files_glob}'"]
11
- unless source_files_exclude_glob == '{}'
12
- args << ['--exclude-glob', "'#{source_files_exclude_glob}'"]
13
- end
11
+ args << ['--exclude-glob', "'#{source_files_exclude_glob}'"] unless source_files_exclude_glob == '{}'
14
12
  args.join(' ')
15
13
  end
16
14
 
@@ -20,9 +20,7 @@ module Quality
20
20
  args = [
21
21
  "-f '#{ruby_files_glob}'",
22
22
  ]
23
- unless exclude_files.nil? || exclude_files.empty?
24
- args += cane_exclude_args
25
- end
23
+ args += cane_exclude_args unless exclude_files.nil? || exclude_files.empty?
26
24
  args.join(' ')
27
25
  end
28
26
 
@@ -7,9 +7,7 @@ module Quality
7
7
  def punchlist_args
8
8
  glob = "--glob '#{source_and_doc_files_glob}'"
9
9
  regexp = " --regexp '#{punchlist_regexp}'" if punchlist_regexp
10
- unless source_files_exclude_glob == '{}'
11
- exclude = " --exclude-glob '#{source_files_exclude_glob}'"
12
- end
10
+ exclude = " --exclude-glob '#{source_files_exclude_glob}'" unless source_files_exclude_glob == '{}'
13
11
 
14
12
  args = glob
15
13
  args += regexp if regexp
@@ -4,5 +4,5 @@
4
4
  # reek, flog, flay and rubocop and makes sure your numbers don't get
5
5
  # any worse over time.
6
6
  module Quality
7
- VERSION = '37.1.1'
7
+ VERSION = '38.0.0'
8
8
  end
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  #
43
43
  # https://github.com/bbatsov/rubocop#installation
44
44
  s.add_runtime_dependency('mdl')
45
- s.add_runtime_dependency('rubocop', '~> 0.78.0')
45
+ s.add_runtime_dependency('rubocop', '~> 0.92.0')
46
46
  # 0.2.0 had a fatal bug
47
47
  s.add_runtime_dependency('bigfiles', ['>= 0.1', '!= 0.2.0'])
48
48
  s.add_runtime_dependency('brakeman')
@@ -52,13 +52,8 @@ Gem::Specification.new do |s|
52
52
  s.add_runtime_dependency('rubocop-minitest')
53
53
  s.add_runtime_dependency('rubocop-rake')
54
54
  # 1.19.0 was a RuboCop 0.51.0 compatibility release
55
+ s.add_runtime_dependency('faraday', ['~>1'])
55
56
  s.add_runtime_dependency('rubocop-rspec', ['>=1.19.0'])
56
- # not directly required - this is to workaround this issue:
57
- # https://github.com/octokit/octokit.rb/issues/1177
58
- #
59
- # This causes:
60
- # "uninitialized constant Faraday::Error::ClientError (NameError)"
61
- s.add_runtime_dependency('faraday', ['<1'])
62
57
 
63
58
  # need above 3.2.2 to support Ruby 2.0 syntax
64
59
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 37.1.1
4
+ version: 38.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-05 00:00:00.000000000 Z
11
+ date: 2020-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: 0.78.0
151
+ version: 0.92.0
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 0.78.0
158
+ version: 0.92.0
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: bigfiles
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -261,33 +261,33 @@ dependencies:
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  - !ruby/object:Gem::Dependency
264
- name: rubocop-rspec
264
+ name: faraday
265
265
  requirement: !ruby/object:Gem::Requirement
266
266
  requirements:
267
- - - ">="
267
+ - - "~>"
268
268
  - !ruby/object:Gem::Version
269
- version: 1.19.0
269
+ version: '1'
270
270
  type: :runtime
271
271
  prerelease: false
272
272
  version_requirements: !ruby/object:Gem::Requirement
273
273
  requirements:
274
- - - ">="
274
+ - - "~>"
275
275
  - !ruby/object:Gem::Version
276
- version: 1.19.0
276
+ version: '1'
277
277
  - !ruby/object:Gem::Dependency
278
- name: faraday
278
+ name: rubocop-rspec
279
279
  requirement: !ruby/object:Gem::Requirement
280
280
  requirements:
281
- - - "<"
281
+ - - ">="
282
282
  - !ruby/object:Gem::Version
283
- version: '1'
283
+ version: 1.19.0
284
284
  type: :runtime
285
285
  prerelease: false
286
286
  version_requirements: !ruby/object:Gem::Requirement
287
287
  requirements:
288
- - - "<"
288
+ - - ">="
289
289
  - !ruby/object:Gem::Version
290
- version: '1'
290
+ version: 1.19.0
291
291
  - !ruby/object:Gem::Dependency
292
292
  name: ruby_parser
293
293
  requirement: !ruby/object:Gem::Requirement
@@ -507,7 +507,7 @@ homepage: http://github.com/apiology/quality
507
507
  licenses:
508
508
  - MIT
509
509
  metadata: {}
510
- post_install_message:
510
+ post_install_message:
511
511
  rdoc_options: []
512
512
  require_paths:
513
513
  - lib
@@ -523,7 +523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
523
523
  version: '0'
524
524
  requirements: []
525
525
  rubygems_version: 3.0.3
526
- signing_key:
526
+ signing_key:
527
527
  specification_version: 4
528
528
  summary: Code quality tools for Ruby
529
529
  test_files: []