standup_md 0.3.2 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -9
- data/README.md +67 -34
- data/Rakefile +3 -1
- data/doc/README_md.html +54 -54
- data/doc/StandupMD.html +8 -97
- data/doc/StandupMD/Cli.html +21 -163
- data/doc/StandupMD/Cli/Helpers.html +13 -34
- data/doc/StandupMD/Config.html +7 -44
- data/doc/StandupMD/Config/Cli.html +26 -85
- data/doc/StandupMD/Config/Entry.html +23 -67
- data/doc/StandupMD/Config/EntryList.html +22 -48
- data/doc/StandupMD/Config/File.html +27 -155
- data/doc/StandupMD/Entry.html +11 -120
- data/doc/StandupMD/EntryList.html +101 -361
- data/doc/StandupMD/File.html +51 -182
- data/doc/StandupMD/Version.html +143 -0
- data/doc/created.rid +15 -15
- data/doc/css/rdoc.css +1 -1
- data/doc/index.html +52 -67
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +51 -110
- data/lib/standup_md.rb +3 -2
- data/lib/standup_md/cli.rb +2 -3
- data/lib/standup_md/cli/helpers.rb +66 -34
- data/lib/standup_md/config.rb +2 -2
- data/lib/standup_md/config/cli.rb +22 -21
- data/lib/standup_md/config/entry.rb +12 -7
- data/lib/standup_md/config/entry_list.rb +8 -3
- data/lib/standup_md/config/file.rb +24 -14
- data/lib/standup_md/entry.rb +2 -2
- data/lib/standup_md/entry_list.rb +24 -41
- data/lib/standup_md/file.rb +32 -15
- data/lib/standup_md/file/helpers.rb +13 -15
- data/lib/standup_md/version.rb +23 -4
- data/standup_md.gemspec +12 -16
- metadata +7 -6
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="module">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -62,14 +60,13 @@
|
|
62
60
|
|
63
61
|
|
64
62
|
|
65
|
-
|
63
|
+
|
64
|
+
<!-- Method Quickref -->
|
66
65
|
<div id="method-list-section" class="nav-section">
|
67
66
|
<h3>Methods</h3>
|
68
67
|
|
69
68
|
<ul class="link-list" role="directory">
|
70
|
-
|
71
69
|
<li ><a href="#method-i-print">#print</a>
|
72
|
-
|
73
70
|
</ul>
|
74
71
|
</div>
|
75
72
|
|
@@ -87,81 +84,63 @@
|
|
87
84
|
|
88
85
|
</section>
|
89
86
|
|
90
|
-
|
91
87
|
<section id="5Buntitled-5D" class="documentation-section">
|
92
|
-
|
93
88
|
|
94
|
-
|
95
89
|
|
96
|
-
|
97
90
|
|
98
|
-
|
99
91
|
|
100
|
-
|
92
|
+
|
101
93
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
102
94
|
<header>
|
103
95
|
<h3>Public Instance Methods</h3>
|
104
96
|
</header>
|
105
97
|
|
106
|
-
|
107
98
|
<div id="method-i-print" class="method-detail ">
|
108
|
-
|
109
99
|
<div class="method-heading">
|
110
100
|
<span class="method-name">print</span><span
|
111
101
|
class="method-args">(entry)</span>
|
112
|
-
|
113
102
|
<span class="method-click-advice">click to toggle source</span>
|
114
|
-
|
115
103
|
</div>
|
116
|
-
|
117
104
|
|
118
105
|
<div class="method-description">
|
119
|
-
|
120
106
|
<p>Print an entry to the command line.</p>
|
121
107
|
|
122
108
|
<p>@param [StandupMD::Entry] entry</p>
|
123
109
|
|
124
110
|
<p>@return [nil]</p>
|
125
|
-
|
126
|
-
|
127
111
|
|
128
|
-
|
129
112
|
<div class="method-source-code" id="print-source">
|
130
|
-
<pre><span class="ruby-comment"># File lib/standup_md/cli/helpers.rb, line
|
113
|
+
<pre><span class="ruby-comment"># File lib/standup_md/cli/helpers.rb, line 14</span>
|
131
114
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">print</span>(<span class="ruby-identifier">entry</span>)
|
132
115
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">nil?</span>
|
133
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"No record found for #{
|
116
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"No record found for #{config.cli.date}"</span>
|
134
117
|
<span class="ruby-keyword">return</span>
|
135
118
|
<span class="ruby-keyword">end</span>
|
136
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-
|
137
|
-
<span class="ruby-
|
138
|
-
<span class="ruby-identifier">tasks</span> = <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">
|
119
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">header</span>(<span class="ruby-identifier">entry</span>)
|
120
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">sub_header_order</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">header_type</span><span class="ruby-operator">|</span>
|
121
|
+
<span class="ruby-identifier">tasks</span> = <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">public_send</span>(<span class="ruby-identifier">header_type</span>)
|
139
122
|
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">tasks</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">tasks</span>.<span class="ruby-identifier">empty?</span>
|
140
|
-
|
141
|
-
<span class="ruby-identifier">
|
123
|
+
|
124
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">sub_header</span>(<span class="ruby-identifier">header_type</span>)
|
125
|
+
<span class="ruby-identifier">tasks</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">task</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">bullet_character</span> <span class="ruby-operator">+</span> <span class="ruby-string">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">task</span> }
|
142
126
|
<span class="ruby-keyword">end</span>
|
143
127
|
<span class="ruby-identifier">puts</span>
|
144
128
|
<span class="ruby-keyword">end</span></pre>
|
145
129
|
</div>
|
146
|
-
|
147
130
|
</div>
|
148
131
|
|
149
|
-
|
150
132
|
|
151
|
-
|
152
133
|
</div>
|
153
134
|
|
154
|
-
|
155
135
|
</section>
|
156
|
-
|
157
|
-
</section>
|
158
136
|
|
137
|
+
</section>
|
159
138
|
</main>
|
160
139
|
|
161
140
|
|
162
141
|
<footer id="validator-badges" role="contentinfo">
|
163
142
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
164
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
143
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
165
144
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
166
145
|
</footer>
|
167
146
|
|
data/doc/StandupMD/Config.html
CHANGED
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="class">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -59,24 +57,22 @@
|
|
59
57
|
|
60
58
|
<div id="class-metadata">
|
61
59
|
|
62
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
63
62
|
<h3>Parent</h3>
|
64
63
|
|
65
|
-
|
66
64
|
<p class="link">Object
|
67
|
-
|
68
65
|
</div>
|
69
66
|
|
70
67
|
|
71
68
|
|
72
|
-
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
73
71
|
<div id="method-list-section" class="nav-section">
|
74
72
|
<h3>Methods</h3>
|
75
73
|
|
76
74
|
<ul class="link-list" role="directory">
|
77
|
-
|
78
75
|
<li ><a href="#method-c-new">::new</a>
|
79
|
-
|
80
76
|
</ul>
|
81
77
|
</div>
|
82
78
|
|
@@ -94,21 +90,15 @@
|
|
94
90
|
|
95
91
|
</section>
|
96
92
|
|
97
|
-
|
98
93
|
<section id="5Buntitled-5D" class="documentation-section">
|
99
|
-
|
100
94
|
|
101
|
-
|
102
95
|
|
103
|
-
|
104
96
|
|
105
|
-
|
106
97
|
<section class="attribute-method-details" class="method-section">
|
107
98
|
<header>
|
108
99
|
<h3>Attributes</h3>
|
109
100
|
</header>
|
110
101
|
|
111
|
-
|
112
102
|
<div id="attribute-i-cli" class="method-detail">
|
113
103
|
<div class="method-heading attribute-method-heading">
|
114
104
|
<span class="method-name">cli</span><span
|
@@ -116,14 +106,11 @@
|
|
116
106
|
</div>
|
117
107
|
|
118
108
|
<div class="method-description">
|
119
|
-
|
120
109
|
<p>Reader for <a href="Config/Cli.html"><code>Cli</code></a> config.</p>
|
121
110
|
|
122
111
|
<p>@return [StandupMD::Config::Cli]</p>
|
123
|
-
|
124
112
|
</div>
|
125
113
|
</div>
|
126
|
-
|
127
114
|
<div id="attribute-i-entry" class="method-detail">
|
128
115
|
<div class="method-heading attribute-method-heading">
|
129
116
|
<span class="method-name">entry</span><span
|
@@ -131,14 +118,11 @@
|
|
131
118
|
</div>
|
132
119
|
|
133
120
|
<div class="method-description">
|
134
|
-
|
135
121
|
<p>Reader for <a href="Config/Entry.html"><code>Entry</code></a> config.</p>
|
136
122
|
|
137
123
|
<p>@return [StandupMD::Config::Entry]</p>
|
138
|
-
|
139
124
|
</div>
|
140
125
|
</div>
|
141
|
-
|
142
126
|
<div id="attribute-i-entry_list" class="method-detail">
|
143
127
|
<div class="method-heading attribute-method-heading">
|
144
128
|
<span class="method-name">entry_list</span><span
|
@@ -146,14 +130,11 @@
|
|
146
130
|
</div>
|
147
131
|
|
148
132
|
<div class="method-description">
|
149
|
-
|
150
133
|
<p>Reader for <a href="Config/EntryList.html"><code>EntryList</code></a> config.</p>
|
151
134
|
|
152
135
|
<p>@return [StandupMD::Config::EntryList]</p>
|
153
|
-
|
154
136
|
</div>
|
155
137
|
</div>
|
156
|
-
|
157
138
|
<div id="attribute-i-file" class="method-detail">
|
158
139
|
<div class="method-heading attribute-method-heading">
|
159
140
|
<span class="method-name">file</span><span
|
@@ -161,42 +142,29 @@
|
|
161
142
|
</div>
|
162
143
|
|
163
144
|
<div class="method-description">
|
164
|
-
|
165
145
|
<p>Reader for <a href="Config/File.html"><code>File</code></a> config.</p>
|
166
146
|
|
167
147
|
<p>@return [StandupMD::Config::File]</p>
|
168
|
-
|
169
148
|
</div>
|
170
149
|
</div>
|
171
|
-
|
172
150
|
</section>
|
173
|
-
|
174
151
|
|
175
|
-
|
152
|
+
|
176
153
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
177
154
|
<header>
|
178
155
|
<h3>Public Class Methods</h3>
|
179
156
|
</header>
|
180
157
|
|
181
|
-
|
182
158
|
<div id="method-c-new" class="method-detail ">
|
183
|
-
|
184
159
|
<div class="method-heading">
|
185
160
|
<span class="method-name">new</span><span
|
186
161
|
class="method-args">()</span>
|
187
|
-
|
188
162
|
<span class="method-click-advice">click to toggle source</span>
|
189
|
-
|
190
163
|
</div>
|
191
|
-
|
192
164
|
|
193
165
|
<div class="method-description">
|
194
|
-
|
195
166
|
<p>Builds the links to the configuration classes.</p>
|
196
|
-
|
197
|
-
|
198
167
|
|
199
|
-
|
200
168
|
<div class="method-source-code" id="new-source">
|
201
169
|
<pre><span class="ruby-comment"># File lib/standup_md/config.rb, line 38</span>
|
202
170
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
|
@@ -206,25 +174,20 @@
|
|
206
174
|
<span class="ruby-ivar">@entry_list</span> = <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">EntryList</span>.<span class="ruby-identifier">new</span>
|
207
175
|
<span class="ruby-keyword">end</span></pre>
|
208
176
|
</div>
|
209
|
-
|
210
177
|
</div>
|
211
178
|
|
212
|
-
|
213
179
|
|
214
|
-
|
215
180
|
</div>
|
216
181
|
|
217
|
-
|
218
182
|
</section>
|
219
|
-
|
220
|
-
</section>
|
221
183
|
|
184
|
+
</section>
|
222
185
|
</main>
|
223
186
|
|
224
187
|
|
225
188
|
<footer id="validator-badges" role="contentinfo">
|
226
189
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
227
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
190
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
228
191
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
229
192
|
</footer>
|
230
193
|
|
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="class">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -59,26 +57,23 @@
|
|
59
57
|
|
60
58
|
<div id="class-metadata">
|
61
59
|
|
62
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
63
62
|
<h3>Parent</h3>
|
64
63
|
|
65
|
-
|
66
64
|
<p class="link">Object
|
67
|
-
|
68
65
|
</div>
|
69
66
|
|
70
67
|
|
71
68
|
|
72
|
-
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
73
71
|
<div id="method-list-section" class="nav-section">
|
74
72
|
<h3>Methods</h3>
|
75
73
|
|
76
74
|
<ul class="link-list" role="directory">
|
77
|
-
|
78
75
|
<li ><a href="#method-c-new">::new</a>
|
79
|
-
|
80
76
|
<li ><a href="#method-i-reset">#reset</a>
|
81
|
-
|
82
77
|
</ul>
|
83
78
|
</div>
|
84
79
|
|
@@ -96,21 +91,26 @@
|
|
96
91
|
|
97
92
|
</section>
|
98
93
|
|
99
|
-
|
100
94
|
<section id="5Buntitled-5D" class="documentation-section">
|
101
|
-
|
102
95
|
|
103
|
-
|
104
96
|
|
105
|
-
|
97
|
+
<section class="constants-list">
|
98
|
+
<header>
|
99
|
+
<h3>Constants</h3>
|
100
|
+
</header>
|
101
|
+
<dl>
|
102
|
+
<dt id="DEFAULTS">DEFAULTS
|
103
|
+
<dd><p>The default options.</p>
|
104
|
+
|
105
|
+
<p>@return [Hash]</p>
|
106
|
+
</dl>
|
107
|
+
</section>
|
106
108
|
|
107
|
-
|
108
109
|
<section class="attribute-method-details" class="method-section">
|
109
110
|
<header>
|
110
111
|
<h3>Attributes</h3>
|
111
112
|
</header>
|
112
113
|
|
113
|
-
|
114
114
|
<div id="attribute-i-auto_fill_previous" class="method-detail">
|
115
115
|
<div class="method-heading attribute-method-heading">
|
116
116
|
<span class="method-name">auto_fill_previous</span><span
|
@@ -118,16 +118,13 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
|
-
|
122
121
|
<p>When writing a new entry, should 'previous' be pulled from the last entry?</p>
|
123
122
|
|
124
123
|
<p>@param [Boolean] <a href="Cli.html#attribute-i-auto_fill_previous"><code>auto_fill_previous</code></a></p>
|
125
124
|
|
126
125
|
<p>@return [Boolean]</p>
|
127
|
-
|
128
126
|
</div>
|
129
127
|
</div>
|
130
|
-
|
131
128
|
<div id="attribute-i-date" class="method-detail">
|
132
129
|
<div class="method-heading attribute-method-heading">
|
133
130
|
<span class="method-name">date</span><span
|
@@ -135,16 +132,13 @@
|
|
135
132
|
</div>
|
136
133
|
|
137
134
|
<div class="method-description">
|
138
|
-
|
139
|
-
<p>The date to use to find the file.</p>
|
135
|
+
<p>The date to use to find the entry.</p>
|
140
136
|
|
141
137
|
<p>@param [Date] date</p>
|
142
138
|
|
143
139
|
<p>@return [Date]</p>
|
144
|
-
|
145
140
|
</div>
|
146
141
|
</div>
|
147
|
-
|
148
142
|
<div id="attribute-i-edit" class="method-detail">
|
149
143
|
<div class="method-heading attribute-method-heading">
|
150
144
|
<span class="method-name">edit</span><span
|
@@ -152,16 +146,13 @@
|
|
152
146
|
</div>
|
153
147
|
|
154
148
|
<div class="method-description">
|
155
|
-
|
156
149
|
<p>Should the cli edit?</p>
|
157
150
|
|
158
151
|
<p>@param [Boolean] edit</p>
|
159
152
|
|
160
153
|
<p>@return [Boolean]</p>
|
161
|
-
|
162
154
|
</div>
|
163
155
|
</div>
|
164
|
-
|
165
156
|
<div id="attribute-i-editor" class="method-detail">
|
166
157
|
<div class="method-heading attribute-method-heading">
|
167
158
|
<span class="method-name">editor</span><span
|
@@ -169,16 +160,13 @@
|
|
169
160
|
</div>
|
170
161
|
|
171
162
|
<div class="method-description">
|
172
|
-
|
173
163
|
<p>The editor to use when opening standup files. If one is not set, the first of $VISUAL, $EDITOR, or vim will be used, in that order.</p>
|
174
164
|
|
175
165
|
<p>@param [String] editor</p>
|
176
166
|
|
177
167
|
<p>@return [String]</p>
|
178
|
-
|
179
168
|
</div>
|
180
169
|
</div>
|
181
|
-
|
182
170
|
<div id="attribute-i-preference_file" class="method-detail">
|
183
171
|
<div class="method-heading attribute-method-heading">
|
184
172
|
<span class="method-name">preference_file</span><span
|
@@ -186,16 +174,13 @@
|
|
186
174
|
</div>
|
187
175
|
|
188
176
|
<div class="method-description">
|
189
|
-
|
190
177
|
<p>The preference file for <a href="Cli.html"><code>Cli</code></a>.</p>
|
191
178
|
|
192
179
|
<p>@param [String] preference</p>
|
193
180
|
|
194
181
|
<p>@return [String]</p>
|
195
|
-
|
196
182
|
</div>
|
197
183
|
</div>
|
198
|
-
|
199
184
|
<div id="attribute-i-print" class="method-detail">
|
200
185
|
<div class="method-heading attribute-method-heading">
|
201
186
|
<span class="method-name">print</span><span
|
@@ -203,16 +188,13 @@
|
|
203
188
|
</div>
|
204
189
|
|
205
190
|
<div class="method-description">
|
206
|
-
|
207
|
-
<p>Should the cli print the entry?</p>
|
191
|
+
<p>Should the cli print the entry to the command line?</p>
|
208
192
|
|
209
193
|
<p>@param [Boolean] print</p>
|
210
194
|
|
211
195
|
<p>@return [Boolean]</p>
|
212
|
-
|
213
196
|
</div>
|
214
197
|
</div>
|
215
|
-
|
216
198
|
<div id="attribute-i-verbose" class="method-detail">
|
217
199
|
<div class="method-heading attribute-method-heading">
|
218
200
|
<span class="method-name">verbose</span><span
|
@@ -220,16 +202,13 @@
|
|
220
202
|
</div>
|
221
203
|
|
222
204
|
<div class="method-description">
|
223
|
-
|
224
205
|
<p>Should the cli print verbose output?</p>
|
225
206
|
|
226
207
|
<p>@param [Boolean] verbose</p>
|
227
208
|
|
228
209
|
<p>@return [Boolean]</p>
|
229
|
-
|
230
210
|
</div>
|
231
211
|
</div>
|
232
|
-
|
233
212
|
<div id="attribute-i-write" class="method-detail">
|
234
213
|
<div class="method-heading attribute-method-heading">
|
235
214
|
<span class="method-name">write</span><span
|
@@ -237,119 +216,81 @@
|
|
237
216
|
</div>
|
238
217
|
|
239
218
|
<div class="method-description">
|
240
|
-
|
241
|
-
<p>Should the cli write the file?</p>
|
219
|
+
<p>Should the cli automatically write the new entry to the file?</p>
|
242
220
|
|
243
221
|
<p>@param [Boolean] write</p>
|
244
222
|
|
245
223
|
<p>@return [Boolean]</p>
|
246
|
-
|
247
224
|
</div>
|
248
225
|
</div>
|
249
|
-
|
250
226
|
</section>
|
251
|
-
|
252
227
|
|
253
|
-
|
228
|
+
|
254
229
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
255
230
|
<header>
|
256
231
|
<h3>Public Class Methods</h3>
|
257
232
|
</header>
|
258
233
|
|
259
|
-
|
260
234
|
<div id="method-c-new" class="method-detail ">
|
261
|
-
|
262
235
|
<div class="method-heading">
|
263
236
|
<span class="method-name">new</span><span
|
264
237
|
class="method-args">()</span>
|
265
|
-
|
266
238
|
<span class="method-click-advice">click to toggle source</span>
|
267
|
-
|
268
239
|
</div>
|
269
|
-
|
270
240
|
|
271
241
|
<div class="method-description">
|
272
|
-
|
273
242
|
<p>Initializes the config with default values.</p>
|
274
|
-
|
275
|
-
|
276
243
|
|
277
|
-
|
278
244
|
<div class="method-source-code" id="new-source">
|
279
|
-
<pre><span class="ruby-comment"># File lib/standup_md/config/cli.rb, line
|
245
|
+
<pre><span class="ruby-comment"># File lib/standup_md/config/cli.rb, line 94</span>
|
280
246
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
|
281
247
|
<span class="ruby-identifier">reset</span>
|
282
248
|
<span class="ruby-keyword">end</span></pre>
|
283
249
|
</div>
|
284
|
-
|
285
250
|
</div>
|
286
251
|
|
287
|
-
|
288
252
|
|
289
|
-
|
290
253
|
</div>
|
291
254
|
|
292
|
-
|
293
255
|
</section>
|
294
|
-
|
256
|
+
|
295
257
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
296
258
|
<header>
|
297
259
|
<h3>Public Instance Methods</h3>
|
298
260
|
</header>
|
299
261
|
|
300
|
-
|
301
262
|
<div id="method-i-reset" class="method-detail ">
|
302
|
-
|
303
263
|
<div class="method-heading">
|
304
264
|
<span class="method-name">reset</span><span
|
305
265
|
class="method-args">()</span>
|
306
|
-
|
307
266
|
<span class="method-click-advice">click to toggle source</span>
|
308
|
-
|
309
267
|
</div>
|
310
|
-
|
311
268
|
|
312
269
|
<div class="method-description">
|
313
|
-
|
314
270
|
<p>Sets all config values back to their defaults.</p>
|
315
271
|
|
316
|
-
<p>@return [
|
317
|
-
|
318
|
-
|
272
|
+
<p>@return [Hash]</p>
|
319
273
|
|
320
|
-
|
321
274
|
<div class="method-source-code" id="reset-source">
|
322
|
-
<pre><span class="ruby-comment"># File lib/standup_md/config/cli.rb, line
|
275
|
+
<pre><span class="ruby-comment"># File lib/standup_md/config/cli.rb, line 102</span>
|
323
276
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">reset</span>
|
324
|
-
<span class="ruby-
|
325
|
-
<span class="ruby-ivar">@editor</span> = <span class="ruby-identifier">set_editor</span>
|
326
|
-
<span class="ruby-ivar">@verbose</span> = <span class="ruby-keyword">false</span>
|
327
|
-
<span class="ruby-ivar">@edit</span> = <span class="ruby-keyword">true</span>
|
328
|
-
<span class="ruby-ivar">@write</span> = <span class="ruby-keyword">true</span>
|
329
|
-
<span class="ruby-ivar">@print</span> = <span class="ruby-keyword">false</span>
|
330
|
-
<span class="ruby-ivar">@auto_fill_previous</span> = <span class="ruby-keyword">true</span>
|
331
|
-
<span class="ruby-ivar">@preference_file</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">'HOME'</span>], <span class="ruby-string">'.standuprc'</span>))
|
277
|
+
<span class="ruby-constant">DEFAULTS</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{k}"</span>, <span class="ruby-identifier">v</span>) }
|
332
278
|
<span class="ruby-keyword">end</span></pre>
|
333
279
|
</div>
|
334
|
-
|
335
280
|
</div>
|
336
281
|
|
337
|
-
|
338
282
|
|
339
|
-
|
340
283
|
</div>
|
341
284
|
|
342
|
-
|
343
285
|
</section>
|
344
|
-
|
345
|
-
</section>
|
346
286
|
|
287
|
+
</section>
|
347
288
|
</main>
|
348
289
|
|
349
290
|
|
350
291
|
<footer id="validator-badges" role="contentinfo">
|
351
292
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
352
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
293
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
353
294
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
354
295
|
</footer>
|
355
296
|
|