dsu 2.4.2 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daab696fe0b9d10062e74dedfba4605ac8d8917d9213188011250def3925a7d7
4
- data.tar.gz: 50b7e48562ef821a547d3ff7468cd92fe2cc6a6af2090fa27b4d3c3f9a853b47
3
+ metadata.gz: c10a6ea372abaf638d307992a6b264c77e00401bb010ed6c9088d0ac5c692bb6
4
+ data.tar.gz: 45d0e54077c23c4ceaa73c8fbeaf763a185b9a391f3dbc2c3ab601c3c529bfe8
5
5
  SHA512:
6
- metadata.gz: cd0028f5f8004b5078961725ca5297d0a962fb9d1d40f45bf452e5af0c3feb76992bad84a54c47bf22b0b3b3662946df5354e5c7fe781ad097c38b95bdf82887
7
- data.tar.gz: 97f7f616664a2b406f196c08bfdd283ad5f184d6d9b357e12a59cdb1b4138ca2562859166618b443a73da5e276ae6229a70c6a4114fa8e023cadde8161fb8d25
6
+ metadata.gz: 7d4692b7a049fc2bb18933664fbfabef1b5b30824edef65a899b4a545ef602735b6bb7f84696daa60eeec3189abefadce16b1d9efe1c7876ff0988136ec74b16
7
+ data.tar.gz: 98d7187717424c4c9ff401a5757a1c11b75cccaaec082692f67854033849a229521d221a3cd6118dcf950bf19611b78f963d70ac0cd92b962b6365aaf479411b
data/CHANGELOG.md CHANGED
@@ -1,313 +1,258 @@
1
- ## [2.4.2] 2024-01-06
1
+ # Changelog
2
2
 
3
- Changes
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- - Correct gemspec to allow ruby ['>= 3.0.1', '< 4.0'].
5
+ ## [2.4.4] - 2024-01-28
6
+ ### Changes
7
+ [x] Update ruby gems.
6
8
 
7
- ## [2.4.1] 2024-01-05
9
+ ## [2.4.3] - 2024-01-07
10
+ ### Changes
11
+ [x] Code refactors, nothing discernable to the end user.
8
12
 
9
- Changes
13
+ ### Bug Fixes
14
+ [x] Fixed bug displaying incorrect editor if the editor session fails to open.
10
15
 
11
- - Move gem version to footer.
12
- - Update ruby gems.
16
+ ## [2.4.2] - 2024-01-06
17
+ ### Changes
18
+ [x] Correct gemspec to allow ruby ['>= 3.0.1', '< 4.0'].
13
19
 
14
- ## [2.4.0] 2024-01-01
20
+ ## [2.4.1] - 2024-01-05
21
+ ### Changes
22
+ [x] Move gem version to footer.
23
+ [x] Update ruby gems.
15
24
 
16
- Enhancements
25
+ ## [2.4.0] - 2024-01-01
26
+ ### Enhancements
27
+ [x] Add `dsu import` command to import DSU entries from a comma-delimited csv file. See `dsu help import` for more information.
28
+ [x] Update README.md to reflect new `dsu import` command.
17
29
 
18
- - Add `dsu import` command to import DSU entries from a comma-delimited csv file. See `dsu help import` for more information.
19
- - Update README.md to reflect new `dsu import` command.
20
-
21
- Changes
22
-
23
- - Update ruby gems.
30
+ ### Changes
31
+ [x] Update ruby gems.
24
32
 
25
33
  ## [2.3.2] 2023-12-30
26
-
27
- Changes
28
-
29
- - Display a "Nothing to export" message if no entries are found, rather than prompting the user "export 0 entry groups" when using the `dsu export` command.
30
- - Add specs for Export::AllPresenter and Export::DatesPresenter
34
+ ### Changes
35
+ [x] Display a "Nothing to export" message if no entries are found, rather than prompting the user "export 0 entry groups" when using the `dsu export` command.
36
+ [x] Add specs for Export::AllPresenter and Export::DatesPresenter
31
37
 
32
38
  ## [2.3.1] 2023-12-25
33
-
34
- Changes
35
-
36
- - Update gemspec spec.post_install_message to reflect new `dsu export` command.
39
+ ### Changes
40
+ [x] Update gemspec spec.post_install_message to reflect new `dsu export` command.
37
41
 
38
42
  ## [2.3.0] 2023-12-25
39
43
 
40
- Enhancements
41
-
42
- - Added `dsu export` command to export all DSU entries or DSU entries between two given dates. Entries are written to a comma-delimited csv file located in your OS temp folder. For more information see `dsu help export` or the README.md file.
44
+ ### Enhancements
45
+ [x] Added `dsu export` command to export all DSU entries or DSU entries between two given dates. Entries are written to a comma-delimited csv file located in your OS temp folder. For more information see `dsu help export` or the README.md file.
43
46
 
