standup_md 0.1.1 → 0.3.0
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +9 -3
- data/README.md +183 -97
- data/Rakefile +11 -28
- data/bin/standup +1 -1
- data/doc/README_md.html +185 -78
- data/doc/StandupMD.html +102 -1227
- data/doc/StandupMD/Cli.html +124 -474
- data/doc/StandupMD/Cli/Helpers.html +167 -0
- data/doc/StandupMD/Config.html +230 -0
- data/doc/StandupMD/Config/Cli.html +355 -0
- data/doc/StandupMD/Config/Entry.html +284 -0
- data/doc/StandupMD/Config/EntryList.html +197 -0
- data/doc/StandupMD/Config/File.html +609 -0
- data/doc/StandupMD/Entry.html +478 -0
- data/doc/StandupMD/EntryList.html +759 -0
- data/doc/StandupMD/File.html +574 -0
- data/doc/created.rid +15 -8
- data/doc/index.html +192 -78
- 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 +152 -247
- data/lib/standup_md.rb +29 -501
- data/lib/standup_md/cli.rb +63 -242
- data/lib/standup_md/cli/helpers.rb +165 -0
- data/lib/standup_md/config.rb +45 -0
- data/lib/standup_md/config/cli.rb +106 -0
- data/lib/standup_md/config/entry.rb +61 -0
- data/lib/standup_md/config/entry_list.rb +26 -0
- data/lib/standup_md/config/file.rb +199 -0
- data/lib/standup_md/entry.rb +121 -0
- data/lib/standup_md/entry_list.rb +166 -0
- data/lib/standup_md/file.rb +172 -0
- data/lib/standup_md/file/helpers.rb +62 -0
- data/lib/standup_md/version.rb +5 -3
- data/standup_md.gemspec +1 -0
- metadata +35 -4
- data/doc/TestHelper.html +0 -282
- data/doc/TestStandupMD.html +0 -1938
@@ -1,8 +1,15 @@
|
|
1
|
-
Wed,
|
2
|
-
README.md Wed,
|
3
|
-
lib/standup_md.rb
|
4
|
-
lib/standup_md/cli.rb Wed,
|
5
|
-
lib/standup_md/
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
Wed, 10 Jun 2020 22:18:21 -0500
|
2
|
+
README.md Wed, 10 Jun 2020 22:17:47 -0500
|
3
|
+
lib/standup_md.rb Wed, 10 Jun 2020 22:14:30 -0500
|
4
|
+
lib/standup_md/cli.rb Wed, 10 Jun 2020 22:14:30 -0500
|
5
|
+
lib/standup_md/cli/helpers.rb Wed, 10 Jun 2020 22:14:30 -0500
|
6
|
+
lib/standup_md/config.rb Wed, 10 Jun 2020 22:14:30 -0500
|
7
|
+
lib/standup_md/config/cli.rb Wed, 10 Jun 2020 22:14:30 -0500
|
8
|
+
lib/standup_md/config/entry.rb Wed, 10 Jun 2020 22:14:30 -0500
|
9
|
+
lib/standup_md/config/entry_list.rb Wed, 10 Jun 2020 22:14:30 -0500
|
10
|
+
lib/standup_md/config/file.rb Wed, 10 Jun 2020 22:14:30 -0500
|
11
|
+
lib/standup_md/entry.rb Wed, 10 Jun 2020 22:14:30 -0500
|
12
|
+
lib/standup_md/entry_list.rb Wed, 10 Jun 2020 22:14:30 -0500
|
13
|
+
lib/standup_md/file.rb Wed, 10 Jun 2020 22:14:30 -0500
|
14
|
+
lib/standup_md/file/helpers.rb Wed, 10 Jun 2020 22:14:30 -0500
|
15
|
+
lib/standup_md/version.rb Wed, 10 Jun 2020 20:28:21 -0500
|
@@ -76,9 +76,23 @@
|
|
76
76
|
|
77
77
|
<li><a href="./StandupMD/Cli.html">StandupMD::Cli</a>
|
78
78
|
|
79
|
-
<li><a href="./
|
79
|
+
<li><a href="./StandupMD/Cli/Helpers.html">StandupMD::Cli::Helpers</a>
|
80
80
|
|
81
|
-
<li><a href="./
|
81
|
+
<li><a href="./StandupMD/Config.html">StandupMD::Config</a>
|
82
|
+
|
83
|
+
<li><a href="./StandupMD/Config/Cli.html">StandupMD::Config::Cli</a>
|
84
|
+
|
85
|
+
<li><a href="./StandupMD/Config/Entry.html">StandupMD::Config::Entry</a>
|
86
|
+
|
87
|
+
<li><a href="./StandupMD/Config/EntryList.html">StandupMD::Config::EntryList</a>
|
88
|
+
|
89
|
+
<li><a href="./StandupMD/Config/File.html">StandupMD::Config::File</a>
|
90
|
+
|
91
|
+
<li><a href="./StandupMD/Entry.html">StandupMD::Entry</a>
|
92
|
+
|
93
|
+
<li><a href="./StandupMD/EntryList.html">StandupMD::EntryList</a>
|
94
|
+
|
95
|
+
<li><a href="./StandupMD/File.html">StandupMD::File</a>
|
82
96
|
|
83
97
|
</ul>
|
84
98
|
</div>
|
@@ -91,6 +105,8 @@
|
|
91
105
|
|
92
106
|
<h1 id="label-The+Standup+Doctor">The Standup Doctor<span><a href="#label-The+Standup+Doctor">¶</a> <a href="#top">↑</a></span></h1>
|
93
107
|
|
108
|
+
<p><a href="https://actions-badge.atrox.dev/evanthegrayt/standup_md/goto?ref=master"><img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fevanthegrayt%2Fstandup_md%2Fbadge%3Fref%3Dmaster&style=flat"></a> <a href="https://badge.fury.io/rb/standup_md"><img src="https://badge.fury.io/rb/standup_md.svg"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg"></a></p>
|
109
|
+
|
94
110
|
<blockquote>
|
95
111
|
<p>The cure for all your standup woes.</p>
|
96
112
|
</blockquote>
|
@@ -111,13 +127,29 @@
|
|
111
127
|
</li><li>
|
112
128
|
<p><a href="#usage">Usage</a></p>
|
113
129
|
</li><li>
|
114
|
-
<p><a href="#
|
130
|
+
<p><a href="#command-line">Command Line</a></p>
|
131
|
+
<ul><li>
|
132
|
+
<p><a href="#cli-examples">CLI Examples</a></p>
|
133
|
+
</li><li>
|
134
|
+
<p><a href="#adding-an-entry-for-today-via-editor">Adding an entry for today via editor</a></p>
|
135
|
+
</li><li>
|
136
|
+
<p><a href="#copy-the-entry-for-today-to-clipboard">Copy the entry for today to clipboard</a></p>
|
137
|
+
</li><li>
|
138
|
+
<p><a href="#add-entry-to-file-without-opening-it">Add entry to file without opening it</a></p>
|
139
|
+
</li><li>
|
140
|
+
<p><a href="#find-an-entry-by-date-and-print-it">Find an entry by date and print it</a></p>
|
115
141
|
</li><li>
|
116
142
|
<p><a href="#customization-and-runtime-options">Customization and Runtime Options</a></p>
|
117
143
|
</li><li>
|
144
|
+
<p><a href="#using-existing-standup-files">Using existing standup files</a></p>
|
145
|
+
</li></ul>
|
146
|
+
</li><li>
|
118
147
|
<p><a href="#api">API</a></p>
|
148
|
+
<ul><li>
|
149
|
+
<p><a href="#api-examples">API Examples</a></p>
|
119
150
|
</li><li>
|
120
151
|
<p><a href="https://evanthegrayt.github.io/standup_md/doc/index.html">Documentation</a></p>
|
152
|
+
</li></ul>
|
121
153
|
</li><li>
|
122
154
|
<p><a href="#reporting-bugs-and-requesting-features">Reporting Bugs and Requesting Features</a></p>
|
123
155
|
</li><li>
|
@@ -126,11 +158,9 @@
|
|
126
158
|
|
127
159
|
<h2 id="label-About">About<span><a href="#label-About">¶</a> <a href="#top">↑</a></span></h2>
|
128
160
|
|
129
|
-
<p>I've now been at two separate companies where we post our daily standups in a chat client, such as Slack, Mattermost, or Riot. Typing out my standup every day became tedious, as I'd have to look up what I did the day before, copy and paste yesterday's work into a new entry, and add today's tasks. This gem automates most of this process, along with providing means of opening the file in your editor, and displaying entries from the command line.</p>
|
130
|
-
|
131
|
-
<p>I wasn't sure that others would find this useful, but then the pandemic happened, which I assume made doing standups via chat much more common.</p>
|
161
|
+
<p>I've now been at two separate companies where we post our daily standups in a chat client, such as Slack, Mattermost, or Riot. Typing out my standup every day became tedious, as I'd have to look up what I did the day before, copy and paste yesterday's work into a new entry, and add today's tasks. This gem automates most of this process, along with providing means of opening the file in your editor, and finding and displaying entries from the command line.</p>
|
132
162
|
|
133
|
-
<p>In a nutshell, calling <code>standup</code> from the command line will open a standup file for the current month in your preferred editor. If an entry for today is already present, no text will be generated. If an entry for today doesn't exist, one will be generated,
|
163
|
+
<p>In a nutshell, calling <code>standup</code> from the command line will open a standup file for the current month in your preferred editor. If an entry for today is already present, no text will be generated. If an entry for today doesn't exist, one will be generated with your preferred values. When generating, if a previous entry exists, it will be added to today's entry as your previous day's work. See <a href="#example">example</a>. There's also a very robust API if you'd like to use this in your own code somehow.</p>
|
134
164
|
|
135
165
|
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
136
166
|
|
@@ -141,32 +171,35 @@
|
|
141
171
|
<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-identifier">install</span> <span class="ruby-identifier">standup_md</span>
|
142
172
|
</pre>
|
143
173
|
|
144
|
-
<p>
|
174
|
+
<p>To include in your project, add the following to your <code>Gemfile</code>.</p>
|
175
|
+
|
176
|
+
<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-string">'standup_md'</span>
|
177
|
+
</pre>
|
145
178
|
|
146
179
|
<h3 id="label-Manual+Installation">Manual Installation<span><a href="#label-Manual+Installation">¶</a> <a href="#top">↑</a></span></h3>
|
147
180
|
|
148
|
-
<p>From your terminal, clone the repository where you want it
|
181
|
+
<p>From your terminal, clone the repository where you want it, and use <code>rake</code> to install the gem.</p>
|
149
182
|
|
150
183
|
<pre>git clone https://github.com/evanthegrayt/standup_md.git
|
151
184
|
cd standup_md
|
152
185
|
|
153
186
|
# Use rake to build and install the gem.
|
154
|
-
rake install
|
155
|
-
|
156
|
-
# OR manually link the executable somewhere. If you use this method, you cannot
|
157
|
-
# move the repository after you link it!
|
158
|
-
ln -s $PWD/bin/standup /usr/local/bin/standup</pre>
|
187
|
+
rake install</pre>
|
159
188
|
|
160
189
|
<h2 id="label-Usage">Usage<span><a href="#label-Usage">¶</a> <a href="#top">↑</a></span></h2>
|
161
190
|
|
162
|
-
<
|
191
|
+
<h3 id="label-Command+Line">Command Line<span><a href="#label-Command+Line">¶</a> <a href="#top">↑</a></span></h3>
|
192
|
+
|
193
|
+
<p>For the most basic usage, simplyt call the executable.</p>
|
163
194
|
|
164
195
|
<pre class="ruby"><span class="ruby-identifier">standup</span>
|
165
196
|
</pre>
|
166
197
|
|
167
|
-
<p>This opens the current month's standup file. If an entry already exists for today, nothing is added. If no entry exists for today, the previous “Current” is placed in the “Previous” section of a new entry. The format of this file is very important;
|
198
|
+
<p>This opens the current month's standup file. If an entry already exists for today, nothing is added. If no entry exists for today, the previous “Current” is placed in the “Previous” section of a new entry. The format of this file is very important; you may add new entries, but don't change any of the headers. Doing so will cause the parser to break. If you want to customize the headers, you can do so in the <a href="#available-config-file-options-and-defaults">configuration file</a>.</p>
|
199
|
+
|
200
|
+
<h3 id="label-CLI+Examples">CLI Examples<span><a href="#label-CLI+Examples">¶</a> <a href="#top">↑</a></span></h3>
|
168
201
|
|
169
|
-
<
|
202
|
+
<h4 id="label-Adding+an+entry+for+today+via+editor">Adding an entry for today via editor<span><a href="#label-Adding+an+entry+for+today+via+editor">¶</a> <a href="#top">↑</a></span></h4>
|
170
203
|
|
171
204
|
<p>For example, if the standup entry from yesterday reads as follows:</p>
|
172
205
|
|
@@ -179,95 +212,176 @@ ln -s $PWD/bin/standup /usr/local/bin/standup
|
|
179
212
|
## Impediments
|
180
213
|
- None</pre>
|
181
214
|
|
182
|
-
<p>The following scaffolding will be added for current entry at the top of the file
|
215
|
+
<p>The following scaffolding will be added for current entry at the top of the file:</p>
|
216
|
+
|
217
|
+
<pre># 2020-04-14
|
218
|
+
## Previous
|
219
|
+
- Write new feature for `standup_md`
|
220
|
+
- Fix bug in `standup_md`
|
221
|
+
## Current
|
222
|
+
- <!-- ADD TODAY'S WORK HERE -->
|
223
|
+
## Impediments
|
224
|
+
- None</pre>
|
225
|
+
|
226
|
+
<h4 id="label-Copy+the+entry+for+today+to+clipboard">Copy the entry for today to clipboard<span><a href="#label-Copy+the+entry+for+today+to+clipboard">¶</a> <a href="#top">↑</a></span></h4>
|
183
227
|
|
184
228
|
<p>There are also flags that will print entries to the command line. There's a full list of features below, but as a quick example, you can copy today's entry to your clipboard without even opening your editor.</p>
|
185
229
|
|
186
|
-
<pre class="ruby"><span class="ruby-identifier">standup</span> <span class="ruby-operator">-</span><span class="ruby-identifier">
|
230
|
+
<pre class="ruby"><span class="ruby-identifier">standup</span> <span class="ruby-operator">-</span><span class="ruby-identifier">p</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">pbcopy</span>
|
187
231
|
</pre>
|
188
232
|
|
189
|
-
<
|
233
|
+
<p>If you wanted to add today's entry without opening your editor, and print the result to the command line, you could use the following.</p>
|
234
|
+
|
235
|
+
<h4 id="label-Add+entry+to+file+without+opening+it">Add entry to file without opening it<span><a href="#label-Add+entry+to+file+without+opening+it">¶</a> <a href="#top">↑</a></span></h4>
|
236
|
+
|
237
|
+
<pre>standup --no-edit --current "Work on this thing","And another thing" -p</pre>
|
238
|
+
|
239
|
+
<h4 id="label-Find+an+entry+by+date+and+print+it.">Find an entry by date and print it.<span><a href="#label-Find+an+entry+by+date+and+print+it.">¶</a> <a href="#top">↑</a></span></h4>
|
240
|
+
|
241
|
+
<p>If you wanted to find and print the entry for March 2nd, 2020, you could use the following.</p>
|
190
242
|
|
191
|
-
<
|
243
|
+
<pre>standup -p 2020-03-02</pre>
|
244
|
+
|
245
|
+
<h3 id="label-Customization+and+Runtime+Options">Customization and Runtime Options<span><a href="#label-Customization+and+Runtime+Options">¶</a> <a href="#top">↑</a></span></h3>
|
246
|
+
|
247
|
+
<p>You can create a file in your home directory called <code>~/.standuprc</code>. Settings located in this file will override default behavior. This file can also have settings overwritten at runtime by the use of options. You can view <a href="https://github.com/evanthegrayt/dotfiles/blob/master/dotfiles/standuprc">my config file</a> as an example. Any setting in this file can still be overridden at runtime by passing flags to the executable.</p>
|
192
248
|
|
193
249
|
<p>You'll notice, a lot of settings don't have the ability to be changed at runtime when calling the executable. This is because the file structure is very important, and changing values that affect formatting will cause problems with the file parser. If you don't want to use a default, make the change in your config file before you start editing standups. There is an <a href="https://github.com/evanthegrayt/standup_md/issues/16">open issue</a> for handling this for the user, but they're not available yet.</p>
|
194
250
|
|
195
251
|
<p>There are no options to change the headers at runtime because it uses the headers to detect tasks from previous entries. If changed at runtime, this would cause errors. For this reason, if you don't like the default headers, change them in your configuration file after installation, and then try to not change them again.</p>
|
196
252
|
|
197
|
-
<
|
198
|
-
|
199
|
-
<pre
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
- '
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
221
|
-
|
222
|
-
<
|
223
|
-
|
224
|
-
<
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
253
|
+
<h4 id="label-Available+Config+File+Options+and+Defaults">Available Config File Options and Defaults<span><a href="#label-Available+Config+File+Options+and+Defaults">¶</a> <a href="#top">↑</a></span></h4>
|
254
|
+
|
255
|
+
<pre class="ruby"><span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
256
|
+
<span class="ruby-comment"># Defaults for how the file is formatted.</span>
|
257
|
+
<span class="ruby-comment"># See https://evanthegrayt.github.io/standup_md/doc/StandupMD/Config/Cli.html</span>
|
258
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">header_date_format</span> = <span class="ruby-string">'%Y-%m-%d'</span>
|
259
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">header_depth</span> = <span class="ruby-value">1</span>
|
260
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">sub_header_depth</span> = <span class="ruby-value">2</span>
|
261
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">current_header</span> = <span class="ruby-string">'Current'</span>
|
262
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">previous_header</span> = <span class="ruby-string">'Previous'</span>
|
263
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">impediments_header</span> = <span class="ruby-string">'Impediments'</span>
|
264
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">notes_header</span> = <span class="ruby-string">'Notes'</span>
|
265
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-node">%w[previous current impediments notes]</span>
|
266
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">directory</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">'.cache'</span>, <span class="ruby-string">'standup_md'</span>)
|
267
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">bullet_character</span> = <span class="ruby-string">'-'</span>
|
268
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">name_format</span> = <span class="ruby-string">'%Y_%m.md'</span>
|
269
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">create</span> = <span class="ruby-keyword">true</span>
|
270
|
+
|
271
|
+
<span class="ruby-comment"># Defaults for entries</span>
|
272
|
+
<span class="ruby-comment"># See https://evanthegrayt.github.io/standup_md/doc/StandupMD/Config/Entry.html</span>
|
273
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">current</span> = [<span class="ruby-string">"<!-- ADD TODAY'S WORK HERE -->"</span>]
|
274
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">previous</span> = []
|
275
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">impediments</span> = [<span class="ruby-string">'None'</span>]
|
276
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">notes</span> = []
|
277
|
+
|
278
|
+
<span class="ruby-comment"># Defaults for executable runtime behavior.</span>
|
279
|
+
<span class="ruby-comment"># See https://evanthegrayt.github.io/standup_md/doc/StandupMD/Config/Cli.html</span>
|
280
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">date</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>
|
281
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">editor</span> = <span class="ruby-string">'vim'</span> <span class="ruby-comment"># Checks $VISUAL and $EDITOR first, in that order</span>
|
282
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword">false</span>
|
283
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">edit</span> = <span class="ruby-keyword">true</span>
|
284
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">write</span> = <span class="ruby-keyword">true</span>
|
285
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">print</span> = <span class="ruby-keyword">false</span>
|
286
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">auto_fill_previous</span> = <span class="ruby-keyword">true</span>
|
287
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">cli</span>.<span class="ruby-identifier">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>))
|
288
|
+
<span class="ruby-keyword">end</span>
|
289
|
+
</pre>
|
290
|
+
|
291
|
+
<h4 id="label-Executable+Flags">Executable Flags<span><a href="#label-Executable+Flags">¶</a> <a href="#top">↑</a></span></h4>
|
292
|
+
|
293
|
+
<pre>--current ARRAY List of current entry's tasks
|
294
|
+
--previous ARRAY List of precious entry's tasks
|
295
|
+
--impediments ARRAY List of impediments for current entry
|
296
|
+
--notes ARRAY List of notes for current entry
|
297
|
+
--sub-header-order ARRAY The order of the sub-headers when writing the file
|
298
|
+
-f, --file-name-format STRING Date-formattable string to use for standup file name
|
299
|
+
-E, --editor EDITOR Editor to use for opening standup files
|
300
|
+
-d, --directory DIRECTORY The directories where standup files are located
|
301
|
+
-w --[no-]write Write current entry if it doesn't exist. Default is true
|
302
|
+
-a --[no-]auto-fill-previous Auto-generate 'previous' tasks for new entries
|
303
|
+
-e --[no-]edit Open the file in the editor. Default is true
|
304
|
+
-v, --[no-]verbose Verbose output. Default is false.
|
305
|
+
-p, --print [DATE] Print current entry.
|
306
|
+
If DATE is passed, will print entry for DATE, if it exists.
|
307
|
+
DATE must be in the same format as file-name-format</pre>
|
240
308
|
|
241
309
|
<p>Any options not set in this file will retain their default values. Note that if you change <code>file_name_format</code>, and don't use a month or year, there will only ever be one standup file. This could cause issues long-term, as the files will get large over time and possibly cause performance issues.</p>
|
242
310
|
|
243
|
-
<
|
311
|
+
<h4 id="label-Using+Existing+Standup+Files">Using Existing Standup Files<span><a href="#label-Using+Existing+Standup+Files">¶</a> <a href="#top">↑</a></span></h4>
|
244
312
|
|
245
|
-
<
|
313
|
+
<p>If you already have a directory of existing standup files, you can use them, but they must be in a format that the parser can understand. The default is:</p>
|
314
|
+
|
315
|
+
<pre># 2020-05-01
|
316
|
+
## Previous
|
317
|
+
- task
|
318
|
+
## Current
|
319
|
+
- task
|
320
|
+
## Impediments
|
321
|
+
- impediment
|
322
|
+
## Notes
|
323
|
+
- notes, if any are present</pre>
|
324
|
+
|
325
|
+
<p>The order, words, date format, and header level are all customizable, but the overall format must be the same. If customization is necessary, this must be done in <code>~/.standuprc</code> before execution, or else the parser will error.</p>
|
326
|
+
|
327
|
+
<p>For example, if you wanted the format to be as follows:</p>
|
328
|
+
|
329
|
+
<pre>## 05/01/2020
|
330
|
+
### Today
|
331
|
+
* task
|
332
|
+
### Yesterday
|
333
|
+
* task
|
334
|
+
### Hold-ups
|
335
|
+
* impediment
|
336
|
+
### Notes
|
337
|
+
* notes, if any are present</pre>
|
338
|
+
|
339
|
+
<p>Your <code>~/.standuprc</code> should contain:</p>
|
340
|
+
|
341
|
+
<pre class="ruby"><span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
342
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">header_depth</span> <span class="ruby-value">2</span>
|
343
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">sub_header_depth</span> <span class="ruby-value">3</span>
|
344
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">current_header</span> <span class="ruby-constant">Today</span>
|
345
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">previous_header</span> <span class="ruby-constant">Yesterday</span>
|
346
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">impediments_header</span> <span class="ruby-constant">Hold</span><span class="ruby-operator">-</span><span class="ruby-identifier">ups</span>
|
347
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">bullet_character</span> <span class="ruby-string">'*'</span>
|
348
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">header_date_format</span> <span class="ruby-string">'%m/%d/%Y'</span>
|
349
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">sub_header_order</span> = <span class="ruby-node">%w[current previous impediments notes]</span>
|
350
|
+
<span class="ruby-keyword">end</span>
|
351
|
+
</pre>
|
246
352
|
|
247
353
|
<h2 id="label-API">API<span><a href="#label-API">¶</a> <a href="#top">↑</a></span></h2>
|
248
354
|
|
249
|
-
<p>
|
355
|
+
<p>The API is fully documented in the <a href="https://evanthegrayt.github.io/standup_md/doc/index.html">documentation</a>.</p>
|
250
356
|
|
251
|
-
<p>This was mainly written as a command line utility, but
|
357
|
+
<p>This was mainly written as a command line utility, but the API is ridiculously robust, and is available for use in your own projects. A quick example of how to write a new entry via code could look like the following:</p>
|
358
|
+
|
359
|
+
<h3 id="label-API+Examples">API Examples<span><a href="#label-API+Examples">¶</a> <a href="#top">↑</a></span></h3>
|
252
360
|
|
253
361
|
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'standup_md'</span>
|
362
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'date'</span>
|
254
363
|
|
255
|
-
<span class="ruby-identifier">
|
256
|
-
<span class="ruby-
|
257
|
-
|
258
|
-
<span class="ruby-value">impediments:</span> [<span class="ruby-string">'Not enough time in the day'</span>]
|
259
|
-
)
|
364
|
+
<span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
365
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">current_header</span> = <span class="ruby-string">'Today'</span>,
|
366
|
+
<span class="ruby-keyword">end</span>
|
260
367
|
|
261
|
-
<span class="ruby-identifier">
|
368
|
+
<span class="ruby-identifier">file</span> = <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">find_by_date</span>(<span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>)
|
369
|
+
<span class="ruby-identifier">entry</span> = <span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">Entry</span>.<span class="ruby-identifier">create</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">current</span> = [<span class="ruby-string">'Stuff I will do today'</span>] }
|
370
|
+
<span class="ruby-identifier">file</span>.<span class="ruby-identifier">entries</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">entry</span>
|
371
|
+
<span class="ruby-identifier">file</span>.<span class="ruby-identifier">write</span>
|
262
372
|
</pre>
|
263
373
|
|
264
|
-
<p>
|
374
|
+
<p>The above example was written as such to show how the different pieces of the API fit together. The code can actually be simplified to the following.</p>
|
265
375
|
|
266
376
|
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'standup_md'</span>
|
267
|
-
<span class="ruby-identifier">require</span> <span class="ruby-string">'
|
377
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'date'</span>
|
378
|
+
|
379
|
+
<span class="ruby-constant">StandupMD</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
380
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">file</span>.<span class="ruby-identifier">current_header</span> = <span class="ruby-string">'Today'</span>,
|
381
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">current</span> = [<span class="ruby-string">'Stuff I will do today'</span>]
|
382
|
+
<span class="ruby-keyword">end</span>
|
268
383
|
|
269
|
-
<span class="ruby-
|
270
|
-
<span class="ruby-identifier">standup_entries_as_json</span> = <span class="ruby-identifier">standup</span>.<span class="ruby-identifier">all_entries</span>.<span class="ruby-identifier">to_json</span>
|
384
|
+
<span class="ruby-constant">StandupMD</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">find_by_date</span>(<span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>).<span class="ruby-identifier">load</span>.<span class="ruby-identifier">write</span>
|
271
385
|
</pre>
|
272
386
|
|
273
387
|
<h2 id="label-Reporting+Bugs+and+Requesting+Features">Reporting Bugs and Requesting Features<span><a href="#label-Reporting+Bugs+and+Requesting+Features">¶</a> <a href="#top">↑</a></span></h2>
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
var search_data = {"index":{"searchIndex":["standupmd","cli","testhelper","teststandupmd","append_previous?()","append_to_previous_entry_tasks()","bullet_character=()","cli()","create_standup_file()","current_entry_tasks=()","directory=()","echo()","edit()","edit?()","editor()","entry_previously_added?()","execute()","file_written?()","fixtures()","header_depth=()","impediments=()","json?()","load()","load()","new()","new()","notes=()","previous_entry_tasks=()","print_all_entries()","print_all_entries?()","print_current_entry()","print_current_entry?()","reload()","setup()","should_append?()","should_append?()","standup()","standup()","sub_header_depth=()","sub_header_order()","sub_header_order=()","teardown()","test_preference_file()","test_version()","test_all_previous_entries()","test_append_previous?()","test_bullet_character()","test_class_load()","test_current_entry()","test_current_entry_tasks()","test_current_header()","test_directory()","test_edit?()","test_editor()","test_entry_previously_added?()","test_file()","test_file_name_format()","test_file_written?()","test_header_date_format()","test_header_depth()","test_impediments()","test_impediments_header()","test_initialize()","test_json?()","test_load()","test_notes()","test_notes_header()","test_options()","test_preferences()","test_previous_entry_tasks()","test_previous_file_when_current_and_previous_month_do_not_exist()","test_previous_file_when_current_month_file_does_not_exist_but_previous_does()","test_previous_file_when_entry_exists_for_today()","test_previous_header()","test_print_all_entries?()","test_print_current_empty?()","test_reload()","test_self_execute()","test_setting_attributes_via_block()","test_standup()","test_sub_header_depth()","test_sub_header_order()","test_verbose?()","test_write()","test_write?()","verbose?()","write()","write?()","write_file()","readme"],"longSearchIndex":["standupmd","standupmd::cli","testhelper","teststandupmd","standupmd::cli#append_previous?()","standupmd::cli#append_to_previous_entry_tasks()","standupmd#bullet_character=()","testhelper#cli()","testhelper#create_standup_file()","standupmd#current_entry_tasks=()","standupmd#directory=()","standupmd::cli#echo()","standupmd::cli#edit()","standupmd::cli#edit?()","standupmd::cli#editor()","standupmd#entry_previously_added?()","standupmd::cli::execute()","standupmd#file_written?()","testhelper#fixtures()","standupmd#header_depth=()","standupmd#impediments=()","standupmd::cli#json?()","standupmd::load()","standupmd#load()","standupmd::new()","standupmd::cli::new()","standupmd#notes=()","standupmd#previous_entry_tasks=()","standupmd::cli#print_all_entries()","standupmd::cli#print_all_entries?()","standupmd::cli#print_current_entry()","standupmd::cli#print_current_entry?()","standupmd#reload()","teststandupmd#setup()","standupmd::cli#should_append?()","teststandupmd#should_append?()","standupmd::cli#standup()","testhelper#standup()","standupmd#sub_header_depth=()","standupmd#sub_header_order()","standupmd#sub_header_order=()","teststandupmd#teardown()","teststandupmd#test_preference_file()","teststandupmd#test_version()","teststandupmd#test_all_previous_entries()","teststandupmd#test_append_previous?()","teststandupmd#test_bullet_character()","teststandupmd#test_class_load()","teststandupmd#test_current_entry()","teststandupmd#test_current_entry_tasks()","teststandupmd#test_current_header()","teststandupmd#test_directory()","teststandupmd#test_edit?()","teststandupmd#test_editor()","teststandupmd#test_entry_previously_added?()","teststandupmd#test_file()","teststandupmd#test_file_name_format()","teststandupmd#test_file_written?()","teststandupmd#test_header_date_format()","teststandupmd#test_header_depth()","teststandupmd#test_impediments()","teststandupmd#test_impediments_header()","teststandupmd#test_initialize()","teststandupmd#test_json?()","teststandupmd#test_load()","teststandupmd#test_notes()","teststandupmd#test_notes_header()","teststandupmd#test_options()","teststandupmd#test_preferences()","teststandupmd#test_previous_entry_tasks()","teststandupmd#test_previous_file_when_current_and_previous_month_do_not_exist()","teststandupmd#test_previous_file_when_current_month_file_does_not_exist_but_previous_does()","teststandupmd#test_previous_file_when_entry_exists_for_today()","teststandupmd#test_previous_header()","teststandupmd#test_print_all_entries?()","teststandupmd#test_print_current_empty?()","teststandupmd#test_reload()","teststandupmd#test_self_execute()","teststandupmd#test_setting_attributes_via_block()","teststandupmd#test_standup()","teststandupmd#test_sub_header_depth()","teststandupmd#test_sub_header_order()","teststandupmd#test_verbose?()","teststandupmd#test_write()","teststandupmd#test_write?()","standupmd::cli#verbose?()","standupmd#write()","standupmd::cli#write?()","standupmd::cli#write_file()",""],"info":[["StandupMD","","StandupMD.html","","
The class for handing reading/writing of entries.\n @example\n\n su = StandupMD.new\n\n"],["StandupMD::Cli","","StandupMD/Cli.html",""," Class for handing the command-line interface.\n"],["TestHelper","","TestHelper.html",""," Module to include in tests that provides helper functions.\n"],["TestStandupMD","","TestStandupMD.html",""," The test suite for The test suite for Should `previous_entry_tasks` be appended? If false, @return …\n"],["append_to_previous_entry_tasks","StandupMD::Cli","StandupMD/Cli.html#method-i-append_to_previous_entry_tasks","()"," Appends entries passed at runtime to existing previous entries.\n @return [Hash]\n"],["bullet_character=","StandupMD","StandupMD.html#method-i-bullet_character-3D","(character)"," Setter for bullet_character. Must be * (asterisk) or - (dash).\n @param [String] character\n @return [String] …\n"],["cli","TestHelper","TestHelper.html#method-i-cli","(options = [])"," Creates instance of @param [Array] options Parsed by @return [StandupMD::Cli]\n"],["create_standup_file","TestHelper","TestHelper.html#method-i-create_standup_file","(file, fixture = 'previous_entry')"," Creates the standup file with entries.\n @param [String] file The name of the file to create\n @param [String] …\n"],["current_entry_tasks=","StandupMD","StandupMD.html#method-i-current_entry_tasks-3D","(tasks)"," Setter for current entry tasks.\n @param [Array] tasks\n @return [Array]\n"],["directory=","StandupMD","StandupMD.html#method-i-directory-3D","(directory)"," Setter for directory. Must be expanded in case the user uses `~` for home. If the directory doesn't …\n"],["echo","StandupMD::Cli","StandupMD/Cli.html#method-i-echo","(msg)"," Prints output if @return [nil]\n"],["edit","StandupMD::Cli","StandupMD/Cli.html#method-i-edit","()"," Opens the file in an editor. Abandons the script.\n"],["edit?","StandupMD::Cli","StandupMD/Cli.html#method-i-edit-3F","()"," Should the standup file be opened in the editor?\n @return [Boolean] Default is true\n"],["editor","StandupMD::Cli","StandupMD/Cli.html#method-i-editor","()"," Tries to determine the editor, first by checking if the user has one set in their preferences. If not, …\n"],["entry_previously_added?","StandupMD","StandupMD.html#method-i-entry_previously_added-3F","()"," Was today's entry already in the file?\n @return [boolean] true if today's entry was already in …\n"],["execute","StandupMD::Cli","StandupMD/Cli.html#method-c-execute","(options = [])"," Creates an instance of Has the file been written since instantiated?\n @return [boolean]\n @example\n"],["fixtures","TestHelper","TestHelper.html#method-i-fixtures","()"," Reads the fixtures in as a hash.\n @return [Hash]\n"],["header_depth=","StandupMD","StandupMD.html#method-i-header_depth-3D","(depth)"," Number of octothorps (#) to use before the main header.\n @param [Integer] depth\n @return [Integer]\n"],["impediments=","StandupMD","StandupMD.html#method-i-impediments-3D","(tasks)"," Setter for impediments.\n @param [Array] tasks\n @return [Array]\n"],["json?","StandupMD::Cli","StandupMD/Cli.html#method-i-json-3F","()"," If printing an entry, should it be printed as json?\n @return [Boolean] Default is false\n"],["load","StandupMD","StandupMD.html#method-c-load","(attributes = {})"," Convenience method for calling @param [Hash] attributes Attributes to set before loading.\n @example …\n"],["load","StandupMD","StandupMD.html#method-i-load","()"," Sets internal instance variables. Called when first instantiated, or after directory is set.\n @return [self] …\n"],["new","StandupMD","StandupMD.html#method-c-new","()"," Constructor. Yields the instance so you can pass a block to access setters.\n @return [self]\n @example\n"],["new","StandupMD::Cli","StandupMD/Cli.html#method-c-new","(options)"," Constructor. Sets defaults.\n @param [Array] options\n"],["notes=","StandupMD","StandupMD.html#method-i-notes-3D","(tasks)"," Setter for notes.\n @param [Array] notes\n @return [Array]\n"],["previous_entry_tasks=","StandupMD","StandupMD.html#method-i-previous_entry_tasks-3D","(tasks)"," Setter for current entry tasks.\n @param [Array] tasks\n @return [Array]\n"],["print_all_entries","StandupMD::Cli","StandupMD/Cli.html#method-i-print_all_entries","()"," Prints all entries to the command line.\n @return [nil]\n"],["print_all_entries?","StandupMD::Cli","StandupMD/Cli.html#method-i-print_all_entries-3F","()"," Should all entries be printed? If true, disables editing.\n @return [Boolean] Default is false\n"],["print_current_entry","StandupMD::Cli","StandupMD/Cli.html#method-i-print_current_entry","()"," Prints the current entry to the command line.\n @return [nil]\n"],["print_current_entry?","StandupMD::Cli","StandupMD/Cli.html#method-i-print_current_entry-3F","()"," Should current entry be printed? If true, disables editing.\n @return [Boolean] Default is false\n"],["reload","StandupMD","StandupMD.html#method-i-reload","()"," Alias of @return [self]\n"],["setup","TestStandupMD","TestStandupMD.html#method-i-setup","()"," Set working directory, current month's file, and last month's file, which will be created and …\n"],["should_append?","StandupMD::Cli","StandupMD/Cli.html#method-i-should_append-3F","()"," Did the user pass @return [Boolean]\n"],["should_append?","TestStandupMD","TestStandupMD.html#method-i-should_append-3F","()"," True only if Sets up an instance of @return [StandupMD]\n"],["standup","TestHelper","TestHelper.html#method-i-standup","(directory, args = {})"," Creates Number of octothorps (#) to use before sub headers (Current, Previous, etc).\n @param [Integer] depth\n @return …\n"],["sub_header_order","StandupMD","StandupMD.html#method-i-sub_header_order","()"," Return a copy of the sub-header order so the user can't modify the array.\n @return [Array]\n"],["sub_header_order=","StandupMD","StandupMD.html#method-i-sub_header_order-3D","(array)"," Preferred order for sub-headers.\n @param [Array] Values must be %w[previous current impediment notes]\n @return …\n"],["teardown","TestStandupMD","TestStandupMD.html#method-i-teardown","()"," Destroy the working directory and its contents.\n"],["test_PREFERENCE_FILE","TestStandupMD","TestStandupMD.html#method-i-test_PREFERENCE_FILE","()"," The user's preference file is a string.\n"],["test_VERSION","TestStandupMD","TestStandupMD.html#method-i-test_VERSION","()","
Should be all entries before the current entry.\n"],["test_append_previous?","TestStandupMD","TestStandupMD.html#method-i-test_append_previous-3F","()"," True by default. False if flag is passed.\n"],["test_bullet_character","TestStandupMD","TestStandupMD.html#method-i-test_bullet_character","()"," Should be able to change the bullet character but should raise if not * or -\n"],["test_class_load","TestStandupMD","TestStandupMD.html#method-i-test_class_load","()"," Make sure load accepts a hash of attributes, sets them, and returns an instance of itself.\n"],["test_current_entry","TestStandupMD","TestStandupMD.html#method-i-test_current_entry","()","
Should be able to add tasks for current_entry.\n"],["test_current_header","TestStandupMD","TestStandupMD.html#method-i-test_current_header","()"," Should be changeable and used as the header for Directory should default be settable, and where standup files are read from.\n"],["test_edit?","TestStandupMD","TestStandupMD.html#method-i-test_edit-3F","()"," True by default. False if flag is passed.\n"],["test_editor","TestStandupMD","TestStandupMD.html#method-i-test_editor","()"," The editor should be set by preferences, or env, or set to 'vim'.\n"],["test_entry_previously_added?","TestStandupMD","TestStandupMD.html#method-i-test_entry_previously_added-3F","()"," Should be true if The file name should equal file_name_format parsed by Date.strftime. The default is Date.today.strftime('%Y_%m.md') …\n"],["test_file_name_format","TestStandupMD","TestStandupMD.html#method-i-test_file_name_format","()"," Should be changeable, and return a string parsed by Should be false when first instantiated, true after Should be changeable, and return a string parsed by Should be an integer between Should be able to add impediments to the array.\n"],["test_impediments_header","TestStandupMD","TestStandupMD.html#method-i-test_impediments_header","()"," Should be changeable and used as the header for The False by default. True if flag is passed.\n"],["test_load","TestStandupMD","TestStandupMD.html#method-i-test_load","()"," Should load instance variables.\n"],["test_notes","TestStandupMD","TestStandupMD.html#method-i-test_notes","()"," Should be able to add notes to the array.\n"],["test_notes_header","TestStandupMD","TestStandupMD.html#method-i-test_notes_header","()"," Should be changeable and used as the header for The The Should be an array of previous entry's current entry.\n"],["test_previous_file_when_current_and_previous_month_do_not_exist","TestStandupMD","TestStandupMD.html#method-i-test_previous_file_when_current_and_previous_month_do_not_exist","()"," When neither last month's file, nor this month's file exist, previous_file should be an empty …\n"],["test_previous_file_when_current_month_file_does_not_exist_but_previous_does","TestStandupMD","TestStandupMD.html#method-i-test_previous_file_when_current_month_file_does_not_exist_but_previous_does","()"," When last month's file exists, but this month's doesn't or is empty, previous_file should …\n"],["test_previous_file_when_entry_exists_for_today","TestStandupMD","TestStandupMD.html#method-i-test_previous_file_when_entry_exists_for_today","()"," If there are previous entries for this month, previous file will be this month's file.\n"],["test_previous_header","TestStandupMD","TestStandupMD.html#method-i-test_previous_header","()"," Should be changeable and used as the header for False by default. True if flag is passed.\n"],["test_print_current_empty?","TestStandupMD","TestStandupMD.html#method-i-test_print_current_empty-3F","()"," False by default. True if flag is passed.\n"],["test_reload","TestStandupMD","TestStandupMD.html#method-i-test_reload","()"," The reload method should exist, and is an alias of The Attributes should be able to be set if you pass a block at instantiation.\n"],["test_standup","TestStandupMD","TestStandupMD.html#method-i-test_standup","()"," Creates the instance of Should be an integer between The order of the subheaders is changeable, but all elements must exist.\n"],["test_verbose?","TestStandupMD","TestStandupMD.html#method-i-test_verbose-3F","()"," False by default. True if flag is passed.\n"],["test_write","TestStandupMD","TestStandupMD.html#method-i-test_write","()"," Should write the file.\n"],["test_write?","TestStandupMD","TestStandupMD.html#method-i-test_write-3F","()"," True by default. False if flag is passed.\n"],["verbose?","StandupMD::Cli","StandupMD/Cli.html#method-i-verbose-3F","()"," Should debug info be printed?\n @return [Boolean] Default is false\n"],["write","StandupMD","StandupMD.html#method-i-write","()"," Writes a new entry to the file if the first entry in the file isn't today.\n @return [Boolean]\n"],["write?","StandupMD::Cli","StandupMD/Cli.html#method-i-write-3F","()"," Should the file be written?\n @return [Boolean] Default is true\n"],["write_file","StandupMD::Cli","StandupMD/Cli.html#method-i-write_file","()"," Writes entries to the file.\n @return [Boolean] true if file was written\n"],["README","","README_md.html",""," The Standup Doctor\n\n \n A highly customizable and automated way to keep …\n"]]}} |
1
|
+
var search_data = {"index":{"searchIndex":["standupmd","cli","helpers","config","cli","entry","entrylist","file","entry","entrylist","file","<<()","<=>()","bullet_character=()","config()","config()","config()","config()","config()","config_file_loaded?()","configure()","create()","directory=()","each()","echo()","echo()","edit()","empty?()","execute()","exist?()","filter()","filter!()","find()","find()","find_by_date()","first()","header_depth=()","initalize()","last()","load()","load_config_file()","load_preferences()","loaded?()","new()","new()","new()","new()","new()","new()","new()","new()","new?()","preference_file_loaded?()","print()","reset_config()","reset_values()","reset_values()","reset_values()","reset_values()","size()","sort()","sort!()","sort_reverse()","sub_header_depth=()","to_h()","to_h()","to_json()","to_json()","write()","write_file()","readme"],"longSearchIndex":["standupmd","standupmd::cli","standupmd::cli::helpers","standupmd::config","standupmd::config::cli","standupmd::config::entry","standupmd::config::entrylist","standupmd::config::file","standupmd::entry","standupmd::entrylist","standupmd::file","standupmd::entrylist#<<()","standupmd::entry#<=>()","standupmd::config::file#bullet_character=()","standupmd::config()","standupmd::cli::config()","standupmd::entry::config()","standupmd::entrylist::config()","standupmd::file::config()","standupmd::config_file_loaded?()","standupmd::configure()","standupmd::entry::create()","standupmd::config::file#directory=()","standupmd::entrylist#each()","standupmd::cli#echo()","standupmd::cli::echo()","standupmd::cli#edit()","standupmd::entrylist#empty?()","standupmd::cli::execute()","standupmd::file#exist?()","standupmd::entrylist#filter()","standupmd::entrylist#filter!()","standupmd::entrylist#find()","standupmd::file::find()","standupmd::file::find_by_date()","standupmd::entrylist#first()","standupmd::config::file#header_depth=()","standupmd::config::entrylist#initalize()","standupmd::entrylist#last()","standupmd::file#load()","standupmd::load_config_file()","standupmd::cli#load_preferences()","standupmd::file#loaded?()","standupmd::cli::new()","standupmd::config::new()","standupmd::config::cli::new()","standupmd::config::entry::new()","standupmd::config::file::new()","standupmd::entry::new()","standupmd::entrylist::new()","standupmd::file::new()","standupmd::file#new?()","standupmd::cli#preference_file_loaded?()","standupmd::cli::helpers#print()","standupmd::reset_config()","standupmd::config::cli#reset_values()","standupmd::config::entry#reset_values()","standupmd::config::entrylist#reset_values()","standupmd::config::file#reset_values()","standupmd::entrylist#size()","standupmd::entrylist#sort()","standupmd::entrylist#sort!()","standupmd::entrylist#sort_reverse()","standupmd::config::file#sub_header_depth=()","standupmd::entry#to_h()","standupmd::entrylist#to_h()","standupmd::entry#to_json()","standupmd::entrylist#to_json()","standupmd::file#write()","standupmd::cli#write_file()",""],"info":[["StandupMD","","StandupMD.html","","
The class for handing reading/writing of entries.\n"],["StandupMD::Cli","","StandupMD/Cli.html",""," Class for handing the command-line interface.\n"],["StandupMD::Cli::Helpers","","StandupMD/Cli/Helpers.html",""," Module responsible for reading and writing standup files.\n"],["StandupMD::Config","","StandupMD/Config.html",""," This class provides a connector from StandupMD to the configuration classes.\n"],["StandupMD::Config::Cli","","StandupMD/Config/Cli.html",""," The configuration class for StandupMD::Cli\n"],["StandupMD::Config::Entry","","StandupMD/Config/Entry.html",""," The configuration class for StandupMD::Entry\n"],["StandupMD::Config::EntryList","","StandupMD/Config/EntryList.html",""," The configuration class for StandupMD::EntryList\n"],["StandupMD::Config::File","","StandupMD/Config/File.html",""," The configuration class for StandupMD::File\n"],["StandupMD::Entry","","StandupMD/Entry.html",""," Class for handling single entries. Includes the comparable module, and compares by date.\n"],["StandupMD::EntryList","","StandupMD/EntryList.html",""," Enumerable list of entries.\n"],["StandupMD::File","","StandupMD/File.html",""," Class for handling reading and writing standup files.\n"],["<<","StandupMD::EntryList","StandupMD/EntryList.html#method-i-3C-3C","(entry)"," Appends entries to list.\n @param [StandupMD::Entry] entry\n @return [Array]\n"],["<=>","StandupMD::Entry","StandupMD/Entry.html#method-i-3C-3D-3E","(other)"," Sorting method for Comparable. Entries are compared by date.\n"],["bullet_character=","StandupMD::Config::File","StandupMD/Config/File.html#method-i-bullet_character-3D","(char)"," Setter for bullet_character. Must be * (asterisk) or - (dash).\n @param [String] character\n @return [String] …\n"],["config","StandupMD","StandupMD.html#method-c-config","()"," Shorthand for @return [StanupMD::Cli]\n"],["config","StandupMD::Cli","StandupMD/Cli.html#method-c-config","()"," Access to the class's configuration.\n @return [StandupMD::Config::Cli]\n"],["config","StandupMD::Entry","StandupMD/Entry.html#method-c-config","()"," Access to the class's configuration.\n @return [StandupMD::Config::Entry]\n"],["config","StandupMD::EntryList","StandupMD/EntryList.html#method-c-config","()"," Access to the class's configuration.\n @return [StandupMD::Config::EntryList]\n"],["config","StandupMD::File","StandupMD/File.html#method-c-config","()"," Access to the class's configuration.\n @return [StandupMD::Config::EntryList]\n"],["config_file_loaded?","StandupMD","StandupMD.html#method-c-config_file_loaded-3F","()"," Has a config file been loaded?\n @return [Boolean]\n"],["configure","StandupMD","StandupMD.html#method-c-configure","()"," Allows for configuration via a block. Useful when making config files.\n @example\n\n StandupMD.configure { |s| ...\n"],["create","StandupMD::Entry","StandupMD/Entry.html#method-c-create","()"," Creates a generic entry. Default values can be set via configuration. Yields the entry if a block is …\n"],["directory=","StandupMD::Config::File","StandupMD/Config/File.html#method-i-directory-3D","(directory)"," Setter for directory. Must be expanded in case the user uses `~` for home. If the directory doesn't …\n"],["each","StandupMD::EntryList","StandupMD/EntryList.html#method-i-each","(&block)"," Iterate over the list and yield each entry.\n"],["echo","StandupMD::Cli","StandupMD/Cli.html#method-i-echo","(msg)"," Quick access to Cli.echo.\n @return [nil]\n"],["echo","StandupMD::Cli","StandupMD/Cli.html#method-c-echo","(msg)"," Prints output if @return [nil]\n"],["edit","StandupMD::Cli","StandupMD/Cli.html#method-i-edit","()"," Opens the file in an editor. Abandons the script.\n @return [nil]\n"],["empty?","StandupMD::EntryList","StandupMD/EntryList.html#method-i-empty-3F","()"," Is the list empty?\n @return [Boolean] true if empty\n"],["execute","StandupMD::Cli","StandupMD/Cli.html#method-c-execute","(options = [])"," Creates an instance of Does the file exist?\n @return [Boolean] true if exists\n"],["filter","StandupMD::EntryList","StandupMD/EntryList.html#method-i-filter","(start_date, end_date)"," Returns entries that are between the start and end date. This method assumes the list has already been …\n"],["filter!","StandupMD::EntryList","StandupMD/EntryList.html#method-i-filter-21","(start_date, end_date)"," Replaces entries with results of filter.\n @param [Date] start_date\n @param [Date] end_date\n"],["find","StandupMD::EntryList","StandupMD/EntryList.html#method-i-find","(key)"," Finds an entry based on date. This method assumes the list has already been sorted.\n"],["find","StandupMD::File","StandupMD/File.html#method-c-find","(file_name)"," Find standup file in directory by file name.\n @param [String] File_naem\n"],["find_by_date","StandupMD::File","StandupMD/File.html#method-c-find_by_date","(date)"," Find standup file in directory by Date object.\n @param [Date] date\n"],["first","StandupMD::EntryList","StandupMD/EntryList.html#method-i-first","()"," The first entry in the list. This method assumes the list has already been sorted.\n @return [StandupMD::Entry] …\n"],["header_depth=","StandupMD::Config::File","StandupMD/Config/File.html#method-i-header_depth-3D","(depth)"," Number of octothorps (#) to use before the main header.\n @param [Integer] depth\n @return [Integer]\n"],["initalize","StandupMD::Config::EntryList","StandupMD/Config/EntryList.html#method-i-initalize","()"," Initializes the config with default values.\n"],["last","StandupMD::EntryList","StandupMD/EntryList.html#method-i-last","()"," The last entry in the list. This method assumes the list has already been sorted.\n @return [StandupMD::Entry] …\n"],["load","StandupMD::File","StandupMD/File.html#method-i-load","()"," Loads the file's contents. TODO clean up this method.\n @return [StandupMD::FileList]\n"],["load_config_file","StandupMD","StandupMD.html#method-c-load_config_file","(file)"," Loads a config file.\n @param [String] file\n"],["load_preferences","StandupMD::Cli","StandupMD/Cli.html#method-i-load_preferences","()"," Load the preference file.\n @return [nil]\n"],["loaded?","StandupMD::File","StandupMD/File.html#method-i-loaded-3F","()"," Has the file been loaded?\n @return [Boolean] true if loaded\n"],["new","StandupMD::Cli","StandupMD/Cli.html#method-c-new","(options = [], load_config = true)"," Constructor. Sets defaults.\n @param [Array] options\n"],["new","StandupMD::Config","StandupMD/Config.html#method-c-new","()"," Builds the links to the configuration classes.\n"],["new","StandupMD::Config::Cli","StandupMD/Config/Cli.html#method-c-new","()"," Initializes the config with default values.\n"],["new","StandupMD::Config::Entry","StandupMD/Config/Entry.html#method-c-new","()"," Initializes the config with default values.\n"],["new","StandupMD::Config::File","StandupMD/Config/File.html#method-c-new","()"," Initializes the config with default values.\n"],["new","StandupMD::Entry","StandupMD/Entry.html#method-c-new","(date, current, previous, impediments, notes = [])"," Constructs instance of @param [Date] date\n @param [Array] current\n"],["new","StandupMD::EntryList","StandupMD/EntryList.html#method-c-new","(*entries)"," Contruct a list. Can pass any amount of @param [Entry] entries\n @return [StandupMD::EntryList] …\n"],["new","StandupMD::File","StandupMD/File.html#method-c-new","(file_name)"," Constructs the instance.\n @param [String] file_name\n @return [StandupMP::File]\n"],["new?","StandupMD::File","StandupMD/File.html#method-i-new-3F","()"," Was the file just now created?\n @return [Boolean] true if new\n"],["preference_file_loaded?","StandupMD::Cli","StandupMD/Cli.html#method-i-preference_file_loaded-3F","()"," Has the preference file been loaded?\n @return boolean\n"],["print","StandupMD::Cli::Helpers","StandupMD/Cli/Helpers.html#method-i-print","(entry)"," Print an entry to the command line.\n @param [StandupMD::Entry] entry\n @return [nil]\n"],["reset_config","StandupMD","StandupMD.html#method-c-reset_config","()"," Reset all configuration values to their defaults.\n @return [StandupMD::Config]\n"],["reset_values","StandupMD::Config::Cli","StandupMD/Config/Cli.html#method-i-reset_values","()"," Sets all config values back to their defaults.\n @return [Boolean] true if successful\n"],["reset_values","StandupMD::Config::Entry","StandupMD/Config/Entry.html#method-i-reset_values","()"," Sets all config values back to their defaults.\n @return [Boolean] true if successful\n"],["reset_values","StandupMD::Config::EntryList","StandupMD/Config/EntryList.html#method-i-reset_values","()"," Sets all config values back to their defaults.\n @return [Boolean] true if successful\n"],["reset_values","StandupMD::Config::File","StandupMD/Config/File.html#method-i-reset_values","()"," Sets all config values back to their defaults.\n @return [Boolean] true if successful\n"],["size","StandupMD::EntryList","StandupMD/EntryList.html#method-i-size","()"," How many entries are in the list.\n @return [Integer]\n"],["sort","StandupMD::EntryList","StandupMD/EntryList.html#method-i-sort","()"," Returns a copy of self sorted by date.\n @return [StandupMD::EntryList]\n"],["sort!","StandupMD::EntryList","StandupMD/EntryList.html#method-i-sort-21","()"," Replace entries with sorted entries by date.\n @return [StandupMD::EntryList]\n"],["sort_reverse","StandupMD::EntryList","StandupMD/EntryList.html#method-i-sort_reverse","()"," Returns a copy of self sorted by date.\n @return [StandupMD::EntryList]\n"],["sub_header_depth=","StandupMD::Config::File","StandupMD/Config/File.html#method-i-sub_header_depth-3D","(depth)"," Number of octothorps (#) to use before sub headers (Current, Previous, etc).\n @param [Integer] depth\n @return …\n"],["to_h","StandupMD::Entry","StandupMD/Entry.html#method-i-to_h","()"," Entry as a hash .\n @return [Hash]\n"],["to_h","StandupMD::EntryList","StandupMD/EntryList.html#method-i-to_h","()"," The list as a hash, with the dates as keys.\n @return [Hash]\n"],["to_json","StandupMD::Entry","StandupMD/Entry.html#method-i-to_json","()"," Entry as a json object.\n @return [String]\n"],["to_json","StandupMD::EntryList","StandupMD/EntryList.html#method-i-to_json","()"," The entry list as a json object.\n @return [String]\n"],["write","StandupMD::File","StandupMD/File.html#method-i-write","(dates = {})"," Writes a new entry to the file if the first entry in the file isn't today. This method is destructive; …\n"],["write_file","StandupMD::Cli","StandupMD/Cli.html#method-i-write_file","()"," Writes entries to the file.\n @return [Boolean] true if file was written\n"],["README","","README_md.html",""," The Standup Doctor\n …\n\n "]]}} |
Binary file
|
Binary file
|
@@ -51,16 +51,30 @@
|
|
51
51
|
|
52
52
|
<li><a href="README_md.html#label-Usage">Usage</a>
|
53
53
|
|
54
|
-
<li><a href="README_md.html#label-
|
54
|
+
<li><a href="README_md.html#label-Command+Line">Command Line</a>
|
55
|
+
|
56
|
+
<li><a href="README_md.html#label-CLI+Examples">CLI Examples</a>
|
57
|
+
|
58
|
+
<li><a href="README_md.html#label-Adding+an+entry+for+today+via+editor">Adding an entry for today via editor</a>
|
59
|
+
|
60
|
+
<li><a href="README_md.html#label-Copy+the+entry+for+today+to+clipboard">Copy the entry for today to clipboard</a>
|
61
|
+
|
62
|
+
<li><a href="README_md.html#label-Add+entry+to+file+without+opening+it">Add entry to file without opening it</a>
|
63
|
+
|
64
|
+
<li><a href="README_md.html#label-Find+an+entry+by+date+and+print+it.">Find an entry by date and print it.</a>
|
55
65
|
|
56
66
|
<li><a href="README_md.html#label-Customization+and+Runtime+Options">Customization and Runtime Options</a>
|
57
67
|
|
58
|
-
<li><a href="README_md.html#label-Available+Config+File+
|
68
|
+
<li><a href="README_md.html#label-Available+Config+File+Options+and+Defaults">Available Config File Options and Defaults</a>
|
59
69
|
|
60
70
|
<li><a href="README_md.html#label-Executable+Flags">Executable Flags</a>
|
61
71
|
|
72
|
+
<li><a href="README_md.html#label-Using+Existing+Standup+Files">Using Existing Standup Files</a>
|
73
|
+
|
62
74
|
<li><a href="README_md.html#label-API">API</a>
|
63
75
|
|
76
|
+
<li><a href="README_md.html#label-API+Examples">API Examples</a>
|
77
|
+
|
64
78
|
<li><a href="README_md.html#label-Reporting+Bugs+and+Requesting+Features">Reporting Bugs and Requesting Features</a>
|
65
79
|
|
66
80
|
<li><a href="README_md.html#label-Self-Promotion">Self-Promotion</a>
|
@@ -75,23 +89,9 @@
|
|
75
89
|
<h2 id="classes">Classes and Modules</h2>
|
76
90
|
<ul>
|
77
91
|
|
78
|
-
<li class="
|
92
|
+
<li class="module">
|
79
93
|
<a href="StandupMD.html">StandupMD</a>
|
80
94
|
|
81
|
-
<ul>
|
82
|
-
|
83
|
-
<li><a href="StandupMD.html#5Buntitled-5D">Top Section</a>
|
84
|
-
|
85
|
-
<li><a href="StandupMD.html#Attributes+with+default+getters+and+setters.">Attributes with default getters and setters.</a>
|
86
|
-
|
87
|
-
<li><a href="StandupMD.html#Booleans">Booleans</a>
|
88
|
-
|
89
|
-
<li><a href="StandupMD.html#Custom+setters">Custom setters</a>
|
90
|
-
|
91
|
-
<li><a href="StandupMD.html#Misc">Misc</a>
|
92
|
-
|
93
|
-
</ul>
|
94
|
-
|
95
95
|
</li>
|
96
96
|
|
97
97
|
<li class="class">
|
@@ -100,439 +100,344 @@
|
|
100
100
|
</li>
|
101
101
|
|
102
102
|
<li class="module">
|
103
|
-
<a href="
|
103
|
+
<a href="StandupMD/Cli/Helpers.html">StandupMD::Cli::Helpers</a>
|
104
104
|
|
105
105
|
</li>
|
106
106
|
|
107
107
|
<li class="class">
|
108
|
-
<a href="
|
108
|
+
<a href="StandupMD/Config.html">StandupMD::Config</a>
|
109
109
|
|
110
110
|
</li>
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
<h2 id="methods">Methods</h2>
|
115
|
-
<ul>
|
116
|
-
|
117
|
-
<li class="method">
|
118
|
-
<a href="StandupMD/Cli.html#method-c-execute">::execute</a>
|
119
|
-
—
|
120
|
-
<span class="container">StandupMD::Cli</span>
|
121
|
-
|
122
|
-
<li class="method">
|
123
|
-
<a href="StandupMD.html#method-c-load">::load</a>
|
124
|
-
—
|
125
|
-
<span class="container">StandupMD</span>
|
126
|
-
|
127
|
-
<li class="method">
|
128
|
-
<a href="StandupMD.html#method-c-new">::new</a>
|
129
|
-
—
|
130
|
-
<span class="container">StandupMD</span>
|
112
|
+
<li class="class">
|
113
|
+
<a href="StandupMD/Config/Cli.html">StandupMD::Config::Cli</a>
|
131
114
|
|
132
|
-
|
133
|
-
<a href="StandupMD/Cli.html#method-c-new">::new</a>
|
134
|
-
—
|
135
|
-
<span class="container">StandupMD::Cli</span>
|
115
|
+
</li>
|
136
116
|
|
137
|
-
<li class="
|
138
|
-
<a href="StandupMD/
|
139
|
-
—
|
140
|
-
<span class="container">StandupMD::Cli</span>
|
117
|
+
<li class="class">
|
118
|
+
<a href="StandupMD/Config/Entry.html">StandupMD::Config::Entry</a>
|
141
119
|
|
142
|
-
|
143
|
-
<a href="StandupMD/Cli.html#method-i-append_to_previous_entry_tasks">#append_to_previous_entry_tasks</a>
|
144
|
-
—
|
145
|
-
<span class="container">StandupMD::Cli</span>
|
120
|
+
</li>
|
146
121
|
|
147
|
-
<li class="
|
148
|
-
<a href="StandupMD.html
|
149
|
-
—
|
150
|
-
<span class="container">StandupMD</span>
|
122
|
+
<li class="class">
|
123
|
+
<a href="StandupMD/Config/EntryList.html">StandupMD::Config::EntryList</a>
|
151
124
|
|
152
|
-
|
153
|
-
<a href="TestHelper.html#method-i-cli">#cli</a>
|
154
|
-
—
|
155
|
-
<span class="container">TestHelper</span>
|
125
|
+
</li>
|
156
126
|
|
157
|
-
<li class="
|
158
|
-
<a href="
|
159
|
-
—
|
160
|
-
<span class="container">TestHelper</span>
|
127
|
+
<li class="class">
|
128
|
+
<a href="StandupMD/Config/File.html">StandupMD::Config::File</a>
|
161
129
|
|
162
|
-
|
163
|
-
<a href="StandupMD.html#method-i-current_entry_tasks-3D">#current_entry_tasks=</a>
|
164
|
-
—
|
165
|
-
<span class="container">StandupMD</span>
|
130
|
+
</li>
|
166
131
|
|
167
|
-
<li class="
|
168
|
-
<a href="StandupMD.html
|
169
|
-
—
|
170
|
-
<span class="container">StandupMD</span>
|
132
|
+
<li class="class">
|
133
|
+
<a href="StandupMD/Entry.html">StandupMD::Entry</a>
|
171
134
|
|
172
|
-
|
173
|
-
<a href="StandupMD/Cli.html#method-i-echo">#echo</a>
|
174
|
-
—
|
175
|
-
<span class="container">StandupMD::Cli</span>
|
135
|
+
</li>
|
176
136
|
|
177
|
-
<li class="
|
178
|
-
<a href="StandupMD/
|
179
|
-
—
|
180
|
-
<span class="container">StandupMD::Cli</span>
|
137
|
+
<li class="class">
|
138
|
+
<a href="StandupMD/EntryList.html">StandupMD::EntryList</a>
|
181
139
|
|
182
|
-
|
183
|
-
<a href="StandupMD/Cli.html#method-i-edit-3F">#edit?</a>
|
184
|
-
—
|
185
|
-
<span class="container">StandupMD::Cli</span>
|
140
|
+
</li>
|
186
141
|
|
187
|
-
<li class="
|
188
|
-
<a href="StandupMD/
|
189
|
-
—
|
190
|
-
<span class="container">StandupMD::Cli</span>
|
142
|
+
<li class="class">
|
143
|
+
<a href="StandupMD/File.html">StandupMD::File</a>
|
191
144
|
|
192
|
-
|
193
|
-
<a href="StandupMD.html#method-i-entry_previously_added-3F">#entry_previously_added?</a>
|
194
|
-
—
|
195
|
-
<span class="container">StandupMD</span>
|
145
|
+
</li>
|
196
146
|
|
197
|
-
|
198
|
-
<a href="StandupMD.html#method-i-file_written-3F">#file_written?</a>
|
199
|
-
—
|
200
|
-
<span class="container">StandupMD</span>
|
147
|
+
</ul>
|
201
148
|
|
202
|
-
|
203
|
-
|
204
|
-
—
|
205
|
-
<span class="container">TestHelper</span>
|
149
|
+
<h2 id="methods">Methods</h2>
|
150
|
+
<ul>
|
206
151
|
|
207
152
|
<li class="method">
|
208
|
-
<a href="StandupMD.html#method-
|
153
|
+
<a href="StandupMD/Entry.html#method-c-config">::config</a>
|
209
154
|
—
|
210
|
-
<span class="container">StandupMD</span>
|
155
|
+
<span class="container">StandupMD::Entry</span>
|
211
156
|
|
212
157
|
<li class="method">
|
213
|
-
<a href="StandupMD.html#method-
|
158
|
+
<a href="StandupMD/File.html#method-c-config">::config</a>
|
214
159
|
—
|
215
|
-
<span class="container">StandupMD</span>
|
160
|
+
<span class="container">StandupMD::File</span>
|
216
161
|
|
217
162
|
<li class="method">
|
218
|
-
<a href="StandupMD/Cli.html#method-
|
163
|
+
<a href="StandupMD/Cli.html#method-c-config">::config</a>
|
219
164
|
—
|
220
165
|
<span class="container">StandupMD::Cli</span>
|
221
166
|
|
222
167
|
<li class="method">
|
223
|
-
<a href="StandupMD.html#method-
|
168
|
+
<a href="StandupMD.html#method-c-config">::config</a>
|
224
169
|
—
|
225
170
|
<span class="container">StandupMD</span>
|
226
171
|
|
227
172
|
<li class="method">
|
228
|
-
<a href="StandupMD.html#method-
|
173
|
+
<a href="StandupMD/EntryList.html#method-c-config">::config</a>
|
229
174
|
—
|
230
|
-
<span class="container">StandupMD</span>
|
175
|
+
<span class="container">StandupMD::EntryList</span>
|
231
176
|
|
232
177
|
<li class="method">
|
233
|
-
<a href="StandupMD.html#method-
|
178
|
+
<a href="StandupMD.html#method-c-config_file_loaded-3F">::config_file_loaded?</a>
|
234
179
|
—
|
235
180
|
<span class="container">StandupMD</span>
|
236
181
|
|
237
182
|
<li class="method">
|
238
|
-
<a href="StandupMD
|
239
|
-
—
|
240
|
-
<span class="container">StandupMD::Cli</span>
|
241
|
-
|
242
|
-
<li class="method">
|
243
|
-
<a href="StandupMD/Cli.html#method-i-print_all_entries-3F">#print_all_entries?</a>
|
244
|
-
—
|
245
|
-
<span class="container">StandupMD::Cli</span>
|
246
|
-
|
247
|
-
<li class="method">
|
248
|
-
<a href="StandupMD/Cli.html#method-i-print_current_entry">#print_current_entry</a>
|
249
|
-
—
|
250
|
-
<span class="container">StandupMD::Cli</span>
|
251
|
-
|
252
|
-
<li class="method">
|
253
|
-
<a href="StandupMD/Cli.html#method-i-print_current_entry-3F">#print_current_entry?</a>
|
254
|
-
—
|
255
|
-
<span class="container">StandupMD::Cli</span>
|
256
|
-
|
257
|
-
<li class="method">
|
258
|
-
<a href="StandupMD.html#method-i-reload">#reload</a>
|
183
|
+
<a href="StandupMD.html#method-c-configure">::configure</a>
|
259
184
|
—
|
260
185
|
<span class="container">StandupMD</span>
|
261
186
|
|
262
187
|
<li class="method">
|
263
|
-
<a href="
|
264
|
-
—
|
265
|
-
<span class="container">TestStandupMD</span>
|
266
|
-
|
267
|
-
<li class="method">
|
268
|
-
<a href="TestStandupMD.html#method-i-should_append-3F">#should_append?</a>
|
188
|
+
<a href="StandupMD/Entry.html#method-c-create">::create</a>
|
269
189
|
—
|
270
|
-
<span class="container">
|
190
|
+
<span class="container">StandupMD::Entry</span>
|
271
191
|
|
272
192
|
<li class="method">
|
273
|
-
<a href="StandupMD/Cli.html#method-
|
193
|
+
<a href="StandupMD/Cli.html#method-c-echo">::echo</a>
|
274
194
|
—
|
275
195
|
<span class="container">StandupMD::Cli</span>
|
276
196
|
|
277
197
|
<li class="method">
|
278
|
-
<a href="
|
279
|
-
—
|
280
|
-
<span class="container">TestHelper</span>
|
281
|
-
|
282
|
-
<li class="method">
|
283
|
-
<a href="StandupMD/Cli.html#method-i-standup">#standup</a>
|
198
|
+
<a href="StandupMD/Cli.html#method-c-execute">::execute</a>
|
284
199
|
—
|
285
200
|
<span class="container">StandupMD::Cli</span>
|
286
201
|
|
287
202
|
<li class="method">
|
288
|
-
<a href="StandupMD.html#method-
|
203
|
+
<a href="StandupMD/File.html#method-c-find">::find</a>
|
289
204
|
—
|
290
|
-
<span class="container">StandupMD</span>
|
205
|
+
<span class="container">StandupMD::File</span>
|
291
206
|
|
292
207
|
<li class="method">
|
293
|
-
<a href="StandupMD.html#method-
|
208
|
+
<a href="StandupMD/File.html#method-c-find_by_date">::find_by_date</a>
|
294
209
|
—
|
295
|
-
<span class="container">StandupMD</span>
|
210
|
+
<span class="container">StandupMD::File</span>
|
296
211
|
|
297
212
|
<li class="method">
|
298
|
-
<a href="StandupMD.html#method-
|
213
|
+
<a href="StandupMD.html#method-c-load_config_file">::load_config_file</a>
|
299
214
|
—
|
300
215
|
<span class="container">StandupMD</span>
|
301
216
|
|
302
217
|
<li class="method">
|
303
|
-
<a href="
|
218
|
+
<a href="StandupMD/EntryList.html#method-c-new">::new</a>
|
304
219
|
—
|
305
|
-
<span class="container">
|
220
|
+
<span class="container">StandupMD::EntryList</span>
|
306
221
|
|
307
222
|
<li class="method">
|
308
|
-
<a href="
|
223
|
+
<a href="StandupMD/Config/File.html#method-c-new">::new</a>
|
309
224
|
—
|
310
|
-
<span class="container">
|
225
|
+
<span class="container">StandupMD::Config::File</span>
|
311
226
|
|
312
227
|
<li class="method">
|
313
|
-
<a href="
|
228
|
+
<a href="StandupMD/File.html#method-c-new">::new</a>
|
314
229
|
—
|
315
|
-
<span class="container">
|
230
|
+
<span class="container">StandupMD::File</span>
|
316
231
|
|
317
232
|
<li class="method">
|
318
|
-
<a href="
|
233
|
+
<a href="StandupMD/Config.html#method-c-new">::new</a>
|
319
234
|
—
|
320
|
-
<span class="container">
|
235
|
+
<span class="container">StandupMD::Config</span>
|
321
236
|
|
322
237
|
<li class="method">
|
323
|
-
<a href="
|
238
|
+
<a href="StandupMD/Config/Entry.html#method-c-new">::new</a>
|
324
239
|
—
|
325
|
-
<span class="container">
|
240
|
+
<span class="container">StandupMD::Config::Entry</span>
|
326
241
|
|
327
242
|
<li class="method">
|
328
|
-
<a href="
|
329
|
-
—
|
330
|
-
<span class="container">TestStandupMD</span>
|
331
|
-
|
332
|
-
<li class="method">
|
333
|
-
<a href="TestStandupMD.html#method-i-test_class_load">#test_class_load</a>
|
334
|
-
—
|
335
|
-
<span class="container">TestStandupMD</span>
|
336
|
-
|
337
|
-
<li class="method">
|
338
|
-
<a href="TestStandupMD.html#method-i-test_current_entry">#test_current_entry</a>
|
243
|
+
<a href="StandupMD/Cli.html#method-c-new">::new</a>
|
339
244
|
—
|
340
|
-
<span class="container">
|
245
|
+
<span class="container">StandupMD::Cli</span>
|
341
246
|
|
342
247
|
<li class="method">
|
343
|
-
<a href="
|
248
|
+
<a href="StandupMD/Config/Cli.html#method-c-new">::new</a>
|
344
249
|
—
|
345
|
-
<span class="container">
|
250
|
+
<span class="container">StandupMD::Config::Cli</span>
|
346
251
|
|
347
252
|
<li class="method">
|
348
|
-
<a href="
|
253
|
+
<a href="StandupMD/Entry.html#method-c-new">::new</a>
|
349
254
|
—
|
350
|
-
<span class="container">
|
255
|
+
<span class="container">StandupMD::Entry</span>
|
351
256
|
|
352
257
|
<li class="method">
|
353
|
-
<a href="
|
258
|
+
<a href="StandupMD.html#method-c-reset_config">::reset_config</a>
|
354
259
|
—
|
355
|
-
<span class="container">
|
260
|
+
<span class="container">StandupMD</span>
|
356
261
|
|
357
262
|
<li class="method">
|
358
|
-
<a href="
|
263
|
+
<a href="StandupMD/EntryList.html#method-i-3C-3C">#<<</a>
|
359
264
|
—
|
360
|
-
<span class="container">
|
265
|
+
<span class="container">StandupMD::EntryList</span>
|
361
266
|
|
362
267
|
<li class="method">
|
363
|
-
<a href="
|
268
|
+
<a href="StandupMD/Entry.html#method-i-3C-3D-3E">#<=></a>
|
364
269
|
—
|
365
|
-
<span class="container">
|
270
|
+
<span class="container">StandupMD::Entry</span>
|
366
271
|
|
367
272
|
<li class="method">
|
368
|
-
<a href="
|
273
|
+
<a href="StandupMD/Config/File.html#method-i-bullet_character-3D">#bullet_character=</a>
|
369
274
|
—
|
370
|
-
<span class="container">
|
275
|
+
<span class="container">StandupMD::Config::File</span>
|
371
276
|
|
372
277
|
<li class="method">
|
373
|
-
<a href="
|
278
|
+
<a href="StandupMD/Config/File.html#method-i-directory-3D">#directory=</a>
|
374
279
|
—
|
375
|
-
<span class="container">
|
280
|
+
<span class="container">StandupMD::Config::File</span>
|
376
281
|
|
377
282
|
<li class="method">
|
378
|
-
<a href="
|
283
|
+
<a href="StandupMD/EntryList.html#method-i-each">#each</a>
|
379
284
|
—
|
380
|
-
<span class="container">
|
285
|
+
<span class="container">StandupMD::EntryList</span>
|
381
286
|
|
382
287
|
<li class="method">
|
383
|
-
<a href="
|
288
|
+
<a href="StandupMD/Cli.html#method-i-echo">#echo</a>
|
384
289
|
—
|
385
|
-
<span class="container">
|
290
|
+
<span class="container">StandupMD::Cli</span>
|
386
291
|
|
387
292
|
<li class="method">
|
388
|
-
<a href="
|
293
|
+
<a href="StandupMD/Cli.html#method-i-edit">#edit</a>
|
389
294
|
—
|
390
|
-
<span class="container">
|
295
|
+
<span class="container">StandupMD::Cli</span>
|
391
296
|
|
392
297
|
<li class="method">
|
393
|
-
<a href="
|
298
|
+
<a href="StandupMD/EntryList.html#method-i-empty-3F">#empty?</a>
|
394
299
|
—
|
395
|
-
<span class="container">
|
300
|
+
<span class="container">StandupMD::EntryList</span>
|
396
301
|
|
397
302
|
<li class="method">
|
398
|
-
<a href="
|
303
|
+
<a href="StandupMD/File.html#method-i-exist-3F">#exist?</a>
|
399
304
|
—
|
400
|
-
<span class="container">
|
305
|
+
<span class="container">StandupMD::File</span>
|
401
306
|
|
402
307
|
<li class="method">
|
403
|
-
<a href="
|
308
|
+
<a href="StandupMD/EntryList.html#method-i-filter">#filter</a>
|
404
309
|
—
|
405
|
-
<span class="container">
|
310
|
+
<span class="container">StandupMD::EntryList</span>
|
406
311
|
|
407
312
|
<li class="method">
|
408
|
-
<a href="
|
313
|
+
<a href="StandupMD/EntryList.html#method-i-filter-21">#filter!</a>
|
409
314
|
—
|
410
|
-
<span class="container">
|
315
|
+
<span class="container">StandupMD::EntryList</span>
|
411
316
|
|
412
317
|
<li class="method">
|
413
|
-
<a href="
|
318
|
+
<a href="StandupMD/EntryList.html#method-i-find">#find</a>
|
414
319
|
—
|
415
|
-
<span class="container">
|
320
|
+
<span class="container">StandupMD::EntryList</span>
|
416
321
|
|
417
322
|
<li class="method">
|
418
|
-
<a href="
|
323
|
+
<a href="StandupMD/EntryList.html#method-i-first">#first</a>
|
419
324
|
—
|
420
|
-
<span class="container">
|
325
|
+
<span class="container">StandupMD::EntryList</span>
|
421
326
|
|
422
327
|
<li class="method">
|
423
|
-
<a href="
|
328
|
+
<a href="StandupMD/Config/File.html#method-i-header_depth-3D">#header_depth=</a>
|
424
329
|
—
|
425
|
-
<span class="container">
|
330
|
+
<span class="container">StandupMD::Config::File</span>
|
426
331
|
|
427
332
|
<li class="method">
|
428
|
-
<a href="
|
333
|
+
<a href="StandupMD/Config/EntryList.html#method-i-initalize">#initalize</a>
|
429
334
|
—
|
430
|
-
<span class="container">
|
335
|
+
<span class="container">StandupMD::Config::EntryList</span>
|
431
336
|
|
432
337
|
<li class="method">
|
433
|
-
<a href="
|
338
|
+
<a href="StandupMD/EntryList.html#method-i-last">#last</a>
|
434
339
|
—
|
435
|
-
<span class="container">
|
340
|
+
<span class="container">StandupMD::EntryList</span>
|
436
341
|
|
437
342
|
<li class="method">
|
438
|
-
<a href="
|
343
|
+
<a href="StandupMD/File.html#method-i-load">#load</a>
|
439
344
|
—
|
440
|
-
<span class="container">
|
345
|
+
<span class="container">StandupMD::File</span>
|
441
346
|
|
442
347
|
<li class="method">
|
443
|
-
<a href="
|
348
|
+
<a href="StandupMD/Cli.html#method-i-load_preferences">#load_preferences</a>
|
444
349
|
—
|
445
|
-
<span class="container">
|
350
|
+
<span class="container">StandupMD::Cli</span>
|
446
351
|
|
447
352
|
<li class="method">
|
448
|
-
<a href="
|
353
|
+
<a href="StandupMD/File.html#method-i-loaded-3F">#loaded?</a>
|
449
354
|
—
|
450
|
-
<span class="container">
|
355
|
+
<span class="container">StandupMD::File</span>
|
451
356
|
|
452
357
|
<li class="method">
|
453
|
-
<a href="
|
358
|
+
<a href="StandupMD/File.html#method-i-new-3F">#new?</a>
|
454
359
|
—
|
455
|
-
<span class="container">
|
360
|
+
<span class="container">StandupMD::File</span>
|
456
361
|
|
457
362
|
<li class="method">
|
458
|
-
<a href="
|
363
|
+
<a href="StandupMD/Cli.html#method-i-preference_file_loaded-3F">#preference_file_loaded?</a>
|
459
364
|
—
|
460
|
-
<span class="container">
|
365
|
+
<span class="container">StandupMD::Cli</span>
|
461
366
|
|
462
367
|
<li class="method">
|
463
|
-
<a href="
|
368
|
+
<a href="StandupMD/Cli/Helpers.html#method-i-print">#print</a>
|
464
369
|
—
|
465
|
-
<span class="container">
|
370
|
+
<span class="container">StandupMD::Cli::Helpers</span>
|
466
371
|
|
467
372
|
<li class="method">
|
468
|
-
<a href="
|
373
|
+
<a href="StandupMD/Config/File.html#method-i-reset_values">#reset_values</a>
|
469
374
|
—
|
470
|
-
<span class="container">
|
375
|
+
<span class="container">StandupMD::Config::File</span>
|
471
376
|
|
472
377
|
<li class="method">
|
473
|
-
<a href="
|
378
|
+
<a href="StandupMD/Config/Cli.html#method-i-reset_values">#reset_values</a>
|
474
379
|
—
|
475
|
-
<span class="container">
|
380
|
+
<span class="container">StandupMD::Config::Cli</span>
|
476
381
|
|
477
382
|
<li class="method">
|
478
|
-
<a href="
|
383
|
+
<a href="StandupMD/Config/Entry.html#method-i-reset_values">#reset_values</a>
|
479
384
|
—
|
480
|
-
<span class="container">
|
385
|
+
<span class="container">StandupMD::Config::Entry</span>
|
481
386
|
|
482
387
|
<li class="method">
|
483
|
-
<a href="
|
388
|
+
<a href="StandupMD/Config/EntryList.html#method-i-reset_values">#reset_values</a>
|
484
389
|
—
|
485
|
-
<span class="container">
|
390
|
+
<span class="container">StandupMD::Config::EntryList</span>
|
486
391
|
|
487
392
|
<li class="method">
|
488
|
-
<a href="
|
393
|
+
<a href="StandupMD/EntryList.html#method-i-size">#size</a>
|
489
394
|
—
|
490
|
-
<span class="container">
|
395
|
+
<span class="container">StandupMD::EntryList</span>
|
491
396
|
|
492
397
|
<li class="method">
|
493
|
-
<a href="
|
398
|
+
<a href="StandupMD/EntryList.html#method-i-sort">#sort</a>
|
494
399
|
—
|
495
|
-
<span class="container">
|
400
|
+
<span class="container">StandupMD::EntryList</span>
|
496
401
|
|
497
402
|
<li class="method">
|
498
|
-
<a href="
|
403
|
+
<a href="StandupMD/EntryList.html#method-i-sort-21">#sort!</a>
|
499
404
|
—
|
500
|
-
<span class="container">
|
405
|
+
<span class="container">StandupMD::EntryList</span>
|
501
406
|
|
502
407
|
<li class="method">
|
503
|
-
<a href="
|
408
|
+
<a href="StandupMD/EntryList.html#method-i-sort_reverse">#sort_reverse</a>
|
504
409
|
—
|
505
|
-
<span class="container">
|
410
|
+
<span class="container">StandupMD::EntryList</span>
|
506
411
|
|
507
412
|
<li class="method">
|
508
|
-
<a href="
|
413
|
+
<a href="StandupMD/Config/File.html#method-i-sub_header_depth-3D">#sub_header_depth=</a>
|
509
414
|
—
|
510
|
-
<span class="container">
|
415
|
+
<span class="container">StandupMD::Config::File</span>
|
511
416
|
|
512
417
|
<li class="method">
|
513
|
-
<a href="
|
418
|
+
<a href="StandupMD/EntryList.html#method-i-to_h">#to_h</a>
|
514
419
|
—
|
515
|
-
<span class="container">
|
420
|
+
<span class="container">StandupMD::EntryList</span>
|
516
421
|
|
517
422
|
<li class="method">
|
518
|
-
<a href="
|
423
|
+
<a href="StandupMD/Entry.html#method-i-to_h">#to_h</a>
|
519
424
|
—
|
520
|
-
<span class="container">
|
425
|
+
<span class="container">StandupMD::Entry</span>
|
521
426
|
|
522
427
|
<li class="method">
|
523
|
-
<a href="StandupMD/
|
428
|
+
<a href="StandupMD/EntryList.html#method-i-to_json">#to_json</a>
|
524
429
|
—
|
525
|
-
<span class="container">StandupMD::
|
430
|
+
<span class="container">StandupMD::EntryList</span>
|
526
431
|
|
527
432
|
<li class="method">
|
528
|
-
<a href="StandupMD.html#method-i-
|
433
|
+
<a href="StandupMD/Entry.html#method-i-to_json">#to_json</a>
|
529
434
|
—
|
530
|
-
<span class="container">StandupMD</span>
|
435
|
+
<span class="container">StandupMD::Entry</span>
|
531
436
|
|
532
437
|
<li class="method">
|
533
|
-
<a href="StandupMD/
|
438
|
+
<a href="StandupMD/File.html#method-i-write">#write</a>
|
534
439
|
—
|
535
|
-
<span class="container">StandupMD::
|
440
|
+
<span class="container">StandupMD::File</span>
|
536
441
|
|
537
442
|
<li class="method">
|
538
443
|
<a href="StandupMD/Cli.html#method-i-write_file">#write_file</a>
|