dsu 2.2.0 → 2.2.1

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: 2800dfb924a05024512259b5131cfa198a81d6bbe5cd40447957573eb00bf0d7
4
- data.tar.gz: c4e65b543e6f2ed28844e00572a3cf402ee5c2e88dba5e743e915e2b5a514cc8
3
+ metadata.gz: 331d6a98a37267f72d525f38e9010da69de44144ce12fb8610a21db86e738dd0
4
+ data.tar.gz: e380e7a42eebb5535db7419170cab3f16354187a1a30556f3cc0ec4eccdbdcd0
5
5
  SHA512:
6
- metadata.gz: 9b73f2a35f5791e4576c96cdb207046e784459083ea4815fb97083ff39a458671b4627a853f6423a3c4c87a38bc25df7c8c378622d4c636dfdbca2278ef13691
7
- data.tar.gz: bd037348418829c9e0c4f1e65754d99a6670ff7b130f41806148a4493d784ca64021673f943858ad812ed527718281ca623ec36e3038e2f508625707a61ea189
6
+ metadata.gz: 378484c87521d25af3885615c60cb1f8c520c1e80d8dbbaa4a6838a80e4001382516bf83731e0ca186530482154a92041e316cb453d530dc209f91155e5254ea
7
+ data.tar.gz: c0a98718ea256ef9e37e0b6b1056eb29dfd33d3bb0ede8e75e418c12bf2393b94d6fd7bdc482a160a03433873c8fbd078a5105c1e866d005e720d6f5ef9f189f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.2.1] 2023-12-23
2
+
3
+ Changes
4
+
5
+ - Add specs for `dsu browse` command.
6
+ - Code refactors, nothing discernable to the end user.
7
+
1
8
  ## [2.2.0] 2023-12-23
2
9
 
3
10
  Stable release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dsu (2.2.0)
4
+ dsu (2.2.1)
5
5
  activemodel (>= 7.0.8, < 8.0)
6
6
  activesupport (>= 7.0.8, < 8.0)
7
7
  colorize (>= 0.8.1, < 1.0)
@@ -23,6 +23,7 @@ module Dsu
23
23
  map %w[m] => :month
24
24
  map %w[y] => :year
25
25
 
26
+ class_option :pager, default: true, type: :boolean, hide: true, aliases: '-p'
26
27
  class_option :include_all, default: nil, type: :boolean, aliases: '-a',
27
28
  desc: I18n.t('options.include_all')
28
29
 
@@ -58,7 +58,7 @@ module Dsu
58
58
  end
59
59
 
60
60
  def output_with_pager(output:, options:)
61
- if options[:pager] == :no_pager
61
+ if options[:pager] == false
62
62
  puts output
63
63
  return
64
64
  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|rc)\.\d+)?\z/
5
- VERSION = '2.2.0'
5
+ VERSION = '2.2.1'
6
6
  end
@@ -23,7 +23,11 @@ module Dsu
23
23
 
24
24
  # TODO: I18n.
25
25
  def render
26
- puts apply_theme(message, theme_color: color_theme.info)
26
+ puts render_as_string
27
+ end
28
+
29
+ def render_as_string
30
+ apply_theme(message, theme_color: color_theme.info)
27
31
  end
28
32
 
29
33
  private
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.2.0
4
+ version: 2.2.1
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-23 00:00:00.000000000 Z
11
+ date: 2023-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport