rbnotes 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +2 -2
- data/lib/rbnotes/commands/search.rb +5 -1
- data/lib/rbnotes/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de852db7e0679690dc371c256eb8f65a5f8022772b04ed6024c4f4b55c5cebae
|
4
|
+
data.tar.gz: 27764e6f940f29be341745d50db658ef419af0e576b674533398910694f294f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de49f9046ad826a346cabd37bab304e1d0ab08dfda4e6f5ca6ce7b216cc717ed39645baf092aa993e8287bd65761a605d1f2d1c158e465bc75efbac68ceeb785
|
7
|
+
data.tar.gz: 9c28c82c7b486695a5e5fe5875fda39e69bc1673e85434368fba4a2a1a71c0cff1918e60c88ecfd43bf22546bbb79d121319044b1fb068da5445dbc78b239639
|
data/CHANGELOG.md
CHANGED
@@ -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
|
42
|
+
- Fix issue #48: `add` fails without modification.
|
39
43
|
|
40
44
|
## [0.4.2] - 2020-11-05
|
41
45
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rbnotes (0.4.
|
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.
|
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(&:
|
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]
|
data/lib/rbnotes/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: textrepo
|