rubocop-rubomatic 1.5.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 +4 -4
- data/CHANGELOG.adoc +6 -0
- data/config/performance.yml +1 -1
- data/config/rubomatic/rubocop.yml +1 -1
- data/lib/rubocop/rubomatic/plugin.rb +34 -0
- data/lib/rubocop/rubomatic/version.rb +15 -1
- data/lib/rubocop-rubomatic.rb +1 -3
- metadata +26 -17
- data/lib/rubocop/rubomatic/inject.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c2428f17fa3a09ef250e03a6561c4de254ee61052b956c78c917d56fa2b85a6
|
4
|
+
data.tar.gz: 193c58c2cd0c1ca4b06f193b093440adb497353a33ab4fa61ba0402f6f879487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 983db2f236ae6127ea6fadbaba7651b46576f48489ad1c992adb87b53bd13a5f7d75a26e37e4a19b2b287ce6d1ab1bccb67be657cdd50f5da619adf70957c40c
|
7
|
+
data.tar.gz: 4c387073a9cbd65b674f183792261ff50710f38c2782fbd92d42f5734cc9085212be1220c89c35ba971cd6ee0c2a5694e712cee7691225cfe4861a062f5ed1be
|
data/CHANGELOG.adoc
CHANGED
data/config/performance.yml
CHANGED
@@ -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
|
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
|
data/lib/rubocop-rubomatic.rb
CHANGED
@@ -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/
|
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.
|
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:
|
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.
|
33
|
+
version: 1.76.0
|
20
34
|
- - ">="
|
21
35
|
- !ruby/object:Gem::Version
|
22
|
-
version: 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.
|
43
|
+
version: 1.76.0
|
30
44
|
- - ">="
|
31
45
|
- !ruby/object:Gem::Version
|
32
|
-
version: 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.
|
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.
|
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/
|
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
|
@@ -109,9 +118,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
118
|
version: 3.0.1
|
110
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
120
|
requirements:
|
112
|
-
- - "
|
121
|
+
- - ">"
|
113
122
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
123
|
+
version: 1.3.1
|
115
124
|
requirements: []
|
116
125
|
rubygems_version: 3.2.15
|
117
126
|
signing_key:
|
@@ -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
|