standup_md 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +4 -12
- data/lib/standup_md/cli/helpers.rb +12 -12
- data/lib/standup_md/cli.rb +4 -0
- data/lib/standup_md/entry.rb +4 -0
- data/lib/standup_md/parsers/markdown.rb +2 -0
- data/lib/standup_md/version.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74c06f0aa4db099f1e64131fdd7e184dd8270db7ee99dd97f9c2cd97374ccef1
|
|
4
|
+
data.tar.gz: 71e038fce40a7f972b058baee23a7cfbbc1b2eabdbb8f0ccee466ea6fdf70345
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6321c1cf53d23f8a2cd05f191f87059bc9ac308951373ab391ef53c844289098b1edcd4fcb6ef107d7f5bea9f124f7cbd105d75c3d40c2f3fe689427be783264
|
|
7
|
+
data.tar.gz: 8cefeb0ac1a75a8313ebdaabed8edfdf5b928b73c625c3f3bafebe1b330fafe6d44de2ebc26aee9379ce811b376eac601edd23dc4870c6fafc9b5acc0babf1aa
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
standup_md (1.0.
|
|
4
|
+
standup_md (1.0.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -115,7 +115,7 @@ CHECKSUMS
|
|
|
115
115
|
standard (1.54.0) sha256=7a4b08f83d9893083c8f03bc486f0feeb6a84d48233b40829c03ef4767ea0100
|
|
116
116
|
standard-custom (1.0.2) sha256=424adc84179a074f1a2a309bb9cf7cd6bfdb2b6541f20c6bf9436c0ba22a652b
|
|
117
117
|
standard-performance (1.9.0) sha256=49483d31be448292951d80e5e67cdcb576c2502103c7b40aec6f1b6e9c88e3f2
|
|
118
|
-
standup_md (1.0.
|
|
118
|
+
standup_md (1.0.1)
|
|
119
119
|
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
120
120
|
test-unit (3.7.8) sha256=689d1ca53f4d46f678b4e5d68d8e4294f87fc5e8b9238cc4de7c5727e8d65943
|
|
121
121
|
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# The Standup Doctor
|
|
2
2
|
<!-- vi: set ts=4 sw=4 : -->
|
|
3
3
|
[](https://actions-badge.atrox.dev/evanthegrayt/standup_md/goto?ref=master)
|
|
4
|
-
[](https://rubygems.org/gems/standup_md)
|
|
5
|
+

|
|
5
6
|
[](https://opensource.org/licenses/MIT)
|
|
6
7
|
|
|
7
8
|
> The cure for all your standup woes.
|
|
@@ -151,16 +152,7 @@ You'll notice, a lot of settings don't have the ability to be changed at runtime
|
|
|
151
152
|
when calling the executable. This is because the file structure is very
|
|
152
153
|
important, and changing values that affect formatting will cause problems with
|
|
153
154
|
the file parser. If you don't want to use a default, make the change in your
|
|
154
|
-
config file before you start editing standups.
|
|
155
|
-
issue](https://github.com/evanthegrayt/standup_md/issues/16) for handling this
|
|
156
|
-
for the user, but they're not available yet.
|
|
157
|
-
|
|
158
|
-
There are no options to change the headers at runtime because it uses the
|
|
159
|
-
headers to detect tasks from previous entries. If changed at runtime, this would
|
|
160
|
-
cause errors. For this reason, if you don't like the default headers, change
|
|
161
|
-
them in your configuration file after installation, and then try to not change
|
|
162
|
-
them again.
|
|
163
|
-
|
|
155
|
+
config file before you start editing standups.
|
|
164
156
|
|
|
165
157
|
#### Available Config File Options and Defaults
|
|
166
158
|
For command-line usage, this file needs to be named `~/.standuprc`. To use in a
|
|
@@ -215,7 +207,7 @@ Some of these options can be changed at runtime. They are as follows.
|
|
|
215
207
|
|
|
216
208
|
```
|
|
217
209
|
--current ARRAY List of current entry's tasks
|
|
218
|
-
--previous ARRAY List of
|
|
210
|
+
--previous ARRAY List of previous entry's tasks
|
|
219
211
|
--impediments ARRAY List of impediments for current entry
|
|
220
212
|
--notes ARRAY List of notes for current entry
|
|
221
213
|
--sub-header-order ARRAY The order of the sub-headers when writing the file
|
|
@@ -18,11 +18,11 @@ module StandupMD
|
|
|
18
18
|
|
|
19
19
|
puts header(entry)
|
|
20
20
|
config.file.sub_header_order.each do |header_type|
|
|
21
|
-
tasks = entry.public_send(header_type)
|
|
22
|
-
next if
|
|
21
|
+
tasks = entry.public_send("#{header_type}_tasks")
|
|
22
|
+
next if tasks.empty?
|
|
23
23
|
|
|
24
24
|
puts sub_header(header_type)
|
|
25
|
-
|
|
25
|
+
tasks.each do |task|
|
|
26
26
|
puts parser.task_line(task)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -55,7 +55,7 @@ module StandupMD
|
|
|
55
55
|
|
|
56
56
|
opts.on(
|
|
57
57
|
"--previous ARRAY", Array,
|
|
58
|
-
"List of
|
|
58
|
+
"List of previous entry's tasks"
|
|
59
59
|
) { |v| config.entry.previous = v }
|
|
60
60
|
|
|
61
61
|
opts.on(
|
|
@@ -160,14 +160,14 @@ module StandupMD
|
|
|
160
160
|
end
|
|
161
161
|
|
|
162
162
|
##
|
|
163
|
-
# The "previous"
|
|
163
|
+
# The "previous" tasks.
|
|
164
164
|
#
|
|
165
165
|
# @return [Array]
|
|
166
166
|
def previous_entry(file)
|
|
167
|
-
return config.entry.
|
|
168
|
-
return
|
|
167
|
+
return config.entry.previous unless config.cli.auto_fill_previous
|
|
168
|
+
return prev_entry_tasks(prev_file.load.entries) if file.new? && prev_file
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
prev_entry_tasks(file.entries)
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
##
|
|
@@ -190,13 +190,13 @@ module StandupMD
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
##
|
|
193
|
-
# The previous entry.
|
|
193
|
+
# The previous entry's current tasks.
|
|
194
194
|
#
|
|
195
195
|
# @param [StandupMD::EntryList] entries
|
|
196
196
|
#
|
|
197
|
-
# @return [StandupMD::
|
|
198
|
-
def
|
|
199
|
-
entries.empty? ? [] : entries.last.
|
|
197
|
+
# @return [Array<StandupMD::Task>]
|
|
198
|
+
def prev_entry_tasks(entries)
|
|
199
|
+
entries.empty? ? [] : entries.last.current_tasks
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
##
|
data/lib/standup_md/cli.rb
CHANGED
data/lib/standup_md/entry.rb
CHANGED
data/lib/standup_md/version.rb
CHANGED
|
@@ -21,7 +21,7 @@ module StandupMD
|
|
|
21
21
|
# Patch version.
|
|
22
22
|
#
|
|
23
23
|
# @return [Integer]
|
|
24
|
-
PATCH =
|
|
24
|
+
PATCH = 1
|
|
25
25
|
|
|
26
26
|
##
|
|
27
27
|
# Version as +[MAJOR, MINOR, PATCH]+
|
|
@@ -48,5 +48,9 @@ module StandupMD
|
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
##
|
|
52
|
+
# Full gem version string.
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
51
55
|
VERSION = StandupMD::Version.to_s
|
|
52
56
|
end
|