guard-rack 1.2.1 → 1.2.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.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Guard::Rack [![Build Status](http://travis-ci.org/dblock/guard-rack.png)](http://travis-ci.org/dblock/guard-rack)
1
+ Guard::Rack [![Build Status](https://secure.travis-ci.org/dblock/guard-rack.png?branch=master)](https://travis-ci.org/dblock/guard-rack)
2
2
  ===========
3
3
 
4
4
  Want to restart your Rack development with *rackup* whilst you work? Now you can!
@@ -18,6 +18,8 @@ Options
18
18
  * `:daemon` runs the server as a daemon, without any output to the terminal that ran `guard` (default `false`).
19
19
  * `:debugger` runs the server with the debugger enabled (default `false`). Required ruby-debug gem.
20
20
  * `:timeout` waits this number of seconds when restarting the Rack server before reporting there's a problem (default `20`).
21
+ * `:server` serve using server (one of `webrick`, `mongrel` or `thin`).
22
+ * `:config` run the specified rackup file (default `config.ru`).
21
23
 
22
24
  Contributing
23
25
  ------------
@@ -43,6 +43,7 @@ module Guard
43
43
 
44
44
  def build_rack_command
45
45
  rack_options = [
46
+ options[:config],
46
47
  '--env', options[:environment],
47
48
  '--port', options[:port],
48
49
  '--pid', pid_file
@@ -50,6 +51,7 @@ module Guard
50
51
 
51
52
  rack_options << '--daemonize' if options[:daemon]
52
53
  rack_options << '--debug' if options[:debugger]
54
+ rack_options << ["--server",options[:server]] if options[:server]
53
55
 
54
56
  %{sh -c 'cd #{Dir.pwd} && rackup #{rack_options.join(' ')} &'}
55
57
  end
@@ -121,4 +123,4 @@ module Guard
121
123
  end
122
124
 
123
125
  end
124
- end
126
+ end
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module RackVersion
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.2'
4
4
  end
5
5
  end
6
6
 
data/lib/guard/rack.rb CHANGED
@@ -13,7 +13,8 @@ module Guard
13
13
  :start_on_start => true,
14
14
  :force_run => false,
15
15
  :timeout => 20,
16
- :debugger => false
16
+ :debugger => false,
17
+ :config => 'config.ru'
17
18
  }
18
19
 
19
20
  def initialize(watchers = [], options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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-31 00:00:00.000000000 Z
12
+ date: 2012-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  segments:
203
203
  - 0
204
- hash: -1556272734363991289
204
+ hash: -3499392218067664332
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements: