guard-ronn 0.1.0

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.
@@ -0,0 +1,3 @@
1
+ guard 'ronn' do
2
+ watch(%r{^man/.+\.m(ark)?d(own)?$})
3
+ end
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module RonnVersion
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,203 @@
1
+ !RBIX
2
+ 14325050222978361568
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 5
54
+ Guard
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 5
67
+ Guard
68
+ i
69
+ 28
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 11
98
+ I
99
+ 6
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 5
109
+ x
110
+ 11
111
+ RonnVersion
112
+ x
113
+ 11
114
+ open_module
115
+ x
116
+ 15
117
+ __module_init__
118
+ M
119
+ 1
120
+ n
121
+ n
122
+ x
123
+ 11
124
+ RonnVersion
125
+ i
126
+ 12
127
+ 5
128
+ 66
129
+ 65
130
+ 7
131
+ 0
132
+ 7
133
+ 1
134
+ 64
135
+ 49
136
+ 2
137
+ 2
138
+ 11
139
+ I
140
+ 3
141
+ I
142
+ 0
143
+ I
144
+ 0
145
+ I
146
+ 0
147
+ n
148
+ p
149
+ 3
150
+ x
151
+ 7
152
+ VERSION
153
+ s
154
+ 5
155
+ 0.1.0
156
+ x
157
+ 9
158
+ const_set
159
+ p
160
+ 3
161
+ I
162
+ 2
163
+ I
164
+ 3
165
+ I
166
+ c
167
+ x
168
+ 76
169
+ /Users/remy/Development/Ruby/Gems/guard/guard-ronn/lib/guard/ronn/version.rb
170
+ p
171
+ 0
172
+ x
173
+ 13
174
+ attach_method
175
+ p
176
+ 3
177
+ I
178
+ 2
179
+ I
180
+ 2
181
+ I
182
+ 1c
183
+ x
184
+ 76
185
+ /Users/remy/Development/Ruby/Gems/guard/guard-ronn/lib/guard/ronn/version.rb
186
+ p
187
+ 0
188
+ x
189
+ 13
190
+ attach_method
191
+ p
192
+ 3
193
+ I
194
+ 0
195
+ I
196
+ 1
197
+ I
198
+ 1c
199
+ x
200
+ 76
201
+ /Users/remy/Development/Ruby/Gems/guard/guard-ronn/lib/guard/ronn/version.rb
202
+ p
203
+ 0
data/lib/guard/ronn.rb ADDED
@@ -0,0 +1,31 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+ require 'ronn'
4
+
5
+ module Guard
6
+ class Ronn < Guard
7
+ autoload :Runner, 'guard/ronn/runner'
8
+ autoload :Inspector, 'guard/ronn/inspector'
9
+ autoload :Formatter, 'guard/ronn/formatter'
10
+
11
+ def initialize(watchers=[], options={})
12
+ super
13
+ @options = {
14
+ }.merge(options)
15
+ end
16
+
17
+ # Call once when guard starts
18
+ def start
19
+ UI.info "Guard::Ronn is running, with Ronn #{::Ronn.version}!"
20
+ end
21
+
22
+ def run_all
23
+ Runner.run(["man/*"], @options.merge(:message => "Building all manuals"))
24
+ end
25
+
26
+ def run_on_change(paths)
27
+ Runner.run(paths, @options)
28
+ end
29
+
30
+ end
31
+ end