guard-cunit 0.0.1-x86-linux
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.
- data/.travis.yml +11 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +6 -0
- data/Guardfile +11 -0
- data/README.md +70 -0
- data/Rakefile +24 -0
- data/doc/Gemfile.html +110 -0
- data/doc/Guard/Cunit/CunitParser.html +396 -0
- data/doc/Guard/Cunit/Runner.html +522 -0
- data/doc/Guard/Cunit.html +278 -0
- data/doc/Guard/CunitGuard.html +156 -0
- data/doc/Guard/Dsl.html +338 -0
- data/doc/Guard.html +149 -0
- data/doc/Guardfile.html +116 -0
- data/doc/Object.html +359 -0
- data/doc/Rakefile.html +132 -0
- data/doc/TempPrjEnv.html +239 -0
- data/doc/TestOutput.html +235 -0
- data/doc/created.rid +12 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +102 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/lib/guard/cunit/templates/Guardfile.html +115 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +157 -0
- data/guard-cunit.gemspec +29 -0
- data/lib/guard/cunit/cunit_parser.rb +70 -0
- data/lib/guard/cunit/runner.rb +99 -0
- data/lib/guard/cunit/templates/Guardfile +12 -0
- data/lib/guard/cunit/version.rb +7 -0
- data/lib/guard/cunit.rb +69 -0
- data/spec/guard_cunit_parser_spec.rb +79 -0
- data/spec/guard_cunit_spec.rb +198 -0
- data/spec/spec_helper.rb +72 -0
- metadata +167 -0
@@ -0,0 +1,278 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Guard::Cunit - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/guard/cunit.rb
|
51
|
+
<li>lib/guard/cunit/cunit_parser.rb
|
52
|
+
<li>lib/guard/cunit/runner.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="../Guard.html">Guard</a>
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
<!-- Method Quickref -->
|
70
|
+
<nav id="method-list-section" class="section">
|
71
|
+
<h3 class="section-header">Methods</h3>
|
72
|
+
|
73
|
+
<ul class="link-list">
|
74
|
+
|
75
|
+
<li><a href="#method-c-new">::new</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-run_all">#run_all</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-run_on_change">#run_on_change</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="project-metadata">
|
87
|
+
<nav id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Pages</h3>
|
89
|
+
|
90
|
+
<ul>
|
91
|
+
|
92
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="../Guardfile.html">Guardfile</a>
|
95
|
+
|
96
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
97
|
+
|
98
|
+
<li class="file"><a href="../lib/guard/cunit/templates/Guardfile.html">Guardfile</a>
|
99
|
+
|
100
|
+
</ul>
|
101
|
+
</nav>
|
102
|
+
|
103
|
+
<nav id="classindex-section" class="section project-section">
|
104
|
+
<h3 class="section-header">Class and Module Index</h3>
|
105
|
+
|
106
|
+
<ul class="link-list">
|
107
|
+
|
108
|
+
<li><a href="../Guard.html">Guard</a>
|
109
|
+
|
110
|
+
<li><a href="../Guard.html">Guard</a>
|
111
|
+
|
112
|
+
<li><a href="../Guard/Cunit.html">Guard::Cunit</a>
|
113
|
+
|
114
|
+
<li><a href="../Guard/Cunit/CunitParser.html">Guard::Cunit::CunitParser</a>
|
115
|
+
|
116
|
+
<li><a href="../Guard/Cunit/Runner.html">Guard::Cunit::Runner</a>
|
117
|
+
|
118
|
+
<li><a href="../Guard/CunitGuard.html">Guard::CunitGuard</a>
|
119
|
+
|
120
|
+
<li><a href="../Guard/Dsl.html">Guard::Dsl</a>
|
121
|
+
|
122
|
+
<li><a href="../Object.html">Object</a>
|
123
|
+
|
124
|
+
<li><a href="../TempPrjEnv.html">TempPrjEnv</a>
|
125
|
+
|
126
|
+
<li><a href="../TestOutput.html">TestOutput</a>
|
127
|
+
|
128
|
+
</ul>
|
129
|
+
</nav>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
</nav>
|
133
|
+
|
134
|
+
<div id="documentation">
|
135
|
+
<h1 class="class">class Guard::Cunit</h1>
|
136
|
+
|
137
|
+
<div id="description" class="description">
|
138
|
+
|
139
|
+
<p>main child class of <a href="../Guard.html">Guard</a> to nherit guard’s
|
140
|
+
behaviour</p>
|
141
|
+
|
142
|
+
</div><!-- description -->
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<!-- Methods -->
|
157
|
+
|
158
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
159
|
+
<h3 class="section-header">Public Class Methods</h3>
|
160
|
+
|
161
|
+
|
162
|
+
<div id="method-c-new" class="method-detail ">
|
163
|
+
|
164
|
+
<div class="method-heading">
|
165
|
+
<span class="method-name">new</span><span
|
166
|
+
class="method-args">(watchers = [], options = {})</span>
|
167
|
+
<span class="method-click-advice">click to toggle source</span>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
|
171
|
+
<div class="method-description">
|
172
|
+
|
173
|
+
<p>new method that also creates the runner class</p>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<div class="method-source-code" id="new-source">
|
178
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit.rb, line 10</span>
|
179
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">watchers</span> = [], <span class="ruby-identifier">options</span> = {})
|
180
|
+
<span class="ruby-keyword">super</span>
|
181
|
+
<span class="ruby-ivar">@options</span> = {
|
182
|
+
<span class="ruby-value">:all_on_start</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>,
|
183
|
+
}.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">options</span>)
|
184
|
+
<span class="ruby-ivar">@runner</span> = <span class="ruby-constant">Runner</span>.<span class="ruby-identifier">new</span>()
|
185
|
+
<span class="ruby-keyword">end</span></pre>
|
186
|
+
</div><!-- new-source -->
|
187
|
+
|
188
|
+
</div>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</div><!-- new-method -->
|
194
|
+
|
195
|
+
|
196
|
+
</section><!-- public-class-method-details -->
|
197
|
+
|
198
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
199
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
200
|
+
|
201
|
+
|
202
|
+
<div id="method-i-run_all" class="method-detail ">
|
203
|
+
|
204
|
+
<div class="method-heading">
|
205
|
+
<span class="method-name">run_all</span><span
|
206
|
+
class="method-args">()</span>
|
207
|
+
<span class="method-click-advice">click to toggle source</span>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-description">
|
212
|
+
|
213
|
+
<p>Called when just `enter` is pressed This method should be principally used
|
214
|
+
for long action like running all specs/tests/… @raise [:task_has_failed]
|
215
|
+
when <a href="Cunit.html#method-i-run_all">#run_all</a> has failed</p>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<div class="method-source-code" id="run_all-source">
|
220
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit.rb, line 20</span>
|
221
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run_all</span>
|
222
|
+
<span class="ruby-identifier">passed</span> = <span class="ruby-ivar">@runner</span>.<span class="ruby-identifier">run</span>
|
223
|
+
<span class="ruby-identifier">throw</span> <span class="ruby-value">:task_has_failed</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">passed</span>
|
224
|
+
<span class="ruby-keyword">end</span></pre>
|
225
|
+
</div><!-- run_all-source -->
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</div><!-- run_all-method -->
|
233
|
+
|
234
|
+
|
235
|
+
<div id="method-i-run_on_change" class="method-detail ">
|
236
|
+
|
237
|
+
<div class="method-heading">
|
238
|
+
<span class="method-name">run_on_change</span><span
|
239
|
+
class="method-args">(paths)</span>
|
240
|
+
<span class="method-click-advice">click to toggle source</span>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
|
244
|
+
<div class="method-description">
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method-source-code" id="run_on_change-source">
|
251
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit.rb, line 24</span>
|
252
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run_on_change</span>(<span class="ruby-identifier">paths</span>)
|
253
|
+
<span class="ruby-constant">UI</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"Process changes in #{paths}"</span>)
|
254
|
+
<span class="ruby-identifier">passed</span> = <span class="ruby-identifier">run_all</span>
|
255
|
+
<span class="ruby-keyword">end</span></pre>
|
256
|
+
</div><!-- run_on_change-source -->
|
257
|
+
|
258
|
+
</div>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</div><!-- run_on_change-method -->
|
264
|
+
|
265
|
+
|
266
|
+
</section><!-- public-instance-method-details -->
|
267
|
+
|
268
|
+
</section><!-- 5Buntitled-5D -->
|
269
|
+
|
270
|
+
</div><!-- documentation -->
|
271
|
+
|
272
|
+
|
273
|
+
<footer id="validator-badges">
|
274
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
275
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
276
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
277
|
+
</footer>
|
278
|
+
|
@@ -0,0 +1,156 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Guard::CunitGuard - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/guard/cunit/version.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
71
|
+
|
72
|
+
<li class="file"><a href="../Guardfile.html">Guardfile</a>
|
73
|
+
|
74
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
75
|
+
|
76
|
+
<li class="file"><a href="../lib/guard/cunit/templates/Guardfile.html">Guardfile</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
<nav id="classindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Class and Module Index</h3>
|
83
|
+
|
84
|
+
<ul class="link-list">
|
85
|
+
|
86
|
+
<li><a href="../Guard.html">Guard</a>
|
87
|
+
|
88
|
+
<li><a href="../Guard.html">Guard</a>
|
89
|
+
|
90
|
+
<li><a href="../Guard/Cunit.html">Guard::Cunit</a>
|
91
|
+
|
92
|
+
<li><a href="../Guard/Cunit/CunitParser.html">Guard::Cunit::CunitParser</a>
|
93
|
+
|
94
|
+
<li><a href="../Guard/Cunit/Runner.html">Guard::Cunit::Runner</a>
|
95
|
+
|
96
|
+
<li><a href="../Guard/CunitGuard.html">Guard::CunitGuard</a>
|
97
|
+
|
98
|
+
<li><a href="../Guard/Dsl.html">Guard::Dsl</a>
|
99
|
+
|
100
|
+
<li><a href="../Object.html">Object</a>
|
101
|
+
|
102
|
+
<li><a href="../TempPrjEnv.html">TempPrjEnv</a>
|
103
|
+
|
104
|
+
<li><a href="../TestOutput.html">TestOutput</a>
|
105
|
+
|
106
|
+
</ul>
|
107
|
+
</nav>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</nav>
|
111
|
+
|
112
|
+
<div id="documentation">
|
113
|
+
<h1 class="module">module Guard::CunitGuard</h1>
|
114
|
+
|
115
|
+
<div id="description" class="description">
|
116
|
+
|
117
|
+
</div><!-- description -->
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<!-- Constants -->
|
129
|
+
<section id="constants-list" class="section">
|
130
|
+
<h3 class="section-header">Constants</h3>
|
131
|
+
<dl>
|
132
|
+
|
133
|
+
<dt id="VERSION">VERSION
|
134
|
+
|
135
|
+
<dd class="description"><p>version of the gem</p>
|
136
|
+
|
137
|
+
|
138
|
+
</dl>
|
139
|
+
</section>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<!-- Methods -->
|
145
|
+
|
146
|
+
</section><!-- 5Buntitled-5D -->
|
147
|
+
|
148
|
+
</div><!-- documentation -->
|
149
|
+
|
150
|
+
|
151
|
+
<footer id="validator-badges">
|
152
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
153
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
154
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
155
|
+
</footer>
|
156
|
+
|