File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ code into relevant existing executables. The snippet looks like this:
48
48
49
49
``` ruby
50
50
begin
51
- load File .expand_path(" ../spring" , __FILE__ )
51
+ load File .expand_path(' ../spring' , __FILE__ )
52
52
rescue LoadError
53
53
end
54
54
```
@@ -295,7 +295,7 @@ settings. Note that `~/.spring.rb` is loaded *before* bundler, but
295
295
projects without having to be added to the project's Gemfile, require
296
296
them in your ` ~/.spring.rb ` .
297
297
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
299
299
server process is started, it can be used to add new top-level commands.
300
300
301
301
### Application root
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Binstub < Command
13
13
# should cause the "unsprung" version of the command to run.
14
14
LOADER = <<CODE
15
15
begin
16
- load File.expand_path(" ../spring" , __FILE__)
16
+ load File.expand_path(' ../spring' , __FILE__)
17
17
rescue LoadError
18
18
end
19
19
CODE
@@ -33,13 +33,13 @@ class Binstub < Command
33
33
# It gets overwritten when you run the `spring binstub` command.
34
34
35
35
unless defined?(Spring)
36
- require " rubygems"
37
- require " bundler"
36
+ require ' rubygems'
37
+ require ' bundler'
38
38
39
39
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'
43
43
end
44
44
end
45
45
CODE
You can’t perform that action at this time.
0 commit comments