rubygems/rubygems.org — pull request #468 by leereilly (2012-10-13 18:12:40+00:00)
Title: Use single quotes pwetty pwease

Hi there,

This is kind of a personal preference, but I don't think I'm the only one who shares this minor frustration...

`gem "kaminari", "~> 0.14.1"` :heavy_multiplication_x:
`gem 'kaminari', '~> 0.14.1' ` :heavy_check_mark:

Allow me to explain...

I copy and paste from rubygems.org *a lot* and the first thing I do is search/replace the double quotes for single quotes. There's nothing wrong with double quotes, or mixing double quotes and single quotes in a Gemfile, but most projects seem to pick single quotes. Most importantly, if you're anal like me then you can't sleep at night if you see this in your Gemfile:

```ruby
gem "kaminari", "~> 0.14.1"
gem 'thing1', '~> 1.0.0'
gem 'thing2', "~> 1.33.7"
```

Here's some additional justification...

Running `rails new [whatevs]` gives you a Gemfile with single quotes:

```ruby
source 'https://rubygems.org'

gem 'rails', '3.2.8'
.
.
.
```

Looking at the Gemfiles of some popular starred/forked repos via https://github.com/languages/Ruby I found these that use single quotes exclusively:

* [imathis/octopress](https://github.com/imathis/octopress/blob/master/Gemfile)
* [lockitron/selfstarter](https://github.com/lockitron/selfstarter/blob/master/Gemfile)
* [saasbook/hw3_rottenpotatoes](https://github.com/saasbook/hw3_rottenpotatoes/blob/master/Gemfile)
* [unnali/rouge](https://github.com/unnali/rouge/blob/master/Gemfile)

I found two that used double quotes:

* [gitlabhq/gitlabhq](https://github.com/gitlabhq/gitlabhq/blob/master/Gemfile)
* [plataformatec/devise](https://github.com/plataformatec/devise/blob/master/Gemfile)

I found these that used mixed quotes, but the vast majority of the entries were single quotes:

* [diaspora/diaspora](https://github.com/diaspora/diaspora/blob/develop/Gemfile)
* [ndbroadbent/turbo-sprockets-rails3](https://github.com/ndbroadbent/turbo-sprockets-rails3/blob/master/Gemfile)
* [rails/rails](https://github.com/rails/rails/blob/master/Gemfile)
* [rubygems/rubygems.org](https://github.com/rubygems/rubygems.org/blob/master/Gemfile) :trollface:
* [saasbook/hw3_rottenpotatoes](https://github.com/saasbook/hw3_rottenpotatoes/blob/master/Gemfile)

**TL;DR:** This pull request will save *me* valuable minutes every week :neckbeard:

Cheers,
Lee :beers:

![](http://donkeyts.com.s3.amazonaws.com/artifacts/images/design_data/thumb-275x274-design-605.png)