guard-yard 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/yard.rb +5 -5
- data/lib/guard/yard/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 434a0ae6ebca42341d296bd0b0dbe0cf6277e338
|
4
|
+
data.tar.gz: 412d9c189a3d610ec839fef398c7861d7349d246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d5b1ec3083a8b5194922943d0bef9843588bf54e46139aedde790393bd1e3ae31f3680557841c938bf2fc3b9e71169e62b7b827f6629464180ee6efca4cd51
|
7
|
+
data.tar.gz: 6ff77b47418369da0b450a65a6229316885fd0167f6197d22ec1d9ff2c7c21248ead659bf0f755e73c181769b9f9a5b7dd59db2846c5fce526087a85f2ad106f
|
data/lib/guard/yard.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'guard'
|
2
|
-
require 'guard/
|
2
|
+
require 'guard/plugin'
|
3
3
|
require 'yard'
|
4
4
|
|
5
5
|
module Guard
|
6
|
-
class Yard <
|
6
|
+
class Yard < Plugin
|
7
7
|
autoload :NoServer, 'guard/yard/no_server'
|
8
8
|
autoload :Server, 'guard/yard/server'
|
9
9
|
attr_accessor :server
|
10
10
|
|
11
|
-
def initialize(
|
11
|
+
def initialize(options = {})
|
12
12
|
super
|
13
|
-
options[:server] = true unless options.
|
13
|
+
options[:server] = true unless options.key?(:server)
|
14
14
|
@server = options[:server] ? Server.new(options) : NoServer.new
|
15
15
|
end
|
16
16
|
|
@@ -35,7 +35,7 @@ module Guard
|
|
35
35
|
|
36
36
|
def run_on_changes(paths)
|
37
37
|
UI.info "[Guard::Yard] Detected changes in #{paths.join(',')}."
|
38
|
-
paths.each{ |path| document([path]) }
|
38
|
+
paths.each { |path| document([path]) }
|
39
39
|
UI.info "[Guard::Yard] Updated documentation for #{paths.join(',')}."
|
40
40
|
end
|
41
41
|
|
data/lib/guard/yard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pan Thomakos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -46,8 +46,8 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- lib/guard/yard.rb
|
49
|
-
- lib/guard/yard/no_server.rb
|
50
49
|
- lib/guard/yard/templates/Guardfile
|
50
|
+
- lib/guard/yard/no_server.rb
|
51
51
|
- lib/guard/yard/server.rb
|
52
52
|
- lib/guard/yard/version.rb
|
53
53
|
- LICENSE
|