44
- Changes
45
-
46
- - Updated README.md to reflect new `dsu export` command.
47
- - Fix misspelling of "cancelable" to "cancellable" in the codebase.
48
- - Update ruby gems.
47
+ ### Changes
48
+ [x] Updated README.md to reflect new `dsu export` command.
49
+ [x] Fix misspelling of "cancelable" to "cancellable" in the codebase.
50
+ [x] Update ruby gems.
49
51
 
50
52
  ## [2.2.2] 2023-12-23
53
+ ### Changes
54
+ [x] README.md updates.
51
55
 
52
- Changes
53
-
54
- - README.md updates.
55
-
56
- Bug fix
57
-
58
- - Fix `dsu config` shortcut command mapping bug that caused `dsu c` to display `dsu delete` command help instead of `dsu config` command help.
56
+ ### Bug fix
57
+ [x] Fix `dsu config` shortcut command mapping bug that caused `dsu c` to display `dsu delete` command help instead of `dsu config` command help.
59
58
 
60
59
  ## [2.2.1] 2023-12-23
61
-
62
- Changes
63
-
64
- - Add specs for `dsu browse` command.
65
- - Code refactors, nothing discernable to the end user.
60
+ ### Changes
61
+ [x] Add specs for `dsu browse` command.
62
+ [x] Code refactors, nothing discernable to the end user.
66
63
 
67
64
  ## [2.2.0] 2023-12-23
68
-
69
65
  Stable release.
70
66
 
71
67
  ## [2.2.0.rc.2] 2023-12-23
68
+ ### Enhancements
69
+ [x] Added "christmas" theme, see `dsu theme list` or `dsu theme show christmas` for more information.
72
70
 
73
- Enhancements
74
-
75
- - Added "christmas" theme, see `dsu theme list` or `dsu theme show christmas` for more information.
76
-
77
- Changes
78
-
79
- - Refactors Dsu::VERSION_REGEX to include rc releases (e.g. 2.2.0.rc.1, 2.2.0.rc.2, etc.).
71
+ ### Changes
72
+ [x] Refactors Dsu::VERSION_REGEX to include rc releases (e.g. 2.2.0.rc.1, 2.2.0.rc.2, etc.).
80
73
 
81
74
  ## [2.2.0.rc.1] 2023-12-23
75
+ ### Enhancements
76
+ [x] Added `dsu browse` command to interactively page through DSU entries.
77
+ [x] Added "light" theme for terminals with light backgrounds, see `dsu theme list` or `dsu theme show light` for more information.
82
78
 
83
- Enhancements
84
-
85
- - Added `dsu browse` command to interactively page through DSU entries.
86
- - Added "light" theme for terminals with light backgrounds, see `dsu theme list` or `dsu theme show light` for more information.
87
-
88
- Changes
89
-
90
- - Refactors to use activesupport Time#in_time_zone, including tests.
91
- - Various code refactors to support the aforementioned change.
79
+ ### Changes
80
+ [x] Refactors to use activesupport Time#in_time_zone, including tests.
81
+ [x] Various code refactors to support the aforementioned change.
92
82
 
93
83
  ## [2.1.4] 2023-12-19
84
+ ### Changes
85
+ [x] Minor code refactors.
94
86
 
95
- Changes
96
-
97
- - Minor code refactors.
98
-
99
- Bug fixes
100
-
101
- - Fix bug in relative date mnemonic (RDMs) regex matcher that incorrectly matched dates whose separater happened to be a "-" (e.g. 2023-12-31). The old regex (/[+-]\d+/) incorrectly interpreted this as an RDM. This bug would cause the `dsu list dates` command (for example) to create erroneous, relative dates.
87
+ ### Bug fixes
88
+ [x] Fix bug in relative date mnemonic (RDMs) regex matcher that incorrectly matched dates whose separater happened to be a "-" (e.g. 2023-12-31). The old regex (/[+-]\d+/) incorrectly interpreted this as an RDM. This bug would cause the `dsu list dates` command (for example) to create erroneous, relative dates.
102
89
 
103
90
  ## [2.1.3] 2023-12-17
104
-
105
- Bug fixes
106
-
107
- - Fix bug that did not recognize the `include_all` configuration option when using the `dsu list dates` command. The `include_all` configuration option is now recognized and used properly when using the `dsu list dates` command. See `dsu help list dates` for more information.
91
+ ### Bug fixes
92
+ [x] Fix bug that did not recognize the `include_all` configuration option when using the `dsu list dates` command. The `include_all` configuration option is now recognized and used properly when using the `dsu list dates` command. See `dsu help list dates` for more information.
108
93
 
109
94
  ## [2.1.2] 2023-12-17
95
+ ### Changes
96
+ [x] WIP, continued I18n integration. See [2.1.0] for more information.
97
+ [x] Removed shortcut mappings for all commands (see `dsu help`) to remove dash ("-") preceeding command shortcuts. For example, `dsu -a` (i.e. shortcut for `dsu add`) is now `dsu a`, `dsu -c` (i.e. shortcut for `dsu config`) is now `dsu c`, etc. This was done to avoid confusion as this format is typically used for options, not shortcut commands. The only exception is `dsu version` which will accept shortcuts `dsu v` and `dsu -v`, as `-v` is generally used to display version information.
98
+ [x] Various code refactors.
99
+ [x] Massive updates to README.md.
110
100
 
