README.md in replace_quotes-0.0.0 vs README.md in replace_quotes-0.0.1

- old
+ new

@@ -1,29 +1,39 @@ +[![Gem Version](https://badge.fury.io/rb/replace_quotes.svg)](https://badge.fury.io/rb/replace_quotes) [![Dependency Status](https://gemnasium.com/jhsu802701/replace_quotes.svg)](https://gemnasium.com/jhsu802701/replace_quotes) [![Build Status](https://travis-ci.org/jhsu802701/replace_quotes.svg?branch=master)](https://travis-ci.org/jhsu802701/replace_quotes) [![Code Climate](https://codeclimate.com/github/jhsu802701/replace_quotes/badges/gpa.svg)](https://codeclimate.com/github/jhsu802701/replace_quotes) [![Test Coverage](https://codeclimate.com/github/jhsu802701/replace_quotes/badges/coverage.svg)](https://codeclimate.com/github/jhsu802701/replace_quotes/coverage) [![security](https://hakiri.io/github/jhsu802701/replace_quotes/master.svg)](https://hakiri.io/github/jhsu802701/replace_quotes/master) # ReplaceQuotes -This gem is used for improving RuboCop compliance by replacing unnecessary double quotes with single quotes in a file. To avoid causing errors, ReplaceQuotes leaves double quotes alone when they are used in a line containing single quotes. +This gem is used for improving RuboCop compliance by replacing unnecessary double quotes with single quotes in a file. To avoid causing errors, ReplaceQuotes leaves double quotes alone when they are used in a line containing single quotes or "#{". <br><br> Before: ``` "There is Ruby on High Speed Rails, and there is Not Exactly." "Make sure you choose the correct one." "I hope we're using Ruby on High Speed Rails" "There's Ruby on High Speed Rails, and there's Not Exactly." + +option1 = "High Speed Ruby on Rails" +option2 = "Not Exactly" +"#{option1} is much better and faster than #{option2}." + ``` After: ``` 'There is Ruby on High Speed Rails, and there is Not Exactly.' 'Make sure you choose the correct one.' "I hope we're using Ruby on High Speed Rails" "There's Ruby on High Speed Rails, and there's Not Exactly." + +option1 = 'High Speed Ruby on Rails' +option2 = 'Not Exactly' +"#{option1} is much better and faster than #{option2}." ``` ## Installation Add this line to your application's Gemfile: