lib/rubocop/extension/generator/generator.rb in rubocop-extension-generator-0.5.1 vs lib/rubocop/extension/generator/generator.rb in rubocop-extension-generator-0.5.2
- old
+ new
@@ -136,10 +136,10 @@
patch 'Gemfile', /\z/, <<~RUBY
gem 'rspec'
RUBY
if Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('2.3.9')
- patch 'README.md', /\$ bundle add #{name}$/, "\$ bundle add #{name} --require=false"
+ patch 'README.md', /\$ bundle add (.*)$/, '$ bundle add \1 --require=false'
else
patch 'README.md', /^gem '#{name}'$/, "gem '#{name}', require: false"
end
puts