111
- Changes
112
-
113
- - WIP, continued I18n integration. See [2.1.0] for more information.
114
- - Removed shortcut mappings for all commands (see `dsu help`) to remove dash ("-") preceeding command shortcuts. For example, `dsu -a` (i.e. shortcut for `dsu add`) is now `dsu a`, `dsu -c` (i.e. shortcut for `dsu config`) is now `dsu c`, etc. This was done to avoid confusion as this format is typically used for options, not shortcut commands. The only exception is `dsu version` which will accept shortcuts `dsu v` and `dsu -v`, as `-v` is generally used to display version information.
115
- - Various code refactors.
116
- - Massive updates to README.md.
117
-
118
- Bug fixes
119
-
120
- - Fix bug that did not apply the current theme to `dsu help add` help.
101
+ ### Bug fixes
102
+ [x] Fix bug that did not apply the current theme to `dsu help add` help.
121
103
 
122
104
  ## [2.1.1] 2023-12-17
123
-
124
- Bug fixes
125
-
126
- - Fix bug that did not included I18n locale files in yanked version 2.1.0.
105
+ ### Bug fixes
106
+ [x] Fix bug that did not included I18n locale files in yanked version 2.1.0.
127
107
 
128
108
  ## [2.1.0] 2023-12-16
109
+ ### Enhancements
110
+ [x] Added `dsu delete` command to incorporate color themes. See `dsu help delete` for more information.
129
111
 
130
- Enhancements
131
-
132
- - Added `dsu delete` command to incorporate color themes. See `dsu help delete` for more information.
133
-
134
- Bug fixes
112
+ ### Bug fixes
113
+ [x] Fix bug that failed to show "(nothing to display for <day>, <date> <local time designator> through <day>, <date> <local time designator>)" for `dsu list dates` command when no entries existed for the entry groups associated with the given dates.
135
114
 
136
- - Fix bug that failed to show "(nothing to display for <day>, <date> <local time designator> through <day>, <date> <local time designator>)" for `dsu list dates` command when no entries existed for the entry groups associated with the given dates.
137
-
138
- Miscellaneous
139
-
140
- - WIP, begin I18n support/integration.
141
- - Update ruby gems.
142
- - Updated README.md to reflect new `dsu delete` command.
143
- - Fix rubocop violations.
115
+ ### Miscellaneous
116
+ [x] WIP, begin I18n support/integration.
117
+ [x] Update ruby gems.
118
+ [x] Updated README.md to reflect new `dsu delete` command.
119
+ [x] Fix rubocop violations.
144
120
 
145
121
  ## [2.0.8] 2023-12-02
146
-
147
- - Update ruby gems.
122
+ ### Changes
123
+ [x] Update ruby gems.
148
124
 
149
125
  ## [2.0.7] 2023-11-24
150
-
151
- - Update ruby gems.
152
- - Remove stale/unnecessary code.
126
+ ### Changes
127
+ [x] Update ruby gems.
128
+ [x] Remove stale/unnecessary code.
153
129
 
154
130
  ## [2.0.6] 2023-10-30
155
-
156
- - Update ruby gems.
131
+ ### Changes
132
+ [x] Update ruby gems.
157
133
 
158
134
  ## [2.0.5] 2023-10-30
159
-
160
- - Update ruby gems.
135
+ ### Changes
136
+ [x] Update ruby gems.
161
137
 
162
138
  ## [2.0.4] 2023-08-28
163
-
164
- - Update ruby gems.
139
+ ### Changes
140
+ [x] Update ruby gems.
165
141
 
166
142
  ## [2.0.3] 2023-08-17
167
-
168
- - Bump activesupport from 7.0.5 to 7.0.7
169
- - Bump simplecov from 0.21.2 to 0.22.0
143
+ ### Changes
144
+ [x] Bump activesupport from 7.0.5 to 7.0.7
145
+ [x] Bump simplecov from 0.21.2 to 0.22.0
170
146
 
171
147
  ## [2.0.2] 2023-08-17
172
-
173
- - Bumps activemodel from 7.0.5 to 7.0.7.
174
- - Update colorize requirement from ~> 0.8.1 to >= 0.8.1, < 1.2.0
175
- - Bump rubocop-rspec from 2.22.0 to 2.23.2
176
- - Bump rubocop-performance from 1.18.0 to 1.19.0
177
- - Bump rubocop from 1.52.0 to 1.56.0
178
-
179
- Changes
180
-
181
- - Fix rubocop violations
148
+ ### Changes
149
+ [x] Bumps activemodel from 7.0.5 to 7.0.7.
150
+ [x] Update colorize requirement from ~> 0.8.1 to >= 0.8.1, < 1.2.0
151
+ [x] Bump rubocop-rspec from 2.22.0 to 2.23.2
152
+ [x] Bump rubocop-performance from 1.18.0 to 1.19.0
153
+ [x] Bump rubocop from 1.52.0 to 1.56.0
154
+ [x] Fix rubocop violations
182
155
 
