quality 39.0.1 → 40.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: c15cd34862cdf4c6545555c1387450811f1a98c4090455d1be58737ff9982b91
4
- data.tar.gz: 46198bcef8ec3169a1b4ce88364f76e148cb3d5e4dabec90eb0e5d066b990783
3
+ metadata.gz: 5524591d0d172a2e3fb667c073281f0269c5ec8279594017fccc6b348d24d84e
4
+ data.tar.gz: ac05cd2261f1e3845c0429062ce3658966a516a0c97d4e06b0a789ecc96d9929
5
5
  SHA512:
6
- metadata.gz: 0b5f3e37665c0c638d4c612f76546552b7fe642061c616d09a3760d942df9a881d9c8d62d9d7f95f57e6602ae8e89066dfffab84a95497c19752f6533b976187
7
- data.tar.gz: 4bf98c573a6b1caaf1d3af86a665553c42e8ea3235e07d88146d288bdcc874aecb302a90ab1f19c19f083fdeab59e6de337ce26778d1759f86bc76e97adeac09
6
+ metadata.gz: 5990aef52187b2badca09eade2f20a9e9faf29a148d31126d018f25f82231d6732ff65f0f7f590884b3651bfe66e942bf5aa0b1f831a62c1d87a27e0a4b0e7cf
7
+ data.tar.gz: aeca668a36e880a185d11b58a0bad679575799825597a0708af5e78c32eeeae0d9cd3cff604c011dddd3b0cc9a027e255dd0f3c628abc131e6b95bb915d09504
@@ -44,10 +44,11 @@ module Quality
44
44
  end
45
45
 
46
46
  def preprocess_line_for_emacs
47
- if @current_line =~ /^ *(\S*.rb:[0-9]*) *(.*)/
48
- Regexp.last_match[1] + ': ' + Regexp.last_match[2] + "\n"
49
- elsif @current_line =~ /^ *(.*) +(\S*.rb:[0-9]*) *(.*)/
50
- Regexp.last_match[2] + ': ' + Regexp.last_match[1] + "\n"
47
+ case @current_line
48
+ when /^ *(\S*.rb:[0-9]*) *(.*)/
49
+ "#{Regexp.last_match[1]}: #{Regexp.last_match[2]}\n"
50
+ when /^ *(.*) +(\S*.rb:[0-9]*) *(.*)/
51
+ "#{Regexp.last_match[2]}: #{Regexp.last_match[1]}\n"
51
52
  else
52
53
  @current_line
53
54
  end
@@ -4,6 +4,8 @@
4
4
  # https://github.com/xsc/lein-ancient/issues/29
5
5
  # https://github.com/xsc/lein-ancient/releases
6
6
 
7
+ require 'forwardable'
8
+
7
9
  require_relative 'linguist_source_file_globber'
8
10
 
9
11
  module Quality
@@ -3,6 +3,8 @@
3
3
  # Quality is a tool that runs quality checks on Ruby code using cane,
4
4
  # reek, flog, flay and rubocop and makes sure your numbers don't get
5
5
  # any worse over time.
6
+ # :nocov:
6
7
  module Quality
7
- VERSION = '39.0.1'
8
+ VERSION = '40.0.0'
8
9
  end
10
+ # :nocov:
data/quality.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.summary = 'Code quality ratchet for Ruby'
19
19
  spec.homepage = 'https://github.com/apiology/quality'
20
20
  spec.license = 'MIT license'
21
- spec.required_ruby_version = '>= 2.6'
21
+ spec.required_ruby_version = '>= 2.7'
22
22
  spec.files = Dir['CODE_OF_CONDUCT.md', 'LICENSE.txt', 'README.md',
23
23
  '{lib}/quality.rb',
24
24
  '{lib}/quality/**/*.rb',
@@ -67,7 +67,7 @@ Gem::Specification.new do |spec|
67
67
  #
68
68
  # https://github.com/bbatsov/rubocop#installation
69
69
  spec.add_runtime_dependency('mdl')
70
- spec.add_runtime_dependency('rubocop', '~> 1.22.0')
70
+ spec.add_runtime_dependency('rubocop', '~> 1.39.0')
71
71
  # 0.2.0 had a fatal bug
72
72
  # 0.3.0 introduces config files
73
73
  spec.add_runtime_dependency('bigfiles', ['>= 0.3.0', '!= 0.2.0'])
@@ -88,4 +88,7 @@ Gem::Specification.new do |spec|
88
88
 
89
89
  # cane has an unadvertised dependency on json
90
90
  spec.add_runtime_dependency('json')
91
+ spec.metadata = {
92
+ 'rubygems_mfa_required' => 'true',
93
+ }
91
94
  end
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: 39.0.1
4
+ version: 40.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2022-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -372,34 +372,34 @@ dependencies:
372
372
  requirements:
373
373
  - - "~>"
374
374
  - !ruby/object:Gem::Version
375
- version: 1.22.0
375
+ version: 1.39.0
376
376
  type: :runtime
377
377
  prerelease: false
378
378
  version_requirements: !ruby/object:Gem::Requirement
379
379
  requirements:
380
380
  - - "~>"
381
381
  - !ruby/object:Gem::Version
382
- version: 1.22.0
382
+ version: 1.39.0
383
383
  - !ruby/object:Gem::Dependency
384
384
  name: bigfiles
385
385
  requirement: !ruby/object:Gem::Requirement
386
386
  requirements:
387
- - - "!="
388
- - !ruby/object:Gem::Version
389
- version: 0.2.0
390
387
  - - ">="
391
388
  - !ruby/object:Gem::Version
392
389
  version: 0.3.0
390
+ - - "!="
391
+ - !ruby/object:Gem::Version
392
+ version: 0.2.0
393
393
  type: :runtime
394
394
  prerelease: false
395
395
  version_requirements: !ruby/object:Gem::Requirement
396
396
  requirements:
397
- - - "!="
398
- - !ruby/object:Gem::Version
399
- version: 0.2.0
400
397
  - - ">="
401
398
  - !ruby/object:Gem::Version
402
399
  version: 0.3.0
400
+ - - "!="
401
+ - !ruby/object:Gem::Version
402
+ version: 0.2.0
403
403
  - !ruby/object:Gem::Dependency
404
404
  name: brakeman
405
405
  requirement: !ruby/object:Gem::Requirement
@@ -591,7 +591,8 @@ files:
591
591
  homepage: https://github.com/apiology/quality
592
592
  licenses:
593
593
  - MIT license
594
- metadata: {}
594
+ metadata:
595
+ rubygems_mfa_required: 'true'
595
596
  post_install_message:
596
597
  rdoc_options: []
597
598
  require_paths:
@@ -600,14 +601,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
600
601
  requirements:
601
602
  - - ">="
602
603
  - !ruby/object:Gem::Version
603
- version: '2.6'
604
+ version: '2.7'
604
605
  required_rubygems_version: !ruby/object:Gem::Requirement
605
606
  requirements:
606
607
  - - ">="
607
608
  - !ruby/object:Gem::Version
608
609
  version: '0'
609
610
  requirements: []
610
- rubygems_version: 3.0.3.1
611
+ rubygems_version: 3.1.6
611
612
  signing_key:
612
613
  specification_version: 4
613
614
  summary: Code quality ratchet for Ruby