spring 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/spring/client/binstub.rb +6 -6
- data/lib/spring/client/run.rb +1 -1
- data/lib/spring/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6feb9dc8510cbe1df92ef37f353edb152be16443
|
4
|
+
data.tar.gz: f5a8264a3a44fe259bc1c5fa702bdb520949417f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ac0d6883b3b8763529624a674c81fc21030610384b9d9c3ce25f5e8b5b3de4afd96a8c0ee7a42f64c8d78f87970ea1930b58ea0b21ff158c9570da826e1697
|
7
|
+
data.tar.gz: f9d9df9cc3ae11ad6e0fc9ea5cb1e6570b5d08a63d3bf03c47b3539794b27cc253cc61270305e162fc53176f60d7849bf44ba8093e7a5182f516fd5c89291395
|
data/README.md
CHANGED
@@ -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(
|
51
|
+
load File.expand_path('../spring', __FILE__)
|
52
52
|
rescue LoadError
|
53
53
|
end
|
54
54
|
```
|
@@ -227,6 +227,7 @@ You can add these to your Gemfile for additional commands:
|
|
227
227
|
running `Test::Unit` tests on Rails 3, since only Rails 4 allows you
|
228
228
|
to use `rake test path/to/test` to run a particular test/directory.
|
229
229
|
* [spring-commands-teaspoon](https://github.com/alejandrobabio/spring-commands-teaspoon.git)
|
230
|
+
* [spring-commands-m](https://github.com/gabrieljoelc/spring-commands-m.git)
|
230
231
|
|
231
232
|
## Use without adding to bundle
|
232
233
|
|
@@ -294,7 +295,7 @@ settings. Note that `~/.spring.rb` is loaded *before* bundler, but
|
|
294
295
|
projects without having to be added to the project's Gemfile, require
|
295
296
|
them in your `~/.spring.rb`.
|
296
297
|
|
297
|
-
`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
|
298
299
|
server process is started, it can be used to add new top-level commands.
|
299
300
|
|
300
301
|
### Application root
|
@@ -13,7 +13,7 @@ module Spring
|
|
13
13
|
# should cause the "unsprung" version of the command to run.
|
14
14
|
LOADER = <<CODE
|
15
15
|
begin
|
16
|
-
load File.expand_path(
|
16
|
+
load File.expand_path('../spring', __FILE__)
|
17
17
|
rescue LoadError
|
18
18
|
end
|
19
19
|
CODE
|
@@ -33,13 +33,13 @@ CODE
|
|
33
33
|
# It gets overwritten when you run the `spring binstub` command.
|
34
34
|
|
35
35
|
unless defined?(Spring)
|
36
|
-
require
|
37
|
-
require
|
36
|
+
require 'rubygems'
|
37
|
+
require 'bundler'
|
38
38
|
|
39
39
|
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
|
40
|
-
Gem.paths = {
|
41
|
-
gem
|
42
|
-
require
|
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
|
data/lib/spring/client/run.rb
CHANGED
data/lib/spring/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.4.5.1
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Rails application preloader
|