183
156
  ## [2.0.1] 2023-08-16
184
-
185
- Changes
186
-
187
- - Bump to official release.
188
- - None (see below).
157
+ ### Changes
158
+ [x] Bump to official release.
159
+ [x] None (see below).
189
160
 
190
161
  ## [2.0.0] 2023-08-16 (yanked)
191
162
 
192
163
  ## [2.0.0.alpha.1] 2023-08-16
164
+ ### Changes
165
+ [x] Major refactors to the `dsu` codebase.
166
+ [x] Added `dsu theme` command to incorporate color themes. See `dsu help theme` for more information.
167
+ [x] Added `dsu info` command to display details about the current dsu release. See `dsu help info` for more information.
168
+ [x] Added "migrations", which is really a method of backup whereby user data is backed up to the dsu folder under `backup/<migration version>`. Backups will occur whenever a breaking change is made to any of the dsu models (ColorTheme, Configuration, EntryGroup or MigrationVersion). In this way, users can create their own scripts to migrate their associated model `.json`` files to the latest model version, and move them back into the appropriate dsu folder structure so data can be retained.
169
+ [x] Changes to command help to be more uniform.
193
170
 
194
- Changes
195
-
196
- - Major refactors to the `dsu` codebase.
197
- - Added `dsu theme` command to incorporate color themes. See `dsu help theme` for more information.
198
- - Added `dsu info` command to display details about the current dsu release. See `dsu help info` for more information.
199
- - Added "migrations", which is really a method of backup whereby user data is backed up to the dsu folder under `backup/<migration version>`. Backups will occur whenever a breaking change is made to any of the dsu models (ColorTheme, Configuration, EntryGroup or MigrationVersion). In this way, users can create their own scripts to migrate their associated model `.json`` files to the latest model version, and move them back into the appropriate dsu folder structure so data can be retained.
200
- - Changes to command help to be more uniform.
201
-
202
- Bug fixes
203
-
204
- - Various bug fixes.
171
+ ### Bug fixes
172
+ [x] Various bug fixes.
205
173
 
206
174
  ## [2.0.0.alpha.0] 2023-06-26 (yanked)
207
175
 
208
176
  ## [1.2.1] 2023-06-02
177
+ ### Bug fixes
209
178
 
210
- Bug fixes
211
-
212
- - Fixed a bug that raises an error `NoMethodError` for `entry_group_file_exists?` if the `carry_over_entries_to_today` configuration option is set to true, and attempting to edit today's dsu entries.
179
+ [x] Fixed a bug that raises an error `NoMethodError` for `entry_group_file_exists?` if the `carry_over_entries_to_today` configuration option is set to true, and attempting to edit today's dsu entries.
213
180
 
214
181
  ## [1.2.0] 2023-05-26
215
-
216
- Changes
217
-
218
- - Various refactors.
219
- - Bring test coverage to >= 85%.
182
+ ### Changes
183
+ [x] Various refactors.
184
+ [x] Bring test coverage to >= 85%.
220
185
 
221
186
  ## [1.1.2] 2023-05-26
222
-
223
- Changes
224
-
225
- - Various refactors.
226
- - Add more test coverage.
187
+ ### Changes
188
+ [x] Various refactors.
189
+ [x] Add more test coverage.
227
190
 
228
191
  ## [1.1.1] 2023-05-23
229
-
230
192
  See previous alpha releases for changes.
231
193
 
232
194
  ## [1.1.1.alpha.2] 2023-05-23
195
+ ### Changes
196
+ [x] For convenience, the `dsu list date` command now takes a MNEMONIC in addition to a DATE. See `dsu list help date` for more information.
233
197
 
234
- Changes
235
-
236
- - For convenience, the `dsu list date` command now takes a MNEMONIC in addition to a DATE. See `dsu list help date` for more information.
237
-
238
- Bug fixes
239
-
240
- - Fix a bug that did not display `dsu list dates SUBCOMMAND` date list properly when the `--from` option was a date mnemonic and the `--to` optoin was a relative time mnemonic (e.g. `dsu list dates -f today -t +1`). In this case, DSU dates `Time.now` and `Time.now.tomorrow` should be displayed; instead, the bug would consider the `--to` option as relative to `Time.now`, so only 1 DSU date (`Time.now` would be returned).
198
+ ### Bug fixes
199
+ [x] Fix a bug that did not display `dsu list dates SUBCOMMAND` date list properly when the `--from` option was a date mnemonic and the `--to` optoin was a relative time mnemonic (e.g. `dsu list dates -f today -t +1`). In this case, DSU dates `Time.now` and `Time.now.tomorrow` should be displayed; instead, the bug would consider the `--to` option as relative to `Time.now`, so only 1 DSU date (`Time.now` would be returned).
241
200
 
