spring 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6feb9dc8510cbe1df92ef37f353edb152be16443
4
- data.tar.gz: f5a8264a3a44fe259bc1c5fa702bdb520949417f
3
+ metadata.gz: e18903803d3b81716563a8dcbf07b7d02bf347e3
4
+ data.tar.gz: 6a3a2292025ecbe21712d9874ccd4f794f626816
5
5
  SHA512:
6
- metadata.gz: 47ac0d6883b3b8763529624a674c81fc21030610384b9d9c3ce25f5e8b5b3de4afd96a8c0ee7a42f64c8d78f87970ea1930b58ea0b21ff158c9570da826e1697
7
- data.tar.gz: f9d9df9cc3ae11ad6e0fc9ea5cb1e6570b5d08a63d3bf03c47b3539794b27cc253cc61270305e162fc53176f60d7849bf44ba8093e7a5182f516fd5c89291395
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
- load File.expand_path('../spring', __FILE__)
17
- rescue LoadError
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 uninstalled" do
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
@@ -1,3 +1,3 @@
1
1
  module Spring
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport