dsu 2.1.2 → 2.1.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: f56239cec153192ff0f815e124e8001ab7676c418f334ff328512c6cfc11eeb4
4
- data.tar.gz: d0072d4760663b70d32fa5695c6dbae27db960b95017a0a49598ef53a0bba588
3
+ metadata.gz: 2f96d328d7aa210c34ec21066d11d393bfab30cc18575b404c65ee1c20b8594b
4
+ data.tar.gz: da67601c29bee6c44d10d52561ccfd5196452539158dbf78137de54590654929
5
5
  SHA512:
6
- metadata.gz: 8e60d02338b12cd52c7f2a0b4f8f5f633879c6c3e7614b8fd1563d03348e778e9cb6f83a674e0be9bf53b5cac878e058d045834ce7c0f615e12129830fc2ca5b
7
- data.tar.gz: d6807da2999520c94dbe54b5439b52a386701a20e0696e700028dac4de106ab14661ef8b5f133f7265da3994cf438bd089d2d9504314932d423464a2dfaae331
6
+ metadata.gz: 13654ef47f6b35b8fcc3c27e0f7cdeca43791220001e24157dae4ab9d47964c3c3b08f8d961fbfd8458dd804e1e9e23e00306538b4f8ff5786abdde8d377465f
7
+ data.tar.gz: '0233403599e4a3b82266b4fe68a4d31cfb4c539572e321d5fb79e8539d0eaa1864d9ea348bd40b3fb2c26c2d835d4050847a88ca4c2d201e84a7ff085408e429'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
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
+
11
+ ## [2.1.3] 2023-12-17
12
+
13
+ Bug fixes
14
+
15
+ - 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.
16
+
1
17
  ## [2.1.2] 2023-12-17
2
18
 
3
19
  Changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dsu (2.1.2)
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)
@@ -66,7 +66,8 @@ module Dsu
66
66
  mnemonic_option_description: mnemonic_option_description)
67
67
  option :from, type: :string, required: true, aliases: '-f', banner: 'DATE|MNEMONIC'
68
68
  option :to, type: :string, required: true, aliases: '-t', banner: 'DATE|MNEMONIC'
69
- option :include_all, default: false, type: :boolean, aliases: '-a', desc: I18n.t('options.include_all')
69
+ option :include_all, default: nil, type: :boolean, aliases: '-a',
70
+ desc: I18n.t('options.include_all')
70
71
  def dates
71
72
  options = configuration.to_h.merge(self.options).with_indifferent_access
72
73
  times, errors = Support::CommandOptions::DsuTimes.dsu_times_for(from_option: options[:from], to_option: options[:to]) # rubocop:disable Layout/LineLength
@@ -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.2'
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.2
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-17 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