242
201
  ## [1.1.0.alpha.1] 2023-05-23
202
+ ### Changes
243
203
 
244
- Changes
245
-
246
- - Added new configuration option `carry_over_entries_to_today` (`true|false`, default: `false`); if true, when editing DSU entries **for the first time** on any given day (e.g. `dsu edit today`), DSU entries from the previous day will be copied to the editing session. If there are no DSU entries from the previous day, `dsu` will search backwards up to 7 days to find a DSU date that has entries to copy. If after searching back 7 days, no DSU entries are found, the editor session will simply start with no previous DSU entries.
247
- - Added new configuration option `include_all` (`true|false`, default: `false`); if true, when using dsu commands that list date ranges (e.g. `dsu list dates`), the displayed list will include dates that have no dsu entries. If false, the displayed list will only include dates that have dsu entries. For all other `dsu list` commands, if true, this option will behave in the aforementioned manner. If false, the displayed list will unconditionally display the first and last dates regardless of whether or not the DSU date has entries or not; all other dates will not be displayed if the DSU date has no entries.
248
- - Changed the look of the editor template when editing entry group entries.
204
+ [x] Added new configuration option `carry_over_entries_to_today` (`true|false`, default: `false`); if true, when editing DSU entries **for the first time** on any given day (e.g. `dsu edit today`), DSU entries from the previous day will be copied to the editing session. If there are no DSU entries from the previous day, `dsu` will search backwards up to 7 days to find a DSU date that has entries to copy. If after searching back 7 days, no DSU entries are found, the editor session will simply start with no previous DSU entries.
205
+ [x] Added new configuration option `include_all` (`true|false`, default: `false`); if true, when using dsu commands that list date ranges (e.g. `dsu list dates`), the displayed list will include dates that have no dsu entries. If false, the displayed list will only include dates that have dsu entries. For all other `dsu list` commands, if true, this option will behave in the aforementioned manner. If false, the displayed list will unconditionally display the first and last dates regardless of whether or not the DSU date has entries or not; all other dates will not be displayed if the DSU date has no entries.
206
+ [x] Changed the look of the editor template when editing entry group entries.
249
207
 
250
208
  ## [1.0.0] 2023-05-18
209
+ ### First official release
210
+ [x] NOTE: If you have been using the alpha version of `dsu`, you will need to delete the `entries` folder (e.g. `/Users/<whoami>/dsu/entries` on a nix os) as the old entries .json files are incompatible with this official release.
251
211
 
252
- First official release.
253
-
254
- - NOTE: If you have been using the alpha version of `dsu`, you will need to delete the `entries` folder (e.g. `/Users/<whoami>/dsu/entries` on a nix os) as the old entries .json files are incompatible with this official release.
255
-
256
- Changes from the alpha version
257
-
258
- - When editing an entry group, editor commands are no longer necessary. Simply add, remove or change entries as needed. See the README.md for more information.
259
- - When editing an entry group and saving the results, take note of the folowing behavior:
212
+ ### Changes from the alpha version
213
+ [x] When editing an entry group, editor commands are no longer necessary. Simply add, remove or change entries as needed. See the README.md for more information.
214
+ [x] When editing an entry group and saving the results, take note of the folowing behavior:
260
215
  - Entering duplicate entries are not allowed, only one entry with a given description is allowed per entry group.
261
216
  - Entering entries whose descriptions are < 2 or > 256 characters will fail validation and will not be saved.
262
217
  - When editing and encountering any of the aforementioned, the errors will be displayed to the console after the editor file is saved.
263
- - Sha's are no longer being used, as I've not found a good use (currently) to use them. I may add them back in the future if I find a good use for them (tracking entries across entry groups, etc.).
264
- - When adding an entry (`dsu add OPTION`), it used to be that after the entry was added, the entry group for the date being edited would be displayed, as well as "yesterday's" date. This is no longer the case; now, only the entry group for the date being edited is displayed.
218
+ [x] Sha's are no longer being used, as I've not found a good use (currently) to use them. I may add them back in the future if I find a good use for them (tracking entries across entry groups, etc.).
219
+ [x] When adding an entry (`dsu add OPTION`), it used to be that after the entry was added, the entry group for the date being edited would be displayed, as well as "yesterday's" date. This is no longer the case; now, only the entry group for the date being edited is displayed.
265
220
 
266
221
  ## [0.1.0.alpha.5] 2023-05-12
