Skip to content

Commit 354637f

Browse files
committed
Merge pull request #437 from mariusbutuc/prefer-single-quoted-strings
Prefer single-quoted strings
2 parents 521090c + 7188863 commit 354637f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ code into relevant existing executables. The snippet looks like this:
4848

4949
``` ruby
5050
begin
51-
load File.expand_path("../spring", __FILE__)
51+
load File.expand_path('../spring', __FILE__)
5252
rescue LoadError
5353
end
5454
```
@@ -295,7 +295,7 @@ settings. Note that `~/.spring.rb` is loaded *before* bundler, but
295295
projects without having to be added to the project's Gemfile, require
296296
them in your `~/.spring.rb`.
297297

298-
`config/spring_client.rb` is also loaded before bundler and before a
298+
`config/spring_client.rb` is also loaded before bundler and before a
299299
server process is started, it can be used to add new top-level commands.
300300

301301
### Application root

lib/spring/client/binstub.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Binstub < Command
1313
# should cause the "unsprung" version of the command to run.
1414
LOADER = <<CODE
1515
begin
16-
load File.expand_path("../spring", __FILE__)
16+
load File.expand_path('../spring', __FILE__)
1717
rescue LoadError
1818
end
1919
CODE
@@ -33,13 +33,13 @@ class Binstub < Command
3333
# It gets overwritten when you run the `spring binstub` command.
3434
3535
unless defined?(Spring)
36-
require "rubygems"
37-
require "bundler"
36+
require 'rubygems'
37+
require 'bundler'
3838
3939
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
40-
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
41-
gem "spring", match[1]
42-
require "spring/binstub"
40+
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq }
41+
gem 'spring', match[1]
42+
require 'spring/binstub'
4343
end
4444
end
4545
CODE

0 commit comments

Comments
 (0)