guard-yard 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module Guard
9
9
 
10
10
  def initialize(watchers=[], options={})
11
11
  super
12
- @server = Server.new(options[:port])
12
+ @server = Server.new(options[:port], options[:stdout], options[:stderr])
13
13
  end
14
14
 
15
15
  def start
@@ -3,10 +3,12 @@ require 'socket'
3
3
  module Guard
4
4
  class Yard
5
5
  class Server
6
- attr_accessor :pid, :port
6
+ attr_accessor :pid, :port, :hide_stderr
7
7
 
8
- def initialize(port)
8
+ def initialize(port, stdout, stderr)
9
9
  @port = port || '8808'
10
+ @stdout = stdout
11
+ @stderr = stderr
10
12
  end
11
13
 
12
14
  def spawn
@@ -18,7 +20,10 @@ module Guard
18
20
  Signal.trap('INT', 'IGNORE')
19
21
  Signal.trap('TSTP', 'IGNORE')
20
22
 
21
- exec("yard server -p #{port}")
23
+ command = ["yard server -p #{port}"]
24
+ command << "2> #{@stderr}" if @stderr
25
+ command << "1> #{@stdout}" if @stdout
26
+ exec command.join(' ')
22
27
  end
23
28
  pid
24
29
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module Yard
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
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: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-06 00:00:00.000000000Z
12
+ date: 2011-10-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &2153473760 !ruby/object:Gem::Requirement
16
+ requirement: &70208451492040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153473760
24
+ version_requirements: *70208451492040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: yard
27
- requirement: &2153473300 !ruby/object:Gem::Requirement
27
+ requirement: &70208451491540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.7.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153473300
35
+ version_requirements: *70208451491540
36
36
  description: Guard::Yard automatically monitors Yard Documentation.
37
37
  email:
38
38
  - pan.thomakos@gmail.com
@@ -66,8 +66,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project: guard-yard
69
- rubygems_version: 1.8.10
69
+ rubygems_version: 1.8.6
70
70
  signing_key:
71
71
  specification_version: 3
72
72
  summary: Guard gem for YARD
73
73
  test_files: []
74
+ has_rdoc: