spin 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. data/bin/spin +3 -2
  2. metadata +2 -2
data/bin/spin CHANGED
@@ -60,7 +60,7 @@ end
60
60
  def serve(force_rspec, force_testunit, time, push_results, preload)
61
61
  root_path = rails_root(preload) and Dir.chdir(root_path)
62
62
  file = socket_file
63
- Spin.parse_hook_file(root_path)
63
+ Spin.parse_hook_file(root_path) if root_path
64
64
 
65
65
  # We delete the tmp file for the Unix socket if it already exists. The file
66
66
  # is scoped to the `pwd`, so if it already exists then it must be from an
@@ -291,7 +291,8 @@ module Spin
291
291
  end
292
292
 
293
293
  def self.parse_hook_file(root)
294
- load(root.join(".spin.rb"))
294
+ file = root.join(".spin.rb")
295
+ load(file) if File.exist?(file)
295
296
  end
296
297
 
297
298
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-25 00:00:00.000000000 Z
12
+ date: 2012-07-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Spin preloads your Rails environment to speed up your autotest(ish)
15
15
  workflow.