na 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/Gemfile.lock +2 -1
- data/README.md +82 -27
- data/bin/na +24 -5
- data/lib/na/version.rb +1 -1
- data/lib/na.rb +1 -0
- data/na.gemspec +9 -3
- data/na.rdoc +6 -2
- data/scripts/fixreadme.rb +18 -0
- data/src/README.md +276 -0
- metadata +32 -56
- data/html/App.html +0 -105
- data/html/NA/Action.html +0 -299
- data/html/NA/Color.html +0 -373
- data/html/NA.html +0 -100
- data/html/README_rdoc.html +0 -328
- data/html/String.html +0 -368
- data/html/created.rid +0 -9
- data/html/css/fonts.css +0 -167
- data/html/css/rdoc.css +0 -639
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +0 -297
- data/html/js/darkfish.js +0 -84
- data/html/js/navigation.js +0 -105
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +0 -110
- data/html/js/search_index.js +0 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +0 -229
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +0 -252
data/html/NA/Action.html
DELETED
@@ -1,299 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class NA::Action - Your application title</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../";
|
11
|
-
var index_rel_prefix = "../";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="../js/navigation.js" defer></script>
|
15
|
-
<script src="../js/search.js" defer></script>
|
16
|
-
<script src="../js/search_index.js" defer></script>
|
17
|
-
<script src="../js/searcher.js" defer></script>
|
18
|
-
<script src="../js/darkfish.js" defer></script>
|
19
|
-
|
20
|
-
<link href="../css/fonts.css" rel="stylesheet">
|
21
|
-
<link href="../css/rdoc.css" rel="stylesheet">
|
22
|
-
|
23
|
-
|
24
|
-
<body id="top" role="document" class="class">
|
25
|
-
<nav role="navigation">
|
26
|
-
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
-
<h2>
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
-
<form action="#" method="get" accept-charset="utf-8">
|
41
|
-
<div id="search-field-wrapper">
|
42
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
49
|
-
aria-busy="false" aria-expanded="false"
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
-
</form>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
</div>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<div id="class-metadata">
|
59
|
-
|
60
|
-
|
61
|
-
<div id="parent-class-section" class="nav-section">
|
62
|
-
<h3>Parent</h3>
|
63
|
-
|
64
|
-
<p class="link">Hash
|
65
|
-
</div>
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Method Quickref -->
|
71
|
-
<div id="method-list-section" class="nav-section">
|
72
|
-
<h3>Methods</h3>
|
73
|
-
|
74
|
-
<ul class="link-list" role="directory">
|
75
|
-
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
76
|
-
<li ><a href="#method-i-inspect">#inspect</a>
|
77
|
-
<li ><a href="#method-i-pretty">#pretty</a>
|
78
|
-
<li ><a href="#method-i-to_s">#to_s</a>
|
79
|
-
</ul>
|
80
|
-
</div>
|
81
|
-
|
82
|
-
</div>
|
83
|
-
</nav>
|
84
|
-
|
85
|
-
<main role="main" aria-labelledby="class-NA::Action">
|
86
|
-
<h1 id="class-NA::Action" class="class">
|
87
|
-
class NA::Action
|
88
|
-
</h1>
|
89
|
-
|
90
|
-
<section class="description">
|
91
|
-
|
92
|
-
</section>
|
93
|
-
|
94
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<section class="attribute-method-details" class="method-section">
|
99
|
-
<header>
|
100
|
-
<h3>Attributes</h3>
|
101
|
-
</header>
|
102
|
-
|
103
|
-
<div id="attribute-i-action" class="method-detail">
|
104
|
-
<div class="method-heading attribute-method-heading">
|
105
|
-
<span class="method-name">action</span><span
|
106
|
-
class="attribute-access-type">[R]</span>
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div class="method-description">
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div id="attribute-i-file" class="method-detail">
|
114
|
-
<div class="method-heading attribute-method-heading">
|
115
|
-
<span class="method-name">file</span><span
|
116
|
-
class="attribute-access-type">[R]</span>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
<div class="method-description">
|
120
|
-
|
121
|
-
</div>
|
122
|
-
</div>
|
123
|
-
<div id="attribute-i-parent" class="method-detail">
|
124
|
-
<div class="method-heading attribute-method-heading">
|
125
|
-
<span class="method-name">parent</span><span
|
126
|
-
class="attribute-access-type">[R]</span>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<div class="method-description">
|
130
|
-
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
<div id="attribute-i-project" class="method-detail">
|
134
|
-
<div class="method-heading attribute-method-heading">
|
135
|
-
<span class="method-name">project</span><span
|
136
|
-
class="attribute-access-type">[R]</span>
|
137
|
-
</div>
|
138
|
-
|
139
|
-
<div class="method-description">
|
140
|
-
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</section>
|
144
|
-
|
145
|
-
|
146
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
147
|
-
<header>
|
148
|
-
<h3>Public Class Methods</h3>
|
149
|
-
</header>
|
150
|
-
|
151
|
-
<div id="method-c-new" class="method-detail ">
|
152
|
-
<div class="method-heading">
|
153
|
-
<span class="method-name">new</span><span
|
154
|
-
class="method-args">(file, project, parent, action)</span>
|
155
|
-
<span class="method-click-advice">click to toggle source</span>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div class="method-description">
|
159
|
-
|
160
|
-
<div class="method-calls-super">
|
161
|
-
Calls superclass method
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="method-source-code" id="new-source">
|
166
|
-
<pre><span class="ruby-comment"># File lib/na/action.rb, line 7</span>
|
167
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">project</span>, <span class="ruby-identifier">parent</span>, <span class="ruby-identifier">action</span>)
|
168
|
-
<span class="ruby-keyword">super</span>()
|
169
|
-
|
170
|
-
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>
|
171
|
-
<span class="ruby-ivar">@project</span> = <span class="ruby-identifier">project</span>
|
172
|
-
<span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
173
|
-
<span class="ruby-ivar">@action</span> = <span class="ruby-identifier">action</span>
|
174
|
-
<span class="ruby-keyword">end</span></pre>
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
|
178
|
-
|
179
|
-
</div>
|
180
|
-
|
181
|
-
</section>
|
182
|
-
|
183
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
184
|
-
<header>
|
185
|
-
<h3>Public Instance Methods</h3>
|
186
|
-
</header>
|
187
|
-
|
188
|
-
<div id="method-i-inspect" class="method-detail ">
|
189
|
-
<div class="method-heading">
|
190
|
-
<span class="method-name">inspect</span><span
|
191
|
-
class="method-args">()</span>
|
192
|
-
<span class="method-click-advice">click to toggle source</span>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div class="method-description">
|
196
|
-
|
197
|
-
|
198
|
-
<div class="method-source-code" id="inspect-source">
|
199
|
-
<pre><span class="ruby-comment"># File lib/na/action.rb, line 20</span>
|
200
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inspect</span>
|
201
|
-
<span class="ruby-identifier"><<~EOINSPECT</span>
|
202
|
-
<span class="ruby-value"> @file: #{@file}
|
203
|
-
@project: #{@project}
|
204
|
-
@parent: #{@parent.join('>')}
|
205
|
-
@action: #{@action}
|
206
|
-
</span><span class="ruby-identifier"> EOINSPECT</span>
|
207
|
-
<span class="ruby-keyword">end</span></pre>
|
208
|
-
</div>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
|
212
|
-
</div>
|
213
|
-
|
214
|
-
<div id="method-i-pretty" class="method-detail ">
|
215
|
-
<div class="method-heading">
|
216
|
-
<span class="method-name">pretty</span><span
|
217
|
-
class="method-args">(extension: 'taskpaper', template: {})</span>
|
218
|
-
<span class="method-click-advice">click to toggle source</span>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div class="method-description">
|
222
|
-
|
223
|
-
|
224
|
-
<div class="method-source-code" id="pretty-source">
|
225
|
-
<pre><span class="ruby-comment"># File lib/na/action.rb, line 29</span>
|
226
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pretty</span>(<span class="ruby-value">extension:</span> <span class="ruby-string">'taskpaper'</span>, <span class="ruby-value">template:</span> {})
|
227
|
-
<span class="ruby-identifier">default_template</span> = {
|
228
|
-
<span class="ruby-value">file:</span> <span class="ruby-string">'{xbk}'</span>,
|
229
|
-
<span class="ruby-value">parent:</span> <span class="ruby-string">'{c}'</span>,
|
230
|
-
<span class="ruby-value">parent_divider:</span> <span class="ruby-string">'{xw}/'</span>,
|
231
|
-
<span class="ruby-value">action:</span> <span class="ruby-string">'{bg}'</span>,
|
232
|
-
<span class="ruby-value">project:</span> <span class="ruby-string">'{xbk}'</span>,
|
233
|
-
<span class="ruby-value">tags:</span> <span class="ruby-string">'{m}'</span>,
|
234
|
-
<span class="ruby-value">value_parens:</span> <span class="ruby-string">'{m}'</span>,
|
235
|
-
<span class="ruby-value">values:</span> <span class="ruby-string">'{y}'</span>,
|
236
|
-
<span class="ruby-value">output:</span> <span class="ruby-string">'%filename%parents| %action'</span>
|
237
|
-
}
|
238
|
-
<span class="ruby-identifier">template</span> = <span class="ruby-identifier">default_template</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">template</span>)
|
239
|
-
|
240
|
-
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@parent</span> <span class="ruby-operator">!=</span> [<span class="ruby-string">'Inbox'</span>]
|
241
|
-
<span class="ruby-identifier">parents</span> = <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">par</span><span class="ruby-operator">|</span>
|
242
|
-
<span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-node">"#{template[:parent]}#{par}"</span>)
|
243
|
-
<span class="ruby-keyword">end</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-identifier">template</span>[<span class="ruby-value">:parent_divider</span>]))
|
244
|
-
<span class="ruby-identifier">parents</span> = <span class="ruby-node">"#{parents} "</span>
|
245
|
-
<span class="ruby-keyword">else</span>
|
246
|
-
<span class="ruby-identifier">parents</span> = <span class="ruby-string">''</span>
|
247
|
-
<span class="ruby-keyword">end</span>
|
248
|
-
|
249
|
-
<span class="ruby-identifier">project</span> = <span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-node">"#{template[:project]}#{@project}{x} "</span>)
|
250
|
-
|
251
|
-
<span class="ruby-identifier">filename</span> = <span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-node">"#{template[:file]}#{@file.sub(/^\.\//, '').sub(/\.#{extension}$/, '')} {x}"</span>)
|
252
|
-
|
253
|
-
<span class="ruby-identifier">action</span> = <span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-node">"#{template[:action]}#{@action}{x}"</span>)
|
254
|
-
<span class="ruby-identifier">action</span> = <span class="ruby-identifier">action</span>.<span class="ruby-identifier">highlight_tags</span>(<span class="ruby-value">color:</span> <span class="ruby-identifier">template</span>[<span class="ruby-value">:tags</span>], <span class="ruby-value">parens:</span> <span class="ruby-identifier">template</span>[<span class="ruby-value">:value_parens</span>], <span class="ruby-value">value:</span> <span class="ruby-identifier">template</span>[<span class="ruby-value">:values</span>], <span class="ruby-value">last_color:</span> <span class="ruby-identifier">template</span>[<span class="ruby-value">:action</span>])
|
255
|
-
|
256
|
-
<span class="ruby-constant">NA</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">template</span>(<span class="ruby-identifier">template</span>[<span class="ruby-value">:output</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/%filename/</span>, <span class="ruby-identifier">filename</span>)
|
257
|
-
.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/%project/</span>, <span class="ruby-identifier">project</span>)
|
258
|
-
.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/%parents?/</span>, <span class="ruby-identifier">parents</span>)
|
259
|
-
.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/%action/</span>, <span class="ruby-identifier">action</span>))
|
260
|
-
<span class="ruby-keyword">end</span></pre>
|
261
|
-
</div>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
|
265
|
-
</div>
|
266
|
-
|
267
|
-
<div id="method-i-to_s" class="method-detail ">
|
268
|
-
<div class="method-heading">
|
269
|
-
<span class="method-name">to_s</span><span
|
270
|
-
class="method-args">()</span>
|
271
|
-
<span class="method-click-advice">click to toggle source</span>
|
272
|
-
</div>
|
273
|
-
|
274
|
-
<div class="method-description">
|
275
|
-
|
276
|
-
|
277
|
-
<div class="method-source-code" id="to_s-source">
|
278
|
-
<pre><span class="ruby-comment"># File lib/na/action.rb, line 16</span>
|
279
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
280
|
-
<span class="ruby-node">"(#{@file}) #{@project}:#{@parent.join('>')} | #{@action}"</span>
|
281
|
-
<span class="ruby-keyword">end</span></pre>
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
|
285
|
-
|
286
|
-
</div>
|
287
|
-
|
288
|
-
</section>
|
289
|
-
|
290
|
-
</section>
|
291
|
-
</main>
|
292
|
-
|
293
|
-
|
294
|
-
<footer id="validator-badges" role="contentinfo">
|
295
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
296
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
297
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
298
|
-
</footer>
|
299
|
-
|