spring 1.4.1 → 1.4.2
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/lib/spring/client/binstub.rb +4 -2
- data/lib/spring/test/acceptance_test.rb +10 -1
- data/lib/spring/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e18903803d3b81716563a8dcbf07b7d02bf347e3
|
4
|
+
data.tar.gz: 6a3a2292025ecbe21712d9874ccd4f794f626816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3506bd8902272fbc7bfc1a793bda37d56c6e3e5041fc4c26856f6e68c368249f430ed5f822d15cbf47e22677600697b9a79fbb9520a434911a4cbf21e0f0e688
|
7
|
+
data.tar.gz: 458324cc17f33e8df4945a0e8c67d13996231279233812713a71929cd4a8b8bab3991f8225b83ab8ebaa5521d9550083411aa0450adf00f45514b20923759961
|
@@ -13,8 +13,10 @@ module Spring
|
|
13
13
|
# should cause the "unsprung" version of the command to run.
|
14
14
|
LOADER = <<CODE
|
15
15
|
begin
|
16
|
-
|
17
|
-
|
16
|
+
spring_bin_path = File.expand_path('../spring', __FILE__)
|
17
|
+
load spring_bin_path
|
18
|
+
rescue LoadError => e
|
19
|
+
raise unless e.message.end_with? spring_bin_path, 'spring/binstub'
|
18
20
|
end
|
19
21
|
CODE
|
20
22
|
|
@@ -208,13 +208,22 @@ module Spring
|
|
208
208
|
assert_success "bin/rake -T", stdout: "rake db:migrate"
|
209
209
|
end
|
210
210
|
|
211
|
-
test "binstub when spring is
|
211
|
+
test "binstub when spring gem is missing" do
|
212
212
|
without_gem "spring-#{Spring::VERSION}" do
|
213
213
|
File.write(app.gemfile, app.gemfile.read.gsub(/gem 'spring.*/, ""))
|
214
214
|
assert_success "bin/rake -T", stdout: "rake db:migrate"
|
215
215
|
end
|
216
216
|
end
|
217
217
|
|
218
|
+
test "binstub when spring binary is missing" do
|
219
|
+
begin
|
220
|
+
File.rename(app.path("bin/spring"), app.path("bin/spring.bak"))
|
221
|
+
assert_success "bin/rake -T", stdout: "rake db:migrate"
|
222
|
+
ensure
|
223
|
+
File.rename(app.path("bin/spring.bak"), app.path("bin/spring"))
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
218
227
|
test "binstub upgrade" do
|
219
228
|
File.write(app.path("bin/rake"), <<-RUBY.strip_heredoc)
|
220
229
|
#!/usr/bin/env ruby
|
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.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: 2015-11-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|