dsu 2.1.3 → 2.1.4

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: f53c003462835311af5854bbaf8a96f1772399408231c07f9d9b805703f7c800
4
- data.tar.gz: f44c52da7a5474c04f92ea9505d958e0365ae8e6fc3ccc07ee7b734c2cb79140
3
+ metadata.gz: 2f96d328d7aa210c34ec21066d11d393bfab30cc18575b404c65ee1c20b8594b
4
+ data.tar.gz: da67601c29bee6c44d10d52561ccfd5196452539158dbf78137de54590654929
5
5
  SHA512:
6
- metadata.gz: ace10efb78d241419135ba9ec7d7ab76e5b31697d82cfca4dc021c81bb6935a5b152e307ad18d53e30b443fc19fd748a0241f9b61f17d739307f1f862862abf3
7
- data.tar.gz: ded07767190a04dc92d2a44f5907a6aa6f5b722151dfd87b540f3aa0397d22d58004820ffd3b544ccc6c7e2764d4c8f90e7465f65131aa022fa3c28448cdf7c3
6
+ metadata.gz: 13654ef47f6b35b8fcc3c27e0f7cdeca43791220001e24157dae4ab9d47964c3c3b08f8d961fbfd8458dd804e1e9e23e00306538b4f8ff5786abdde8d377465f
7
+ data.tar.gz: '0233403599e4a3b82266b4fe68a4d31cfb4c539572e321d5fb79e8539d0eaa1864d9ea348bd40b3fb2c26c2d835d4050847a88ca4c2d201e84a7ff085408e429'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [2.1.4] 2023-12-19
2
+
3
+ Changes
4
+
5
+ - Minor code refactors.
6
+
7
+ Bug fixes
8
+
9
+ - 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.
10
+
1
11
  ## [2.1.3] 2023-12-17
2
12
 
3
13
  Bug fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dsu (2.1.3)
4
+ dsu (2.1.4)
5
5
  activemodel (>= 7.0.8, < 8.0)
6
6
  activesupport (>= 7.0.8, < 8.0)
7
7
  colorize (>= 0.8.1, < 1.0)
@@ -85,7 +85,7 @@ module Dsu
85
85
  end
86
86
 
87
87
  def yesterday_mnemonic?(mnemonic)
88
- YESERDAY.include?(mnemonic)
88
+ YESTERDAY.include?(mnemonic)
89
89
  end
90
90
 
91
91
  def validate_argument!(command_option:, command_option_name:)
@@ -7,9 +7,9 @@ module Dsu
7
7
  # TODO: I18n.
8
8
  TODAY = %w[n today].freeze
9
9
  TOMORROW = %w[t tomorrow].freeze
10
- YESERDAY = %w[y yesterday].freeze
10
+ YESTERDAY = %w[y yesterday].freeze
11
11
 
12
- RELATIVE_REGEX = /[+-]\d+/
12
+ RELATIVE_REGEX = /\A[+-]\d+\z/
13
13
  end
14
14
  end
15
15
  end
data/lib/dsu/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Dsu
4
4
  VERSION_REGEX = /\A\d+\.\d+\.\d+(\.alpha\.\d+)?\z/
5
- VERSION = '2.1.3'
5
+ VERSION = '2.1.4'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport