rubocop-extension-generator 0.6.0 → 0.6.2

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: b5c4899e8b926cb6c6a60ca7b066b5906fc12b688c677fad0b16b99feaa79841
4
- data.tar.gz: c2183a8c1490dc9821a59d2e4d852156588a9ee8aedd57862d81a4a00dc71aa1
3
+ metadata.gz: 15f8e89ac6c34ff9b77540f407a71c8b0cfef695b86134ea300c4abd1f9948cd
4
+ data.tar.gz: 5985b153b4c6ee954c2055b5a7e7e5997ecb6ae28d1f3b614dd7fd260e49775a
5
5
  SHA512:
6
- metadata.gz: ea0ac44be2a482201530d82ba7762015f22eed4cb338bba1fed352e368656c0944315f88873af63100858e1f2885d1d3eb3022ea5f8f2bd8af003bae26cdc692
7
- data.tar.gz: 7a3f38354de69f19802075f379d7c7d347948a88f323101dd822524ffbb84d9c31d86bf0239ec477e9aa41ff170741d70cbb520d6c196148069adfda8103fc29
6
+ metadata.gz: e5f096eb6f8c44d0ccdbec8127bae1b29001d011c06cbdb4b02b633fd1800889c7e378b5001ab576dee37684305dc5285c2adc591cc129a7029db2da0621b037
7
+ data.tar.gz: 5ecdb80d28c7fff3efcce14462207c7a139114c93243e1a4a07b276ec786d43c74fc1d6fbdd1f0c91e5f58b4c86906dba735e07a469a0428d267e0d59e55a7cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # master (unreleased)
2
2
 
3
+ ## v0.6.2
4
+
5
+ * [#30](https://github.com/rubocop/rubocop-extension-generator/pull/30): Handle changes to the gem install declaration in Bundler's generated README.
6
+
7
+ ## v0.6.1
8
+
9
+ * [#28](https://github.com/rubocop/rubocop-extension-generator/pull/28): Prevent errors when internally using cops that rely on configuration options.
10
+
3
11
  ## v0.6.0
4
12
 
5
13
  * [#27](https://github.com/rubocop/rubocop-extension-generator/pull/27): Support RuboCop extension plugin.
@@ -91,6 +91,7 @@ module RuboCop
91
91
  put '.rubocop.yml', <<~YML
92
92
  plugins:
93
93
  - rubocop-internal_affairs
94
+ - #{name}
94
95
 
95
96
  Naming/FileName:
96
97
  Exclude:
@@ -144,8 +145,10 @@ module RuboCop
144
145
  gem 'rspec'
145
146
  RUBY
146
147
 
148
+ # Bundler's generated README.md has had 2 styles of gem declarations.
149
+ # See: https://github.com/rubygems/rubygems/commit/c805e9b558
147
150
  if Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('2.3.9')
148
- patch 'README.md', /\$ bundle add (.*)$/, '$ bundle add \1 --require=false'
151
+ patch 'README.md', /^\s*(?:\$\s*)?bundle add[^\n]*$/, '\0 --require=false'
149
152
  else
150
153
  patch 'README.md', /^gem '#{name}'$/, "gem '#{name}', require: false"
151
154
  end
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Extension
5
5
  module Generator
6
- VERSION = "0.6.0"
6
+ VERSION = "0.6.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-extension-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Pocke Kuwabara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-03 00:00:00.000000000 Z
11
+ date: 2025-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop