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.
@@ -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
 
@@ -9,7 +9,7 @@ module Guard
9
9
 
10
10
  def initialize(watchers=[], options={})
11
11
  super
12
- @server = Server.new(options[:port], options[:stdout], options[:stderr])
12
+ @server = Server.new(options)
13
13
  end
14
14
 
15
15
  def start
@@ -5,10 +5,11 @@ module Guard
5
5
  class Server
6
6
  attr_accessor :pid, :port
7
7
 
8
- def initialize(port, stdout, stderr)
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(' ')
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module Yard
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
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.1
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: 2012-10-18 00:00:00.000000000 Z
12
+ date: 2013-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard