guard-yard 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -0
- data/lib/guard/yard.rb +1 -1
- data/lib/guard/yard/server.rb +6 -4
- data/lib/guard/yard/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -35,6 +35,7 @@ Available options:
|
|
35
35
|
:port => '8808' # Port on which the server shoud run.
|
36
36
|
:stdout => 'yard.log' # File in which to log the yard server output.
|
37
37
|
:stderr => '/dev/null' # File in which to log the yard server errors.
|
38
|
+
:cli => '--plugin rest' # Additional command line options to be appended to the server command.
|
38
39
|
|
39
40
|
## Clean-Slate Documentation
|
40
41
|
|
data/lib/guard/yard.rb
CHANGED
data/lib/guard/yard/server.rb
CHANGED
@@ -5,10 +5,11 @@ module Guard
|
|
5
5
|
class Server
|
6
6
|
attr_accessor :pid, :port
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@port = port || '8808'
|
10
|
-
@stdout = stdout
|
11
|
-
@stderr = stderr
|
8
|
+
def initialize(options = {})
|
9
|
+
@port = options[:port] || '8808'
|
10
|
+
@stdout = options[:stdout]
|
11
|
+
@stderr = options[:stderr]
|
12
|
+
@cli = options[:cli]
|
12
13
|
end
|
13
14
|
|
14
15
|
def spawn
|
@@ -21,6 +22,7 @@ module Guard
|
|
21
22
|
Signal.trap('TSTP', 'IGNORE')
|
22
23
|
|
23
24
|
command = ["yard server -p #{port}"]
|
25
|
+
command << @cli if @cli
|
24
26
|
command << "2> #{@stderr}" if @stderr
|
25
27
|
command << "1> #{@stdout}" if @stdout
|
26
28
|
exec command.join(' ')
|
data/lib/guard/yard/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
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:
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|