new 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/.new +1 -1
- data/Gemfile.lock +25 -20
- data/Guardfile +6 -4
- data/README.md +9 -2
- data/doc/.git +1 -0
- data/doc/Gemfile.html +125 -0
- data/doc/Gemfile_lock.html +198 -0
- data/doc/Guardfile.html +134 -0
- data/doc/InterpolateSpec.html +116 -0
- data/doc/LICENSE_txt.html +132 -0
- data/doc/New/Cli.html +290 -0
- data/doc/New/Dsl.html +185 -0
- data/doc/New/Interpolate.html +238 -0
- data/doc/New/Project.html +171 -0
- data/doc/New/Task/CustomBarTask.html +154 -0
- data/doc/New/Task/FooTask.html +168 -0
- data/doc/New/Task/Gem.html +197 -0
- data/doc/New/Task/TaskSpec.html +168 -0
- data/doc/New/Task.html +380 -0
- data/doc/New/Template.html +234 -0
- data/doc/New/Version.html +277 -0
- data/doc/New.html +377 -0
- data/doc/Object.html +200 -0
- data/doc/README_md.html +292 -0
- data/doc/VersionSpec.html +116 -0
- data/doc/created.rid +47 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/fonts.css +167 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.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 +142 -0
- data/doc/js/darkfish.js +140 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +580 -0
- data/doc/spec/fixtures/custom/templates/custom_bar_template/custom_bar_txt.html +110 -0
- data/doc/table_of_contents.html +324 -0
- data/doc/tasks/gem/README_md.html +150 -0
- data/doc/templates/js/Gemfile.html +147 -0
- data/doc/templates/js/Guardfile.html +117 -0
- data/doc/templates/js/lib/README_md.html +114 -0
- data/doc/templates/js/spec/spec_helper_js_coffee.html +110 -0
- data/doc/templates/js/spec/vendor/chai_js.html +3864 -0
- data/doc/templates/js/spec/vendor/sinon-chai_js.html +222 -0
- data/doc/templates/js/spec/vendor/sinon_js.html +4358 -0
- data/doc/templates/js/src/README_md.html +125 -0
- data/lib/new/task.rb +2 -4
- data/lib/new/template.rb +1 -1
- data/lib/new/version.rb +27 -19
- data/spec/fixtures/tasks/foo_task/Gemfile +5 -0
- data/spec/lib/new/version_spec.rb +10 -15
- data/spec/spec_helper.rb +22 -1
- data/tasks/gem/gem.rb +44 -8
- data/tasks/gem/gem_spec.rb +139 -0
- metadata +233 -3
@@ -0,0 +1,277 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module New::Version - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "../";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="../js/jquery.js"></script>
|
17
|
+
<script src="../js/navigation.js"></script>
|
18
|
+
<script src="../js/search_index.js"></script>
|
19
|
+
<script src="../js/search.js"></script>
|
20
|
+
<script src="../js/searcher.js"></script>
|
21
|
+
<script src="../js/darkfish.js"></script>
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="module">
|
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
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="nav-section">
|
65
|
+
<h3>Methods</h3>
|
66
|
+
|
67
|
+
<ul class="link-list" role="directory">
|
68
|
+
|
69
|
+
<li ><a href="#method-i-bump_version">#bump_version</a>
|
70
|
+
|
71
|
+
<li ><a href="#method-i-get_part">#get_part</a>
|
72
|
+
|
73
|
+
<li ><a href="#method-i-version">#version</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-version-3D">#version=</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-labelledby="module-New::Version">
|
84
|
+
<h1 id="module-New::Version" class="module">
|
85
|
+
module New::Version
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Public Instance Methods</h3>
|
108
|
+
</header>
|
109
|
+
|
110
|
+
|
111
|
+
<div id="method-i-bump_version" class="method-detail ">
|
112
|
+
|
113
|
+
<div class="method-heading">
|
114
|
+
<span class="method-name">bump_version</span><span
|
115
|
+
class="method-args">(part)</span>
|
116
|
+
|
117
|
+
<span class="method-click-advice">click to toggle source</span>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
|
122
|
+
<div class="method-description">
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<div class="method-source-code" id="bump_version-source">
|
130
|
+
<pre><span class="ruby-comment"># File lib/new/version.rb, line 14</span>
|
131
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">bump_version</span> <span class="ruby-identifier">part</span>
|
132
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">part</span>
|
133
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:major</span>
|
134
|
+
<span class="ruby-identifier">version</span>.<span class="ruby-identifier">major</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
135
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:minor</span>
|
136
|
+
<span class="ruby-identifier">version</span>.<span class="ruby-identifier">minor</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
137
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:patch</span>
|
138
|
+
<span class="ruby-identifier">version</span>.<span class="ruby-identifier">patch</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
139
|
+
<span class="ruby-keyword">end</span>
|
140
|
+
|
141
|
+
<span class="ruby-identifier">version</span>
|
142
|
+
<span class="ruby-keyword">end</span></pre>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
</div>
|
151
|
+
|
152
|
+
|
153
|
+
<div id="method-i-get_part" class="method-detail ">
|
154
|
+
|
155
|
+
<div class="method-heading">
|
156
|
+
<span class="method-name">get_part</span><span
|
157
|
+
class="method-args">()</span>
|
158
|
+
|
159
|
+
<span class="method-click-advice">click to toggle source</span>
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
|
164
|
+
<div class="method-description">
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<div class="method-source-code" id="get_part-source">
|
172
|
+
<pre><span class="ruby-comment"># File lib/new/version.rb, line 27</span>
|
173
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_part</span>
|
174
|
+
<span class="ruby-constant">New</span>.<span class="ruby-identifier">say</span> <span class="ruby-node">" Current Version: #{version}"</span>, <span class="ruby-identifier">type</span><span class="ruby-operator">:</span> <span class="ruby-value">:success</span>
|
175
|
+
<span class="ruby-constant">New</span>.<span class="ruby-identifier">say</span> <span class="ruby-node">" Specify which part to bump: [#{'Mmp'.green}] (#{'M'.green}ajor / #{'m'.green}inor / #{'p'.green}atch)"</span>
|
176
|
+
<span class="ruby-identifier">part</span> = <span class="ruby-constant">STDIN</span>.<span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chomp!</span>
|
177
|
+
|
178
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">part</span>
|
179
|
+
<span class="ruby-keyword">when</span> <span class="ruby-string">'M'</span>
|
180
|
+
<span class="ruby-value">:major</span>
|
181
|
+
<span class="ruby-keyword">when</span> <span class="ruby-string">'m'</span>
|
182
|
+
<span class="ruby-value">:minor</span>
|
183
|
+
<span class="ruby-keyword">when</span> <span class="ruby-string">'p'</span>
|
184
|
+
<span class="ruby-value">:patch</span>
|
185
|
+
<span class="ruby-keyword">end</span>
|
186
|
+
<span class="ruby-keyword">end</span></pre>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
|
196
|
+
|
197
|
+
<div id="method-i-version" class="method-detail ">
|
198
|
+
|
199
|
+
<div class="method-heading">
|
200
|
+
<span class="method-name">version</span><span
|
201
|
+
class="method-args">()</span>
|
202
|
+
|
203
|
+
<span class="method-click-advice">click to toggle source</span>
|
204
|
+
|
205
|
+
</div>
|
206
|
+
|
207
|
+
|
208
|
+
<div class="method-description">
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-source-code" id="version-source">
|
216
|
+
<pre><span class="ruby-comment"># File lib/new/version.rb, line 12</span>
|
217
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">version</span>; <span class="ruby-ivar">@version</span>; <span class="ruby-keyword">end</span></pre>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
</div>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
|
228
|
+
<div id="method-i-version-3D" class="method-detail ">
|
229
|
+
|
230
|
+
<div class="method-heading">
|
231
|
+
<span class="method-name">version=</span><span
|
232
|
+
class="method-args">(string)</span>
|
233
|
+
|
234
|
+
<span class="method-click-advice">click to toggle source</span>
|
235
|
+
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
<div class="method-description">
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="version-3D-source">
|
247
|
+
<pre><span class="ruby-comment"># File lib/new/version.rb, line 4</span>
|
248
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">version=</span> <span class="ruby-identifier">string</span>
|
249
|
+
<span class="ruby-ivar">@version</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
|
250
|
+
<span class="ruby-constant">Semantic</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">string</span>
|
251
|
+
<span class="ruby-keyword">rescue</span>
|
252
|
+
<span class="ruby-constant">New</span>.<span class="ruby-identifier">say</span> <span class="ruby-node">"#{string} is not a semantic version. Use format `1.2.3`"</span>, <span class="ruby-identifier">type</span><span class="ruby-operator">:</span> <span class="ruby-value">:fail</span>
|
253
|
+
<span class="ruby-identifier">exit</span>
|
254
|
+
<span class="ruby-keyword">end</span>
|
255
|
+
<span class="ruby-keyword">end</span></pre>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
</div>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
</section>
|
267
|
+
|
268
|
+
</section>
|
269
|
+
</main>
|
270
|
+
|
271
|
+
|
272
|
+
<footer id="validator-badges" role="contentinfo">
|
273
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
274
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
275
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
276
|
+
</footer>
|
277
|
+
|
data/doc/New.html
ADDED
@@ -0,0 +1,377 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class New - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link href="./fonts.css" rel="stylesheet">
|
10
|
+
<link href="./rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "./";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="./js/jquery.js"></script>
|
17
|
+
<script src="./js/navigation.js"></script>
|
18
|
+
<script src="./js/search_index.js"></script>
|
19
|
+
<script src="./js/search.js"></script>
|
20
|
+
<script src="./js/searcher.js"></script>
|
21
|
+
<script src="./js/darkfish.js"></script>
|
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
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
63
|
+
|
64
|
+
<p class="link"><a href="Object.html">Object</a>
|
65
|
+
|
66
|
+
</div>
|
67
|
+
|
68
|
+
|
69
|
+
<div id="extends-section" class="nav-section">
|
70
|
+
<h3>Extended With Modules</h3>
|
71
|
+
|
72
|
+
<ul class="link-list">
|
73
|
+
|
74
|
+
|
75
|
+
<li><a class="extend" href="New/Dsl.html">New::Dsl</a>
|
76
|
+
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<!-- Method Quickref -->
|
82
|
+
<div id="method-list-section" class="nav-section">
|
83
|
+
<h3>Methods</h3>
|
84
|
+
|
85
|
+
<ul class="link-list" role="directory">
|
86
|
+
|
87
|
+
<li ><a href="#method-c-custom_config">::custom_config</a>
|
88
|
+
|
89
|
+
<li ><a href="#method-c-custom_tasks">::custom_tasks</a>
|
90
|
+
|
91
|
+
<li ><a href="#method-c-custom_templates">::custom_templates</a>
|
92
|
+
|
93
|
+
<li ><a href="#method-c-default_tasks">::default_tasks</a>
|
94
|
+
|
95
|
+
<li ><a href="#method-c-default_templates">::default_templates</a>
|
96
|
+
|
97
|
+
<li ><a href="#method-c-tasks">::tasks</a>
|
98
|
+
|
99
|
+
<li ><a href="#method-c-templates">::templates</a>
|
100
|
+
|
101
|
+
</ul>
|
102
|
+
</div>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
</nav>
|
106
|
+
|
107
|
+
<main role="main" aria-labelledby="class-New">
|
108
|
+
<h1 id="class-New" class="class">
|
109
|
+
class New
|
110
|
+
</h1>
|
111
|
+
|
112
|
+
<section class="description">
|
113
|
+
|
114
|
+
</section>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
130
|
+
<header>
|
131
|
+
<h3>Public Class Methods</h3>
|
132
|
+
</header>
|
133
|
+
|
134
|
+
|
135
|
+
<div id="method-c-custom_config" class="method-detail ">
|
136
|
+
|
137
|
+
<div class="method-heading">
|
138
|
+
<span class="method-name">custom_config</span><span
|
139
|
+
class="method-args">()</span>
|
140
|
+
|
141
|
+
<span class="method-click-advice">click to toggle source</span>
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<div class="method-description">
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<div class="method-source-code" id="custom_config-source">
|
154
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 39</span>
|
155
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">custom_config</span>
|
156
|
+
<span class="ruby-ivar">@custom_config</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">CUSTOM_DIR</span>, <span class="ruby-constant">CONFIG_FILE</span>))).<span class="ruby-identifier">deep_symbolize_keys!</span> <span class="ruby-keyword">rescue</span> {}
|
157
|
+
<span class="ruby-keyword">end</span></pre>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
|
168
|
+
<div id="method-c-custom_tasks" class="method-detail ">
|
169
|
+
|
170
|
+
<div class="method-heading">
|
171
|
+
<span class="method-name">custom_tasks</span><span
|
172
|
+
class="method-args">()</span>
|
173
|
+
|
174
|
+
<span class="method-click-advice">click to toggle source</span>
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
<div class="method-description">
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<div class="method-source-code" id="custom_tasks-source">
|
187
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 35</span>
|
188
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">custom_tasks</span>
|
189
|
+
<span class="ruby-ivar">@custom_tasks</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">get_list</span> <span class="ruby-constant">TASKS_DIR_NAME</span>, <span class="ruby-value">:custom</span>
|
190
|
+
<span class="ruby-keyword">end</span></pre>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
<div id="method-c-custom_templates" class="method-detail ">
|
202
|
+
|
203
|
+
<div class="method-heading">
|
204
|
+
<span class="method-name">custom_templates</span><span
|
205
|
+
class="method-args">()</span>
|
206
|
+
|
207
|
+
<span class="method-click-advice">click to toggle source</span>
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
<div class="method-description">
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<div class="method-source-code" id="custom_templates-source">
|
220
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 27</span>
|
221
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">custom_templates</span>
|
222
|
+
<span class="ruby-ivar">@custom_templates</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">get_list</span> <span class="ruby-constant">TEMPLATES_DIR_NAME</span>, <span class="ruby-value">:custom</span>
|
223
|
+
<span class="ruby-keyword">end</span></pre>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
|
234
|
+
<div id="method-c-default_tasks" class="method-detail ">
|
235
|
+
|
236
|
+
<div class="method-heading">
|
237
|
+
<span class="method-name">default_tasks</span><span
|
238
|
+
class="method-args">()</span>
|
239
|
+
|
240
|
+
<span class="method-click-advice">click to toggle source</span>
|
241
|
+
|
242
|
+
</div>
|
243
|
+
|
244
|
+
|
245
|
+
<div class="method-description">
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
<div class="method-source-code" id="default_tasks-source">
|
253
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 31</span>
|
254
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">default_tasks</span>
|
255
|
+
<span class="ruby-ivar">@default_tasks</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">get_list</span> <span class="ruby-constant">TASKS_DIR_NAME</span>, <span class="ruby-value">:default</span>
|
256
|
+
<span class="ruby-keyword">end</span></pre>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
<div id="method-c-default_templates" class="method-detail ">
|
268
|
+
|
269
|
+
<div class="method-heading">
|
270
|
+
<span class="method-name">default_templates</span><span
|
271
|
+
class="method-args">()</span>
|
272
|
+
|
273
|
+
<span class="method-click-advice">click to toggle source</span>
|
274
|
+
|
275
|
+
</div>
|
276
|
+
|
277
|
+
|
278
|
+
<div class="method-description">
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-source-code" id="default_templates-source">
|
286
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 23</span>
|
287
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">default_templates</span>
|
288
|
+
<span class="ruby-ivar">@default_templates</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">get_list</span> <span class="ruby-constant">TEMPLATES_DIR_NAME</span>, <span class="ruby-value">:default</span>
|
289
|
+
<span class="ruby-keyword">end</span></pre>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
<div id="method-c-tasks" class="method-detail ">
|
301
|
+
|
302
|
+
<div class="method-heading">
|
303
|
+
<span class="method-name">tasks</span><span
|
304
|
+
class="method-args">()</span>
|
305
|
+
|
306
|
+
<span class="method-click-advice">click to toggle source</span>
|
307
|
+
|
308
|
+
</div>
|
309
|
+
|
310
|
+
|
311
|
+
<div class="method-description">
|
312
|
+
|
313
|
+
<p>List all the available tasks</p>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
<div class="method-source-code" id="tasks-source">
|
319
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 13</span>
|
320
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">tasks</span>
|
321
|
+
<span class="ruby-identifier">custom_tasks</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">default_tasks</span>
|
322
|
+
<span class="ruby-keyword">end</span></pre>
|
323
|
+
</div>
|
324
|
+
|
325
|
+
</div>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
</div>
|
331
|
+
|
332
|
+
|
333
|
+
<div id="method-c-templates" class="method-detail ">
|
334
|
+
|
335
|
+
<div class="method-heading">
|
336
|
+
<span class="method-name">templates</span><span
|
337
|
+
class="method-args">()</span>
|
338
|
+
|
339
|
+
<span class="method-click-advice">click to toggle source</span>
|
340
|
+
|
341
|
+
</div>
|
342
|
+
|
343
|
+
|
344
|
+
<div class="method-description">
|
345
|
+
|
346
|
+
<p>List all the available templates</p>
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<div class="method-source-code" id="templates-source">
|
352
|
+
<pre><span class="ruby-comment"># File lib/new.rb, line 19</span>
|
353
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">templates</span>
|
354
|
+
<span class="ruby-identifier">custom_templates</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">default_templates</span>
|
355
|
+
<span class="ruby-keyword">end</span></pre>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</div>
|
364
|
+
|
365
|
+
|
366
|
+
</section>
|
367
|
+
|
368
|
+
</section>
|
369
|
+
</main>
|
370
|
+
|
371
|
+
|
372
|
+
<footer id="validator-badges" role="contentinfo">
|
373
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
374
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
375
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
376
|
+
</footer>
|
377
|
+
|