rubocop-rubomatic 1.5.1.pre.rc.1 → 1.6.0.rc.pre.1

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
  SHA256:
3
- metadata.gz: 3476e91f7f42f7f8fcc9e685d019f82cfa85a131e0fdf5b1847483a6eca58aba
4
- data.tar.gz: 6f47cd506e567f6dd1278fd9a0da7d3e31bcfcbbe94069b3e3ebe452bc2d0b3b
3
+ metadata.gz: 0c2428f17fa3a09ef250e03a6561c4de254ee61052b956c78c917d56fa2b85a6
4
+ data.tar.gz: 193c58c2cd0c1ca4b06f193b093440adb497353a33ab4fa61ba0402f6f879487
5
5
  SHA512:
6
- metadata.gz: 7a3242e14c89aabe6ff3708f5616917e5db7ecef2e61e54c10425bcf1f8c088e9ba6efed5b2d548ca2f6d59277257e7f2d693e0257615423b86d14cdd04c8a8b
7
- data.tar.gz: 260388f23e545c6b77834f4080c6f0ebf74d55e5b8df1bc8a76317e514abc658a4eaeb12eceb4e9a14acacb4792737d1f48fe72436c202bf74083018b9a53ef3
6
+ metadata.gz: 983db2f236ae6127ea6fadbaba7651b46576f48489ad1c992adb87b53bd13a5f7d75a26e37e4a19b2b287ce6d1ab1bccb67be657cdd50f5da619adf70957c40c
7
+ data.tar.gz: 4c387073a9cbd65b674f183792261ff50710f38c2782fbd92d42f5734cc9085212be1220c89c35ba971cd6ee0c2a5694e712cee7691225cfe4861a062f5ed1be
data/CHANGELOG.adoc CHANGED
@@ -1,3 +1,9 @@
1
+ == 1.6.0 (2025-06-12)
2
+
3
+ * Upgrade to ``ruobcop 1.76.1``
4
+ ** This includes the change from ``require:`` to ``plugins:``.
5
+ While ``require:`` will still work, there will be a deprecation warning
6
+
1
7
  == 1.5.1 (2024-10-22)
2
8
 
3
9
  === Misc
@@ -1,4 +1,4 @@
1
- require: rubocop-performance
1
+ plugins: rubocop-performance
2
2
 
3
3
  Performance:
4
4
  Enabled: false
@@ -1,4 +1,4 @@
1
- require: rubocop-rubomatic
1
+ plugins: rubocop-rubomatic
2
2
 
3
3
  inherit_from:
4
4
  - ./layout.yml
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'lint_roller'
4
+
5
+ module RuboCop
6
+ module Rubomatic
7
+ # A plugin that integrates RuboCop Performance with RuboCop's plugin system.
8
+ class Plugin < LintRoller::Plugin
9
+ # :nodoc:
10
+ def about
11
+ LintRoller::About.new(
12
+ name: 'rubocop-rubomatic',
13
+ version: VERSION.to_s,
14
+ homepage: 'https://github.com/BrandsInsurance/rubocop-rubomatic/',
15
+ description: 'A collection of RuboCop cops to check for performance optimizations in Ruby code.'
16
+ )
17
+ end
18
+
19
+ # :nodoc:
20
+ def supported?(context)
21
+ context.engine == :rubocop
22
+ end
23
+
24
+ # :nodoc:
25
+ def rules(_context)
26
+ LintRoller::Rules.new(
27
+ type: :path,
28
+ config_format: :rubocop,
29
+ value: Pathname.new(__dir__).join('../../../config/default.yml')
30
+ )
31
+ end
32
+ end
33
+ end
34
+ end
@@ -2,6 +2,20 @@
2
2
 
3
3
  module RuboCop
4
4
  module Rubomatic
