dsu 1.1.0.alpha.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +1 -1
- data/lib/dsu/base_cli.rb +2 -2
- data/lib/dsu/subcommands/config.rb +0 -1
- data/lib/dsu/subcommands/list.rb +1 -1
- data/lib/dsu/support/command_options/time_mneumonic.rb +0 -8
- data/lib/dsu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01e8ee8331cd245ac664fd67acbc1cb3ffdab02f0693acdce44d73a9f9d7d161
|
4
|
+
data.tar.gz: 1e83c417a55ccffe97b616ac907264dd589da4bafc333ff572f44574b4a671c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3c6832cbbea8cc42aef3d947d6040963fb182318578bd98e52a6c2be435767fb2d0a1755927657068a74ebec88003fbfcc17108072a41d2aabc5b6dd3f507c
|
7
|
+
data.tar.gz: e0fc66db534b39c8fa72ef2bffaa49f3f3bcde9dc18d8facd5573462cf389188d3359f3501d11570529dd8ee1dee76b1c468ec6cb3aa3ec21ed44d26751d1b0c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/dsu/base_cli.rb
CHANGED
@@ -31,7 +31,7 @@ module Dsu
|
|
31
31
|
|
32
32
|
def date_option_description
|
33
33
|
<<-OPTION_DESC
|
34
|
-
DATE
|
34
|
+
DATE
|
35
35
|
\x5
|
36
36
|
This may be any date string that can be parsed using `Time.parse`. Consequently, you may use also use '/' as date separators, as well as omit thee year if the date you want to display is the current year (e.g. <month>/<day>, or 1/31). For example: `require 'time'; Time.parse('01/02/2023'); Time.parse('1/2') # etc.`
|
37
37
|
OPTION_DESC
|
@@ -39,7 +39,7 @@ module Dsu
|
|
39
39
|
|
40
40
|
def mneumonic_option_description
|
41
41
|
<<-OPTION_DESC
|
42
|
-
MNEUMONIC
|
42
|
+
MNEUMONIC
|
43
43
|
\x5
|
44
44
|
This may be any of the following: n|today|t|tomorrow|y|yesterday|+n|-n.
|
45
45
|
|
data/lib/dsu/subcommands/list.rb
CHANGED
@@ -84,7 +84,7 @@ module Dsu
|
|
84
84
|
\x5
|
85
85
|
`dsu dates|dd OPTIONS`
|
86
86
|
|
87
|
-
OPTIONS
|
87
|
+
OPTIONS
|
88
88
|
\x5
|
89
89
|
-a|--include-all true|false: If true, all DSU dates within the specified range will be displayed. If false, DSU dates between the first and last DSU dates that have NO entries will NOT be displayed.. The default is taken from the dsu configuration setting :include_all, see `dsu config info`.
|
90
90
|
|
@@ -74,14 +74,6 @@ module Dsu
|
|
74
74
|
yesterday_mneumonic?(mneumonic)
|
75
75
|
end
|
76
76
|
|
77
|
-
# This method returns true if mneumonic is a valid relative
|
78
|
-
# time mneumonic.
|
79
|
-
def relative_time_mneumonic?(mneumonic)
|
80
|
-
return false unless mneumonic.is_a?(String)
|
81
|
-
|
82
|
-
mneumonic.match?(RELATIVE_REGEX)
|
83
|
-
end
|
84
|
-
|
85
77
|
def today_mneumonic?(mneumonic)
|
86
78
|
TODAY.include?(mneumonic)
|
87
79
|
end
|
data/lib/dsu/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene M. Angelo, Jr.
|
@@ -216,9 +216,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: 3.0.1
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
|
-
- - "
|
219
|
+
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
221
|
+
version: '0'
|
222
222
|
requirements: []
|
223
223
|
rubygems_version: 3.3.22
|
224
224
|
signing_key:
|