spring 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +2 -2
- data/README.md +12 -0
- data/bin/spring +0 -2
- data/lib/spring/application.rb +2 -0
- data/lib/spring/client/run.rb +0 -3
- data/lib/spring/test/acceptance_test.rb +3 -8
- data/lib/spring/test/application_generator.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: bde56190c414de761d3907f24e40ba5d8db5357d
|
4
|
+
data.tar.gz: ecf9a9762eda7467df6c49a93904576e451583ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55818211b5e112aaf57d29dc8b63e20d92a30ca0b9464641065ba047c69345d35ed17e498b9e12d344a3293f5d4442cbe268821995668a99cbd076e60e3fb45
|
7
|
+
data.tar.gz: 65c0b87b5e5cfe75cb6a1abb1edf6b05424bedd48d4ffeb3c452943184b329cdd38ea5e29230b0a552c4927daa8366ef4f2a9be563812051abe71421411c40a6
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012 Jon Leighton
|
1
|
+
Copyright (c) 2012-2016 Jon Leighton
|
2
2
|
|
3
3
|
MIT License
|
4
4
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -73,6 +73,7 @@ Let's run a test:
|
|
73
73
|
|
74
74
|
```
|
75
75
|
$ time bin/rake test test/controllers/posts_controller_test.rb
|
76
|
+
Running via Spring preloader in process 2734
|
76
77
|
Run options:
|
77
78
|
|
78
79
|
# Running tests:
|
@@ -103,6 +104,7 @@ The next run is faster:
|
|
103
104
|
|
104
105
|
```
|
105
106
|
$ time bin/rake test test/controllers/posts_controller_test.rb
|
107
|
+
Running via Spring preloader in process 8352
|
106
108
|
Run options:
|
107
109
|
|
108
110
|
# Running tests:
|
@@ -147,6 +149,7 @@ environment gets booted up:
|
|
147
149
|
|
148
150
|
```
|
149
151
|
$ bin/rake routes
|
152
|
+
Running via Spring preloader in process 2363
|
150
153
|
posts GET /posts(.:format) posts#index
|
151
154
|
POST /posts(.:format) posts#create
|
152
155
|
new_post GET /posts/new(.:format) posts#new
|
@@ -353,6 +356,15 @@ installing the
|
|
353
356
|
[spring-watcher-listen](https://github.com/jonleighton/spring-watcher-listen)
|
354
357
|
gem.
|
355
358
|
|
359
|
+
### Quiet output
|
360
|
+
|
361
|
+
To disable the "Running via Spring preloader" message which is shown each time
|
362
|
+
a command runs:
|
363
|
+
|
364
|
+
``` ruby
|
365
|
+
Spring.quiet = true
|
366
|
+
```
|
367
|
+
|
356
368
|
## Troubleshooting
|
357
369
|
|
358
370
|
If you want to get more information about what spring is doing, you can
|
data/bin/spring
CHANGED
@@ -46,6 +46,4 @@ end
|
|
46
46
|
lib = File.expand_path("../../lib", __FILE__)
|
47
47
|
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib) # enable local development
|
48
48
|
require 'spring/client'
|
49
|
-
# if the user knows that spring is called, do not show running spring
|
50
|
-
Spring.quiet = true if $0.include? 'spring'
|
51
49
|
Spring::Client.run(ARGV)
|
data/lib/spring/application.rb
CHANGED
data/lib/spring/client/run.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require "spring/commands"
|
2
1
|
require "rbconfig"
|
3
2
|
require "socket"
|
4
3
|
require "bundler"
|
@@ -139,8 +138,6 @@ ERROR
|
|
139
138
|
if pid && !pid.empty?
|
140
139
|
log "got pid: #{pid}"
|
141
140
|
|
142
|
-
puts "Running via Spring preloader in process #{pid}" unless Spring.quiet
|
143
|
-
|
144
141
|
forward_signals(pid.to_i)
|
145
142
|
status = application.read.to_i
|
146
143
|
|
@@ -103,19 +103,14 @@ module Spring
|
|
103
103
|
end
|
104
104
|
|
105
105
|
test "tells the user that spring is being used when used automatically via binstubs" do
|
106
|
-
assert_success "bin/rails runner ''",
|
107
|
-
assert_success app.spring_test_command,
|
108
|
-
end
|
109
|
-
|
110
|
-
test "does not tell the user that spring is being used when the user used spring manually" do
|
111
|
-
refute_output_includes "spring rails runner ''", stdout: "Running via Spring preloader in process"
|
112
|
-
refute_output_includes "spring rake test", stdout: "Running via Spring preloader in process"
|
106
|
+
assert_success "bin/rails runner ''", stderr: "Running via Spring preloader in process"
|
107
|
+
assert_success app.spring_test_command, stderr: "Running via Spring preloader in process"
|
113
108
|
end
|
114
109
|
|
115
110
|
test "does not tell the user that spring is being used when used automatically via binstubs but quiet is enabled" do
|
116
111
|
File.write("#{app.user_home}/.spring.rb", "Spring.quiet = true")
|
117
112
|
assert_success "bin/rails runner ''"
|
118
|
-
refute_output_includes "bin/rails runner ''",
|
113
|
+
refute_output_includes "bin/rails runner ''", stderr: 'Running via Spring preloader in process'
|
119
114
|
end
|
120
115
|
|
121
116
|
test "test changes are picked up" do
|
@@ -112,7 +112,7 @@ module Spring
|
|
112
112
|
system("gem build #{name}.gemspec 2>&1")
|
113
113
|
end
|
114
114
|
|
115
|
-
application.run! "gem install #{spec.gem_dir}/#{name}-*.gem", timeout: nil
|
115
|
+
application.run! "gem install #{spec.gem_dir}/#{name}-*.gem --no-ri --no-rdoc", timeout: nil
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
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.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-08 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.4.
|
122
|
+
rubygems_version: 2.4.8
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Rails application preloader
|