Skip to content

Commit

Permalink
Fix redis not being uncommented if single quotes are used (#25)
Browse files Browse the repository at this point in the history
Single quotes are required for non-interpolated string literals on some
projects. If the Gemfile has been converted to use single quotes,
including commented lines, then `uncomment_lines` will fail to find it.
  • Loading branch information
unikitty37 authored Jun 13, 2022
1 parent fd35a64 commit 9d66227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
gemfile = File.read(Rails.root.join("Gemfile"))
if gemfile.include?("redis")
say "Uncomment redis in Gemfile"
uncomment_lines "Gemfile", %(gem "redis")
uncomment_lines "Gemfile", %r{gem ['"]redis['"]}
else
say "Add redis to Gemfile"
gem "redis"
Expand Down

0 comments on commit 9d66227

Please sign in to comment.