textrepo 0.5.2 → 0.5.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/textrepo/file_system_repository.rb +2 -2
- data/lib/textrepo/timestamp.rb +1 -1
- data/lib/textrepo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a737ed78449fe9562b18fa9a1e6f5a06e8adb7e460dd5fd35ac9f9a5127e6e
|
4
|
+
data.tar.gz: af06e6e6e6c004253452a8c8871de26b93e800ac090c0cf3d1c446ea498bd386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e433bbb36d848f98c0f75999fecd01b29e69e9767e1d11d32897e78b50394c2787087deed5718e2266d81390736435d25e48285b47087179d64411a8a56ad21a
|
7
|
+
data.tar.gz: 414bdb550479be8dbb7dff29569b04064cb1a40704de8fad3d36c90ffd9ffcf73b69b4a651987245a481878e27a62e8251399ede6f81b5fb4c16c173a76da4e3
|
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.5.3] - 2020-11-03
|
11
|
+
### Changed
|
12
|
+
- Fix issue #38: fix typo in code for FileSystemRepository.
|
13
|
+
|
10
14
|
## [0.5.2] - 2020-11-03
|
11
15
|
### Changed
|
12
16
|
- Fix issue #34:
|
@@ -322,7 +322,7 @@ module Textrepo
|
|
322
322
|
file = abspath(entries[0])
|
323
323
|
o, s = Open3.capture2(searcher, *find_searcher_options(searcher),
|
324
324
|
pattern, file)
|
325
|
-
if s.success? && (! o.empty)
|
325
|
+
if s.success? && (! o.empty?)
|
326
326
|
output += o.lines.map { |line|
|
327
327
|
# add filename at the beginning of the search result line
|
328
328
|
[file, line.chomp].join(":")
|
@@ -338,7 +338,7 @@ module Textrepo
|
|
338
338
|
files = find_files(entries)
|
339
339
|
o, s = Open3.capture2(searcher, *find_searcher_options(searcher),
|
340
340
|
pattern, *files)
|
341
|
-
if s.success? && (! o.empty)
|
341
|
+
if s.success? && (! o.empty?)
|
342
342
|
output += o.lines.map(&:chomp)
|
343
343
|
end
|
344
344
|
end
|
data/lib/textrepo/timestamp.rb
CHANGED
@@ -97,7 +97,7 @@ module Textrepo
|
|
97
97
|
begin
|
98
98
|
ye, mo, da, ho, mi, se, sfx = split_stamp(stamp_str).map(&:to_i)
|
99
99
|
Timestamp.new(Time.new(ye, mo, da, ho, mi, se), sfx)
|
100
|
-
rescue InvalidTimestampStringError, ArgumentError =>
|
100
|
+
rescue InvalidTimestampStringError, ArgumentError => _
|
101
101
|
emsg = if stamp_str.nil?
|
102
102
|
"(nil)"
|
103
103
|
elsif stamp_str.empty?
|
data/lib/textrepo/version.rb
CHANGED