267
-
268
- Changes
269
-
270
- - `dsu edit SUBCOMMAND` will now allow editing of an entry group for a date that does not yet exist. This will allow you to add entries in the editor using `+|a|add DESCRIPTION`. Be sure to follow the instructions in the editor when editing entry group entries.
271
- - `dsu edit SUBCOMMAND` will gracefully display an error if the entry sha (Entry#uuid) or entry discription (Entry#description) are not unique. In this case, the entry will not be added to the entry group.
222
+ ### Changes
223
+ [x] `dsu edit SUBCOMMAND` will now allow editing of an entry group for a date that does not yet exist. This will allow you to add entries in the editor using `+|a|add DESCRIPTION`. Be sure to follow the instructions in the editor when editing entry group entries.
224
+ [x] `dsu edit SUBCOMMAND` will gracefully display an error if the entry sha (Entry#uuid) or entry discription (Entry#description) are not unique. In this case, the entry will not be added to the entry group.
272
225
  NOTE: Not all edge cases are being handled currently by `dsu edit SUBCOMMAND`.
273
- - `dsu add OPTION` will raise an error if the entry discription (Entry#description) are not unique. This will be handled gracefully in a future release.
226
+ [x] `dsu add OPTION` will raise an error if the entry discription (Entry#description) are not unique. This will be handled gracefully in a future release.
274
227
 
275
228
  ## [0.1.0.alpha.4] 2023-05-09
276
-
277
- Changes
278
-
279
- - Gemfile gemspec description changes.
229
+ ### Changes
230
+ [x] Gemfile gemspec description changes.
280
231
 
281
232
  ## [0.1.0.alpha.3] 2023-05-09
233
+ ### Changes
234
+ [x] Entry groups are now editable using the `dsu edit SUBCOMMAND` command. See the README.md or `dsu help edit` for more information.
235
+ [x] Added `editor` configuration option to specify the editor to use when editing an entry group. This configuration option is used if the $EDITOR environment variable is not set.
282
236
 
283
- Changes
284
-
285
- - Entry groups are now editable using the `dsu edit SUBCOMMAND` command. See the README.md or `dsu help edit` for more information.
286
- - Added `editor` configuration option to specify the editor to use when editing an entry group. This configuration option is used if the $EDITOR environment variable is not set.
287
-
288
- Bug fixes
289
-
290
- - Fix bug that failed to load default configuration values properly when provided (surfaced in specs).
237
+ ### Bug fixes
238
+ [x] Fix bug that failed to load default configuration values properly when provided (surfaced in specs).
291
239
 
292
240
  ## [0.1.0.alpha.2] 2023-05-08
293
-
294
241
  ATTENTION: After installing this pre-release, run `dsu config info` and take note of the `entries_folder` config option value (e.g. something like '/Users/<whoami>/dsu/entries' on a nix os). You'll need to delete the entry group files therein ( \<YYYY\>\-\<MM\>\-\<DD\>.json e.g. 2023-05-07.json) to avoid errors when running this version of `dsu`.
295
242
 
296
243
  WIP (not fully implemented yet)
297
244
 
298
- - Added `dsu edit` command to edit an existing entry.
299
-
300
- Changes
301
-
302
- - Remove Entry#long_description and make Entry#description longer (to 256 bytes max).
303
- - Added `dsu` short-cut commands|options `a|-a`, `c|-c`, `e|-e` and `l|-l` for `add`, `config`, `edit` and `list` commands respectively. For example, can now do `dsu a` or `dsu -a` instead of `dsu add`.
304
- - Added `dsu list` short-cut subcommand|options `d|-d`, `n|-n`, `t|-t` and `y|-y` for `date DATE`, `today`, `tomorrow` and `yesterday` subcommands respectively. For example, can now do `dsu n` or `dsu -n` instead of `dsu today` to list your DSU entries for "today".
305
- - `dsu list` commands now lists all DSU entries from the date being requested (SUBCOMMAND i.e. `today`, `tomorrow`, `yesterday` or `date`), back to and including the previous Friday IF the date being being requested falls on a Monday or weekend. This is so that the DSU entries for the weekend and previous Friday can be shared at DSU if you hold a DSU on the weekend (if you're insane enough to work and have DSU on the weekend) or on a Monday if you happened to work on the weekend as well.
306
- - `dsu config info` now displays the default configuration being used if no configuration file is being used.
245
+ [x] Added `dsu edit` command to edit an existing entry.
307
246
 
308
- Bug fixes
247
+ ### Changes
248
+ [x] Remove Entry#long_description and make Entry#description longer (to 256 bytes max).
249
+ [x] Added `dsu` short-cut commands|options `a|-a`, `c|-c`, `e|-e` and `l|-l` for `add`, `config`, `edit` and `list` commands respectively. For example, can now do `dsu a` or `dsu -a` instead of `dsu add`.
250
+ [x] Added `dsu list` short-cut subcommand|options `d|-d`, `n|-n`, `t|-t` and `y|-y` for `date DATE`, `today`, `tomorrow` and `yesterday` subcommands respectively. For example, can now do `dsu n` or `dsu -n` instead of `dsu today` to list your DSU entries for "today".
251
+ [x] `dsu list` commands now lists all DSU entries from the date being requested (SUBCOMMAND i.e. `today`, `tomorrow`, `yesterday` or `date`), back to and including the previous Friday IF the date being being requested falls on a Monday or weekend. This is so that the DSU entries for the weekend and previous Friday can be shared at DSU if you hold a DSU on the weekend (if you're insane enough to work and have DSU on the weekend) or on a Monday if you happened to work on the weekend as well.
252
+ [x] `dsu config info` now displays the default configuration being used if no configuration file is being used.
309
253
 
310
- - Fix bug that fails to load/use configuration file options when a config file exists.
254
+ ### Bug fixes
255
+ [x] Fix bug that fails to load/use configuration file options when a config file exists.
311
256
 
312
257
  ## [0.1.0.alpha.1] 2023-05-06
313
258
 
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dsu (2.4.2)
4
+ dsu (2.4.4)
5
5
  activemodel (>= 7.0.8, < 8.0)
6
6
  activesupport (>= 7.0.8, < 8.0)
7
- colorize (>= 0.8.1, < 1.0)
7
+ colorize (>= 1.1, < 2.0)
8
8
  os (>= 1.1, < 2.0)
9
9
  thor (>= 1.2, < 2.0)
10
10
  thor_nested_subcommand (>= 1.0, < 2.0)
@@ -12,9 +12,9 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activemodel (7.1.2)
16
- activesupport (= 7.1.2)
17
- activesupport (7.1.2)
15
+ activemodel (7.1.3)
16
+ activesupport (= 7.1.3)
17
+ activesupport (7.1.3)
18
18
  base64
19
19
  bigdecimal
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -26,11 +26,11 @@ GEM
26
26
  tzinfo (~> 2.0)
27
27
  ast (2.4.2)
28
28
  base64 (0.2.0)
29
- bigdecimal (3.1.5)
29
+ bigdecimal (3.1.6)
30
30
  byebug (11.1.3)
31
31
  coderay (1.1.3)
32
- colorize (0.8.1)
33
- concurrent-ruby (1.2.2)
32
+ colorize (1.1.0)
33
+ concurrent-ruby (1.2.3)
34
34
  connection_pool (2.4.1)
35
35
  diff-lcs (1.5.0)
36
36
  docile (1.4.0)
@@ -72,11 +72,11 @@ GEM
72
72
  json (2.7.1)
73
73
  language_server-protocol (3.17.0.3)
74
74
  method_source (1.0.0)
75
- minitest (5.20.0)
75
+ minitest (5.21.2)
76
76
  mutex_m (0.2.0)
77
77
  os (1.1.4)
78
78
  parallel (1.24.0)
79
- parser (3.2.2.4)
79
+ parser (3.3.0.5)
80
80
  ast (~> 2.4.1)
81
81
  racc
82
82
  pry (0.14.2)
@@ -88,12 +88,12 @@ GEM
88
88
  racc (1.7.3)
89
89
  rainbow (3.1.1)
90
90
  rake (13.1.0)
91
- reek (6.2.0)
91
+ reek (6.3.0)
92
92
  dry-schema (~> 1.13.0)
93
- parser (~> 3.2.0)
93
+ parser (~> 3.3.0)
94
94
  rainbow (>= 2.0, < 4.0)
95
95
  rexml (~> 3.1)
96
- regexp_parser (2.8.3)
96
+ regexp_parser (2.9.0)
97
97
  rexml (3.2.6)
98
98
  rspec (3.12.0)
99
99
  rspec-core (~> 3.12.0)
@@ -108,11 +108,11 @@ GEM
108
108
  diff-lcs (>= 1.2.0, < 2.0)
109
109
  rspec-support (~> 3.12.0)
110
110
  rspec-support (3.12.1)
111
- rubocop (1.59.0)
111
+ rubocop (1.60.2)
112
112
  json (~> 2.3)
113
113
  language_server-protocol (>= 3.17.0)
114
114
  parallel (~> 1.10)
115
- parser (>= 3.2.2.4)
115
+ parser (>= 3.3.0.2)
116
116
  rainbow (>= 2.2.2, < 4.0)
117
117
  regexp_parser (>= 1.8, < 3.0)
118
118
  rexml (>= 3.2.5, < 4.0)
@@ -123,9 +123,9 @@ GEM
123
123
  parser (>= 3.2.1.0)
124
124
  rubocop-capybara (2.20.0)
125
125
  rubocop (~> 1.41)
126
- rubocop-factory_bot (2.25.0)
127
- rubocop (~> 1.33)
128
- rubocop-performance (1.20.1)
126
+ rubocop-factory_bot (2.25.1)
127
+ rubocop (~> 1.41)
128
+ rubocop-performance (1.20.2)
129
129
  rubocop (>= 1.48.1, < 2.0)
130
130
  rubocop-ast (>= 1.30.0, < 2.0)
131
131
  rubocop-rspec (2.26.1)
@@ -141,7 +141,7 @@ GEM
141
141
  simplecov-html (0.12.3)
142
142
  simplecov_json_formatter (0.1.4)
143
143
  thor (1.3.0)
144
- thor_nested_subcommand (1.0.5)
144
+ thor_nested_subcommand (1.0.7)
145
145
  tzinfo (2.0.6)
146
146
  concurrent-ruby (~> 1.0)
147
147
  unicode-display_width (2.5.0)
data/README.md CHANGED
@@ -1,17 +1,20 @@
1
1
  # `dsu`
2
2
 
3
3
  [![Ruby](https://github.com/gangelo/dsu/actions/workflows/ruby.yml/badge.svg)](https://github.com/gangelo/dsu/actions/workflows/ruby.yml)
4
- [![GitHub version](http://badge.fury.io/gh/gangelo%2Fdsu.svg?refresh=6)](https://badge.fury.io/gh/gangelo%2Fdsu)
5
- [![Gem Version](https://badge.fury.io/rb/dsu.svg?refresh=6)](https://badge.fury.io/rb/dsu)
4
+ [![GitHub version](http://badge.fury.io/gh/gangelo%2Fdsu.svg?refresh=11)](https://badge.fury.io/gh/gangelo%2Fdsu)
5
+ [![Gem Version](https://badge.fury.io/rb/dsu.svg?refresh=11)](https://badge.fury.io/rb/dsu)
6
6
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/dsu/)
7
7
  [![Report Issues](https://img.shields.io/badge/report-issues-red.svg)](https://github.com/gangelo/dsu/issues)
8
8
  [![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
9
9
 
10
- `dsu` is a [ruby gem](https://rubygems.org/gems/dsu) that enables anyone practicing [Agile methodology](https://www.agilealliance.org/agile101/) to record, keep track of and manage their [daily standup (DSU)](https://www.agilealliance.org/glossary/daily-meeting/) activities.
10
+ `dsu` is a [ruby gem](https://rubygems.org/gems/dsu) that enables anyone practicing the [Agile methodology](https://www.agilealliance.org/agile101/) to record, keep track of and manage their [daily standup (DSU)](https://www.agilealliance.org/glossary/daily-meeting/) activities.
11
11
 
12
12
  - `dsu` uses _no_ network connections whatsoever.
13
13
  - `dsu` stores all of its data _locally_, in .json files.
14
14
  - `dsu` is a simple (but powerful) command-line tool for users who _love_ to work within the terminal.
15
+ - `dsu` versioning follows the [semantic versioning standard](https://semver.org/) (MAJOR.MINOR.PATCH).
16
+ - See the [CHANGELOG.md](https://github.com/gangelo/dsu/blob/main/CHANGELOG.md) before upgrading to a MAJOR `dsu` version.
17
+ - See the [Exporting DSU entries](https://github.com/gangelo/dsu/wiki/Exporting-DSU-entries) wiki on how to export (backup) your data.
15
18
 
16
19
  # Installation
17
20
  ```shell
@@ -19,12 +22,17 @@ gem install dsu
19
22
  ```
20
23
 
21
24
  # Documentation
22
- [https://github.com/gangelo/dsu/wiki](https://github.com/gangelo/dsu/wiki)
25
+ The [dsu wiki](https://github.com/gangelo/dsu/wiki) is currently the gold standard for `dsu` documentation.
23
26
 
24
27
  # Examples
25
- TODO
28
+ * The [dsu wiki](https://github.com/gangelo/dsu/wiki) is repleat with practical examples on how to use `dsu`.
29
+ * Visit the [How I use dsu daily as an Agile developer](https://github.com/gangelo/dsu/wiki/How-I-use-dsu-daily-as-an-Agile-developer) wiki for examples of how _I_ use `dsu` on a daily basis.
26
30
 
27
31
  # Supported ruby versions
28
- TODO
32
+ `dsu` _should_ work with any ruby version `['>= 3.0.1', '< 4.0']`; however, `dsu` is currently tested against the following ruby versions:
33
+ - 3.0.1
34
+ - 3.0.6
35
+ - 3.1.4
36
+ - 3.2.2
29
37
 
30
- Copyright (c) 2023-2024 Erik Gene Angelo. See [LICENSE](https://github.com/gangelo/dsu/LICENSE.txt) for details.
38
+ Copyright (c) 2023-2024 Gene Angelo. See [LICENSE](https://github.com/gangelo/dsu/blob/main/LICENSE.txt) for details.
data/lib/dsu/base_cli.rb CHANGED
@@ -10,7 +10,6 @@ require_relative 'services/stdout_redirector_service'
10
10
  require_relative 'support/color_themable'
11
11
  require_relative 'support/command_help_colorizeable'
12
12
  require_relative 'support/command_hookable'
13
- require_relative 'support/entry_group_viewable'
14
13
  require_relative 'support/times_sortable'
15
14
  require_relative 'version'
16
15
  require_relative 'views/entry_group/show'
@@ -20,7 +19,6 @@ module Dsu
20
19
  include Support::ColorThemable
21
20
  include Support::CommandHelpColorizable
22
21
  include Support::CommandHookable
23
- include Support::EntryGroupViewable
24
22
  include Support::TimesSortable
25
23
 
26
24
  class_option :debug, type: :boolean, default: false