rubocop-extension-generator 0.3.0 → 0.4.0
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.md +18 -14
- data/README.md +1 -1
- data/lib/rubocop/extension/generator/generator.rb +3 -6
- data/lib/rubocop/extension/generator/version.rb +1 -1
- data/rubocop-extension-generator.gemspec +2 -1
- metadata +23 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3c330aa44efa7895f962c779c3cce0beecfa92e9d79ae589ffecd12fc8492ad
|
|
4
|
+
data.tar.gz: 5df3674bf68a9d16bbbb2fe3814f83698b43d1fb0f3607473143220e47531779
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb8cf264c9986b2e86821cee13e718aa766ab529ba1b9643824662b7bc0745874af1a28a3097c9003b9b663feb3b608ee9d7737b67800ae81cdde59907a961de
|
|
7
|
+
data.tar.gz: 8c39677e988be2c140e7046ef7251c8031ab63621ef1fe865e2b1fe7de26b5de72966fab2ff43fddf3572a808291de0e259e72800a3ea83d3b6446f3c4720f65
|
data/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
# master (unreleased)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## v0.4.0
|
|
4
4
|
|
|
5
|
-
* [#
|
|
5
|
+
* [#13](https://github.com/rubocop/rubocop-extension-generator/pull/13): Fix an `ArgumentError` when RuboCop 1.22.0 or higher.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## v0.3.0
|
|
8
8
|
|
|
9
|
-
* [#
|
|
9
|
+
* [#8](https://github.com/rubocop/rubocop-extension-generator/pull/8): Enable to work "Exclude" in AllCops section.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## v0.2.3
|
|
12
12
|
|
|
13
|
-
* [#
|
|
13
|
+
* [#7](https://github.com/rubocop/rubocop-extension-generator/pull/7): Improve CLI.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## v0.2.2
|
|
16
16
|
|
|
17
|
-
* [#
|
|
17
|
+
* [#5](https://github.com/rubocop/rubocop-extension-generator/pull/5): Add `require: false` to sample code in README.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## v0.2.1
|
|
20
20
|
|
|
21
|
-
*
|
|
21
|
+
* [#4](https://github.com/rubocop/rubocop-extension-generator/pull/4): Exclude main lib file from Naming/FileName cop.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
## v0.2.0
|
|
24
24
|
|
|
25
|
-
*
|
|
25
|
+
* Rename `custom_cops_generator` to `rubocop-extension-generator`.
|
|
26
|
+
|
|
27
|
+
## v0.1.2
|
|
28
|
+
|
|
29
|
+
* Fix bugs.
|
|
26
30
|
* This release is the first release that works actually.
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
## v0.1.1
|
|
29
33
|
|
|
30
34
|
* Specify MIT License in gemspec.
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
## v0.1.0
|
|
33
37
|
|
|
34
38
|
* The initial release.
|
data/README.md
CHANGED
|
@@ -66,5 +66,5 @@ You can execute a smoke test with `ruby smoke/smoke.rb`. Check it is success bef
|
|
|
66
66
|
|
|
67
67
|
## Contributing
|
|
68
68
|
|
|
69
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/rubocop
|
|
69
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rubocop/rubocop-extension-generator.
|
|
70
70
|
|
|
@@ -26,8 +26,8 @@ module RuboCop
|
|
|
26
26
|
put "lib/#{dirname}/inject.rb", <<~RUBY
|
|
27
27
|
# frozen_string_literal: true
|
|
28
28
|
|
|
29
|
-
# The original code is from https://github.com/rubocop
|
|
30
|
-
# See https://github.com/rubocop
|
|
29
|
+
# The original code is from https://github.com/rubocop/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
|
|
30
|
+
# See https://github.com/rubocop/rubocop-rspec/blob/master/MIT-LICENSE.md
|
|
31
31
|
module RuboCop
|
|
32
32
|
module #{classname}
|
|
33
33
|
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
|
@@ -122,10 +122,7 @@ module RuboCop
|
|
|
122
122
|
exit!
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
github_user = 'your_id' if github_user.empty?
|
|
127
|
-
|
|
128
|
-
generator = RuboCop::Cop::Generator.new(cop_name, github_user)
|
|
125
|
+
generator = RuboCop::Cop::Generator.new(cop_name)
|
|
129
126
|
|
|
130
127
|
generator.write_source
|
|
131
128
|
generator.write_spec
|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
|
|
9
9
|
spec.summary = %q{A generator of RuboCop's custom cops gem}
|
|
10
10
|
spec.description = %q{A generator of RuboCop's custom cops gem}
|
|
11
|
-
spec.homepage = "https://github.com/rubocop
|
|
11
|
+
spec.homepage = "https://github.com/rubocop/rubocop-extension-generator"
|
|
12
12
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
|
13
13
|
spec.licenses = ['MIT']
|
|
14
14
|
|
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
28
|
spec.require_paths = ["lib"]
|
|
29
29
|
|
|
30
|
+
spec.add_runtime_dependency 'rubocop', '>= 1.22.0'
|
|
30
31
|
spec.add_runtime_dependency 'bundler'
|
|
31
32
|
spec.add_runtime_dependency 'activesupport'
|
|
32
33
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-extension-generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masataka Pocke Kuwabara
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rubocop
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.22.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.22.0
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: bundler
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -61,14 +75,14 @@ files:
|
|
|
61
75
|
- lib/rubocop/extension/generator/version.rb
|
|
62
76
|
- rubocop-extension-generator.gemspec
|
|
63
77
|
- smoke/smoke.rb
|
|
64
|
-
homepage: https://github.com/rubocop
|
|
78
|
+
homepage: https://github.com/rubocop/rubocop-extension-generator
|
|
65
79
|
licenses:
|
|
66
80
|
- MIT
|
|
67
81
|
metadata:
|
|
68
82
|
allowed_push_host: https://rubygems.org
|
|
69
|
-
homepage_uri: https://github.com/rubocop
|
|
70
|
-
source_code_uri: https://github.com/rubocop
|
|
71
|
-
post_install_message:
|
|
83
|
+
homepage_uri: https://github.com/rubocop/rubocop-extension-generator
|
|
84
|
+
source_code_uri: https://github.com/rubocop/rubocop-extension-generator
|
|
85
|
+
post_install_message:
|
|
72
86
|
rdoc_options: []
|
|
73
87
|
require_paths:
|
|
74
88
|
- lib
|
|
@@ -83,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
97
|
- !ruby/object:Gem::Version
|
|
84
98
|
version: '0'
|
|
85
99
|
requirements: []
|
|
86
|
-
rubygems_version: 3.
|
|
87
|
-
signing_key:
|
|
100
|
+
rubygems_version: 3.2.13
|
|
101
|
+
signing_key:
|
|
88
102
|
specification_version: 4
|
|
89
103
|
summary: A generator of RuboCop's custom cops gem
|
|
90
104
|
test_files: []
|