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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2734d31b2ce72d31aceeb789f562b015c4f0e7422b3a755992df7c1f293a7051
4
- data.tar.gz: 651d1f6f9a613366b90e2b26ba83b8e05dd80dbc5d8bde3a0fcc7d07b57acef1
3
+ metadata.gz: 74c06f0aa4db099f1e64131fdd7e184dd8270db7ee99dd97f9c2cd97374ccef1
4
+ data.tar.gz: 71e038fce40a7f972b058baee23a7cfbbc1b2eabdbb8f0ccee466ea6fdf70345
5
5
  SHA512:
6
- metadata.gz: 5df3037a20d107f82cc34533f89ab8c31a2ba13eb8180b5931b052c500c5c1f7c4922d22ffed254c5fb9e9d7623b5bb207ed5d5c0c22773bcc972a91bba061d4
7
- data.tar.gz: c99e5cf930d4dcf84e6089d458321b00f427ab0c124ecf3b02b8e98d79ba416d5c629793f6f77a8cf1a0337b05ed620600833f1ad8fa2775d7e6eb7205ec22ed
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.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.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
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fevanthegrayt%2Fstandup_md%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/evanthegrayt/standup_md/goto?ref=master)
4
- [![Gem Version](https://badge.fury.io/rb/standup_md.svg)](https://badge.fury.io/rb/standup_md)
4
+ [![Gem Version](https://img.shields.io/gem/v/standup_md.svg)](https://rubygems.org/gems/standup_md)
5
+ ![Language: Ruby](https://img.shields.io/static/v1?label=language&message=Ruby&color=CC342D&style=flat&logo=ruby&logoColor=CC342D)
5
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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. There is an [open
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 precious entry's tasks
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 !tasks || tasks.empty?
21
+ tasks = entry.public_send("#{header_type}_tasks")
22
+ next if tasks.empty?
23
23
 
24
24
  puts sub_header(header_type)
25
- entry.public_send("#{header_type}_tasks").each do |task|
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 precious entry's tasks"
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" entries.
163
+ # The "previous" tasks.
164
164
  #
165
165
  # @return [Array]
166
166
  def previous_entry(file)
167
- return config.entry.previous_entry unless config.cli.auto_fill_previous
168
- return prev_entry(prev_file.load.entries) if file.new? && prev_file
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
- prev_entry(file.entries)
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::Entry]
198
- def prev_entry(entries)
199
- entries.empty? ? [] : entries.last.current
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
  ##
@@ -9,6 +9,10 @@ module StandupMD
9
9
  class Cli
10
10
  include Helpers
11
11
 
12
+ ##
13
+ # Path to the bundled zsh completion script.
14
+ #
15
+ # @return [String]
12
16
  ZSH_COMPLETION_FILE = ::File.expand_path(
13
17
  ::File.join(__dir__, "..", "..", "completion", "zsh", "_standup")
14
18
  ).freeze
@@ -10,6 +10,10 @@ module StandupMD
10
10
  class Entry
11
11
  include Comparable
12
12
 
13
+ ##
14
+ # Section identifiers supported by each standup entry.
15
+ #
16
+ # @return [Array<Symbol>]
13
17
  SECTION_TYPES = %i[current previous impediments notes].freeze
14
18
 
15
19
  ##
@@ -8,6 +8,8 @@ require "standup_md/task"
8
8
  require "standup_md/title"
9
9
 
10
10
  module StandupMD
11
+ ##
12
+ # Namespace for standup file parsers and renderers.
11
13
  module Parsers
12
14
  ##
13
15
  # Parser and renderer for the markdown standup format.
@@ -21,7 +21,7 @@ module StandupMD
21
21
  # Patch version.
22
22
  #
23
23
  # @return [Integer]
24
- PATCH = 0
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup_md
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Gray