guard-spork 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ *** Guard::Spork is looking for a new maintainer, please contact me at <thibaud@thibaud.me>. ***
2
+
1
3
  # Guard::Spork [![Build Status](https://secure.travis-ci.org/guard/guard-spork.png)](http://travis-ci.org/guard/guard-spork)
2
4
 
3
5
  Guard::Spork allows to automatically & intelligently start/reload your RSpec/Cucumber/Test::Unit [Spork](https://github.com/sporkrb/spork) server(s).
@@ -97,6 +99,7 @@ Available options:
97
99
 
98
100
  ``` ruby
99
101
  :wait => 60 # Seconds to wait for the server to start, default: 30. Setting it to nil will cause it to wait indefinitely.
102
+ :retry_delay => 60 # Seconds to wait before retrying booting the server, default: 30. Setting it to nil will cause it to wait indefinitely.
100
103
  :cucumber => false
101
104
  :rspec => false
102
105
  :test_unit => false
@@ -8,6 +8,7 @@ module Guard
8
8
 
9
9
  def initialize(options={})
10
10
  options[:wait] ||= 30 # seconds
11
+ options[:retry_delay] ||= 2 * options[:wait] # seconds
11
12
  options[:test_unit_port] ||= 8988
12
13
  options[:cucumber_port] ||= 8990
13
14
  options[:rspec_port] ||= 8989
@@ -86,9 +87,9 @@ module Guard
86
87
  Notifier.notify "#{names} successfully #{action}ed", :title => "Spork", :image => :success
87
88
  else
88
89
  UI.reset_line # workaround before Guard::UI update
89
- UI.error "Could not #{action} Spork server for #{names} after #{options[:wait]} seconds. I will continue waiting for a further 60 seconds."
90
- Notifier.notify "#{names} NOT #{action}ed. Continuing to wait for 60 seconds.", :title => "Spork", :image => :failed
91
- if wait_for_launch(instances, 60)
90
+ UI.error "Could not #{action} Spork server for #{names} after #{options[:wait]} seconds. I will continue waiting for a further #{options[:retry_delay]} seconds."
91
+ Notifier.notify "#{names} NOT #{action}ed. Continuing to wait for #{options[:retry_delay]} seconds.", :title => "Spork", :image => :failed
92
+ if wait_for_launch(instances, options[:retry_delay])
92
93
  total_time = Time.now - start_time
93
94
  UI.info "Spork server for #{names} eventually #{action}ed after #{total_time.to_i} seconds. Consider adjusting your :wait option beyond this time.", :reset => true
94
95
  Notifier.notify "#{names} eventually #{action}ed after #{total_time.to_i} seconds", :title => "Spork", :image => :success
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module SporkVersion
3
- VERSION = "1.4.3"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-spork
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.3
5
+ version: 1.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thibaud Guillaume-Gentil