rubocop-extension-generator 0.3.0 → 0.4.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: a99bc51fc9261ed6e077556a2eb575d95a888f0f110d2afe34cf295bd941a552
4
- data.tar.gz: 39dd802bb26f72ffdbfda234fcafe459f6fd2e78111004421125c879dfea7ee5
3
+ metadata.gz: f3c330aa44efa7895f962c779c3cce0beecfa92e9d79ae589ffecd12fc8492ad
4
+ data.tar.gz: 5df3674bf68a9d16bbbb2fe3814f83698b43d1fb0f3607473143220e47531779
5
5
  SHA512:
6
- metadata.gz: cd85844d8b24f9edf4d283611884f33aec4331705e18bf3869795cc7274f0c42a3e9bccdfb15d40201121d7e90e4c0bf45f5c9e9664e481ad732a50ea32031c7
7
- data.tar.gz: 137225d666a6240bb786738d191cac9b1adcf9a442f4b94948d3c7cd54bd0f7ff38b9c2fb0bcadfb6a4aa8280890ef2e527d37498bed22266fd6aa75781f4e42
6
+ metadata.gz: cb8cf264c9986b2e86821cee13e718aa766ab529ba1b9643824662b7bc0745874af1a28a3097c9003b9b663feb3b608ee9d7737b67800ae81cdde59907a961de
7
+ data.tar.gz: 8c39677e988be2c140e7046ef7251c8031ab63621ef1fe865e2b1fe7de26b5de72966fab2ff43fddf3572a808291de0e259e72800a3ea83d3b6446f3c4720f65
data/CHANGELOG.md CHANGED
@@ -1,34 +1,38 @@
1
1
  # master (unreleased)
2
2
 
3
- # v0.3.0
3
+ ## v0.4.0
4
4
 
5
- * [#8](https://github.com/rubocop-hq/rubocop-extension-generator/pull/8): Enable to work "Exclude" in AllCops section
5
+ * [#13](https://github.com/rubocop/rubocop-extension-generator/pull/13): Fix an `ArgumentError` when RuboCop 1.22.0 or higher.
6
6
 
7
- # v0.2.3
7
+ ## v0.3.0
8
8
 
9
- * [#7](https://github.com/rubocop-hq/rubocop-extension-generator/pull/7): Improve CLI
9
+ * [#8](https://github.com/rubocop/rubocop-extension-generator/pull/8): Enable to work "Exclude" in AllCops section.
10
10
 
11
- # v0.2.2
11
+ ## v0.2.3
12
12
 
13
- * [#5](https://github.com/rubocop-hq/rubocop-extension-generator/pull/5): Add `require: false` to sample code in README
13
+ * [#7](https://github.com/rubocop/rubocop-extension-generator/pull/7): Improve CLI.
14
14
 
15
- # v0.2.1
15
+ ## v0.2.2
16
16
 
17
- * [#4](https://github.com/rubocop-hq/rubocop-extension-generator/pull/4): Exclude main lib file from Naming/FileName cop
17
+ * [#5](https://github.com/rubocop/rubocop-extension-generator/pull/5): Add `require: false` to sample code in README.
18
18
 
19
- # v0.2.0
19
+ ## v0.2.1
20
20
 
21
- * Rename `custom_cops_generator` to `rubocop-extension-generator`
21
+ * [#4](https://github.com/rubocop/rubocop-extension-generator/pull/4): Exclude main lib file from Naming/FileName cop.
22
22
 
23
- # v0.1.2
23
+ ## v0.2.0
24
24
 
25
- * Fix bugs
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
- # v0.1.1
32
+ ## v0.1.1
29
33
 
30
34
  * Specify MIT License in gemspec.
31
35
 
32
- # v0.1.0
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-hq/rubocop-extension-generator.
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-hq/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
30
- # See https://github.com/rubocop-hq/rubocop-rspec/blob/master/MIT-LICENSE.md
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
- github_user = `git config github.user`.chop
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
@@ -1,7 +1,7 @@
1
1
  module RuboCop
2
2
  module Extension
3
3
  module Generator
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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-hq/rubocop-extension-generator"
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.3.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: 2020-01-25 00:00:00.000000000 Z
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-hq/rubocop-extension-generator
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-hq/rubocop-extension-generator
70
- source_code_uri: https://github.com/rubocop-hq/rubocop-extension-generator
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.1.2
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: []