rbnotes 0.4.7 → 0.4.8

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: a6625e8e9365a5c69cb9fd1f9d227e04247edda6ddbb9f5d3d442e0e7f87ac96
4
- data.tar.gz: 5b00c1ecef74b47957112de785c57e249aa35b07c8809401872f75dec392f4c1
3
+ metadata.gz: de852db7e0679690dc371c256eb8f65a5f8022772b04ed6024c4f4b55c5cebae
4
+ data.tar.gz: 27764e6f940f29be341745d50db658ef419af0e576b674533398910694f294f7
5
5
  SHA512:
6
- metadata.gz: 3d6e047ed738940dcbadd14bc8c176c486404951e4349eebe82c8bfbd92c1ad09fe996adb7c5db8bfdbf20ca364b6cebabd5dad3a2edbd9a597a2ad373a658ec
7
- data.tar.gz: 504add631c2960e0b12eabce1075ba6d90745db531ebb95b1721a46bee236d7906d489169e0161d9e6213627cd28ceea59a8db1bb0e9c3f5ab0ba8878befb3c7
6
+ metadata.gz: de49f9046ad826a346cabd37bab304e1d0ab08dfda4e6f5ca6ce7b216cc717ed39645baf092aa993e8287bd65761a605d1f2d1c158e465bc75efbac68ceeb785
7
+ data.tar.gz: 9c28c82c7b486695a5e5fe5875fda39e69bc1673e85434368fba4a2a1a71c0cff1918e60c88ecfd43bf22546bbb79d121319044b1fb068da5445dbc78b239639
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
  ## [Unreleased]
8
8
  Nothing to record here.
9
9
 
10
+ ## [0.4.8] - 2020-11-16
11
+ ### Fixed
12
+ - Fix issue #65: messy output of the `search` command.
13
+
10
14
  ## [0.4.7] - 2020-11-15
11
15
  ### Changed
12
16
  - Beautify output of the `search` command. (#63)
@@ -35,7 +39,7 @@ Nothing to record here.
35
39
  - Add individual help for each command. (#42)
36
40
 
37
41
  ### Fixed
38
- - Fix `add` fails without modification (#48)
42
+ - Fix issue #48: `add` fails without modification.
39
43
 
40
44
  ## [0.4.2] - 2020-11-05
41
45
  ### Changed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbnotes (0.4.7)
4
+ rbnotes (0.4.8)
5
5
  textrepo (~> 0.5.4)
6
6
  unicode-display_width (~> 1.7)
7
7
 
@@ -10,7 +10,7 @@ GEM
10
10
  specs:
11
11
  minitest (5.14.2)
12
12
  rake (13.0.1)
13
- textrepo (0.5.6)
13
+ textrepo (0.5.7)
14
14
  unicode-display_width (1.7.0)
15
15
 
16
16
  PLATFORMS
@@ -77,11 +77,15 @@ HELP
77
77
  def timestamp_size
78
78
  timestamp.to_s.size
79
79
  end
80
+
81
+ def line_number_digits_size
82
+ line_number.to_s.size
83
+ end
80
84
  }
81
85
 
82
86
  def print_search_result(entries)
83
87
  maxcol_stamp = entries.map(&:timestamp_size).max
84
- maxcol_num = entries.map(&:line_number).max
88
+ maxcol_num = entries.map(&:line_number_digits_size).max
85
89
 
86
90
  sort(entries).each { |e|
87
91
  stamp_display = "%- *s" % [maxcol_stamp, e.timestamp]
@@ -1,4 +1,4 @@
1
1
  module Rbnotes
2
- VERSION = "0.4.7"
3
- RELEASE = "2020-11-15"
2
+ VERSION = "0.4.8"
3
+ RELEASE = "2020-11-16"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbnotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - mnbi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-15 00:00:00.000000000 Z
11
+ date: 2020-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: textrepo