5
- VERSION = '1.5.1-rc.1'
5
+ module VERSION
6
+ MAJOR = 1
7
+ MINOR = 6
8
+ TINY = 0
9
+
10
+ # Set PRE to nil unless it's a pre-release (beta, rc, etc.)
11
+ PRE = 'rc.pre.1'
12
+
13
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.').freeze
14
+
15
+ # @return [String]
16
+ def self.to_s
17
+ STRING
18
+ end
19
+ end
6
20
  end
7
21
  end
@@ -4,9 +4,7 @@ require 'rubocop'
4
4
 
5
5
  require_relative 'rubocop/cop/rubomatic/generator'
6
6
  require_relative 'rubocop/rubomatic'
7
- require_relative 'rubocop/rubomatic/inject'
7
+ require_relative 'rubocop/rubomatic/plugin'
8
8
  require_relative 'rubocop/rubomatic/version'
9
9
 
10
- RuboCop::Rubomatic::Inject.defaults!
11
-
12
10
  require_relative 'rubocop/cop/rubomatic_cops'
metadata CHANGED
@@ -1,55 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rubomatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1.pre.rc.1
4
+ version: 1.6.0.rc.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-22 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lint_roller
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rubocop
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 1.65.0
33
+ version: 1.76.0
20
34
  - - ">="
21
35
  - !ruby/object:Gem::Version
22
- version: 1.65.1
36
+ version: 1.76.1
23
37
  type: :runtime
24
38
  prerelease: false
25
39
  version_requirements: !ruby/object:Gem::Requirement
26
40
  requirements:
27
41
  - - "~>"
28
42
  - !ruby/object:Gem::Version
29
- version: 1.65.0
43
+ version: 1.76.0
30
44
  - - ">="
31
45
  - !ruby/object:Gem::Version
32
- version: 1.65.1
46
+ version: 1.76.1
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: rubocop-performance
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: 1.22.0
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.22.1
53
+ version: 1.25.0
43
54
  type: :runtime
44
55
  prerelease: false
45
56
  version_requirements: !ruby/object:Gem::Requirement
46
57
  requirements:
47
58
  - - "~>"
48
59
  - !ruby/object:Gem::Version
49
- version: 1.22.0
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.22.1
60
+ version: 1.25.0
53
61
  description:
54
62
  email:
55
63
  - documents@brandsinsurance.com
@@ -88,12 +96,13 @@ files:
88
96
  - lib/rubocop/cop/rubomatic/style/disallowed_methods.rb
89
97
  - lib/rubocop/cop/rubomatic_cops.rb
90
98
  - lib/rubocop/rubomatic.rb
91
- - lib/rubocop/rubomatic/inject.rb
99
+ - lib/rubocop/rubomatic/plugin.rb
92
100
  - lib/rubocop/rubomatic/version.rb
93
101
  homepage: https://github.com/BrandsInsurance/rubocop-rubomatic/
94
102
  licenses:
95
103
  - MIT
96
104
  metadata:
105
+ default_lint_roller_plugin: RuboCop::Rubomatic::Plugin
97
106
  rubygems_mfa_required: 'true'
98
107
  homepage_uri: https://github.com/BrandsInsurance/rubocop-rubomatic/
99
108
  source_code_uri: https://github.com/BrandsInsurance/rubocop-rubomatic/tree/main
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Rubomatic
5
- module Inject
6
- # This was a generated method from https://github.com/rubocop/rubocop-extension-generator
7
- #
8
- def self.defaults!
9
- path = CONFIG_DEFAULT.to_s
10
- hash = ConfigLoader.__send__(:load_yaml_configuration, path)
11
- config = Config.new(hash, path).tap(&:make_excludes_absolute)
12
-
13
- puts("configuration from #{path}") if ConfigLoader.debug?
14
-
15
- config = ConfigLoader.merge_with_default(config, path)
16
-
17
- ConfigLoader.instance_variable_set(:@default_configuration, config)
18
- end
19
- end
20
- end
21
- end