textrepo 0.5.2 → 0.5.3

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: c33d87733a93d357237cf217161c5d56c37e9b48d4f9a52b9a59ec8a945f6377
4
- data.tar.gz: 2c8969d2ee93dfb1f6b84e49be43eb81630e63341ad77da2fbed3c59be465b78
3
+ metadata.gz: b8a737ed78449fe9562b18fa9a1e6f5a06e8adb7e460dd5fd35ac9f9a5127e6e
4
+ data.tar.gz: af06e6e6e6c004253452a8c8871de26b93e800ac090c0cf3d1c446ea498bd386
5
5
  SHA512:
6
- metadata.gz: 711e6b19e280887f6558ecd62e39abf6146efbafe817ad9db329dd33c9fdd0e4b5d5feef4c8a246872c748142daee96518030ab378c2756dd1eb66ca40dbbade
7
- data.tar.gz: 3b129941b8df7f41540a5088357bd562a11c3567635e8e26002a2a4222850b89a58d1147d0b3305b17835f0e720b86bf3a8b4ea0dccbfb01d098d00962bbe42d
6
+ metadata.gz: e433bbb36d848f98c0f75999fecd01b29e69e9767e1d11d32897e78b50394c2787087deed5718e2266d81390736435d25e48285b47087179d64411a8a56ad21a
7
+ data.tar.gz: 414bdb550479be8dbb7dff29569b04064cb1a40704de8fad3d36c90ffd9ffcf73b69b4a651987245a481878e27a62e8251399ede6f81b5fb4c16c173a76da4e3
@@ -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
@@ -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 => e
100
+ rescue InvalidTimestampStringError, ArgumentError => _
101
101
  emsg = if stamp_str.nil?
102
102
  "(nil)"
103
103
  elsif stamp_str.empty?
@@ -1,3 +1,3 @@
1
1
  module Textrepo
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textrepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mnbi