bitferry 0.0.4 → 0.0.5

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: 17d40f40cac1390daae5cb6500acddf6f47bc83cc99b089530b7babf76adfb67
4
- data.tar.gz: 4a5652c86fc09e7b6a23fe1bf53b8ffd891ca544782fe73df9eeb4472cdd4495
3
+ metadata.gz: bb10ff66d68e1981c2011621d1d216cfe759e14378844f5101310b78e5938974
4
+ data.tar.gz: 0341d89784f9acaa607f9267ddcbd494901efa80ca9954d60d84484d177c63ff
5
5
  SHA512:
6
- metadata.gz: 95f3e41305bd871b1ca3ce8b8d5172c54006e8b3ca4125ac60dd36a1d4f9b816853f2f30454c7269ef084c596c520c491c0f9202169ef9e2cf34f82a06f3d33f
7
- data.tar.gz: 0cc18872c913a6583d72d487191c26bac65f35f09fa051005b6fdc39293eb8d428a151e9643486bd9bb241dbd2cf705081345638c274ce49a2f13ebddd26daed
6
+ metadata.gz: 2ac8f19ed6ef8607082b8943d0cab8ae4fa973694bfac1ddc219fe34e2421c05116d9d4ea20213440b192a7a1eae50cc11a485f489976dd182ff5ea1dc5bf1d2
7
+ data.tar.gz: cf4dabac47d7b46ed13129b749d82c92cd216f91b3fb41c6a8d2db9114738ae875f38db99d0112d26a7176db639d5cba68ebdeaee8e9e6f61f7f21dc658de568
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.0.5
2
+
3
+ - Disable cache usage in Restic check profiles
4
+ - Show stale tasks in verbose mode only
5
+ - Pick the innermost Bitferry volume in case of volumes nesting
6
+ - Fix an options profile application bug
7
+
1
8
  ## 0.0.4
2
9
 
3
10
  - Include/exclude path filters
data/README.md CHANGED
@@ -211,7 +211,7 @@ Parameters:
211
211
  Options:
212
212
  -e Encrypt files in destination using default profile (alias for -E default)
213
213
  -d Decrypt source files using default profile (alias for -D default)
214
- -x Use extended encryption profile options (applies to -e, -d)
214
+ -u Use extended encryption profile options (applies to -e, -d)
215
215
  --process, -X OPTIONS Extra task processing profile/options
216
216
  --encrypt, -E OPTIONS Encrypt files in destination using specified profile/options
217
217
  --decrypt, -D OPTIONS Decrypt source files using specified profile/options
data/lib/bitferry/cli.rb CHANGED
@@ -158,7 +158,7 @@ Clamp do
158
158
  puts " #{task.tag} #{task.show_status}"
159
159
  end
160
160
  end
161
- unless (xs = Bitferry::Task.stale).empty?
161
+ if !(xs = Bitferry::Task.stale).empty? && Bitferry.verbosity == :verbose
162
162
  puts
163
163
  puts '# Stale tasks'
164
164
  puts
data/lib/bitferry.rb CHANGED
@@ -12,7 +12,7 @@ require 'shellwords'
12
12
  module Bitferry
13
13
 
14
14
 
15
- VERSION = '0.0.4'
15
+ VERSION = '0.0.5'
16
16
 
17
17
 
18
18
  module Logging
@@ -341,12 +341,10 @@ module Bitferry
341
341
 
342
342
  def self.endpoint(root)
343
343
  path = Pathname.new(root).realdirpath
344
- # FIXME select innermost or outermost volume in case of nested volumes?
345
- intact.sort { |v1, v2| v2.root.size <=> v1.root.size }.each do |volume|
344
+ intact.sort { |v1, v2| v2.root.to_s.size <=> v1.root.to_s.size }.each do |volume|
346
345
  begin
347
- # FIXME chop trailing slashes
348
- stem = path.relative_path_from(volume.root)
349
- case stem.to_s
346
+ stem = path.relative_path_from(volume.root).to_s #.chomp('/')
347
+ case stem
350
348
  when '.' then return volume.endpoint
351
349
  when /^[^\.].*/ then return volume.endpoint(stem)
352
350
  end
@@ -477,7 +475,7 @@ module Bitferry
477
475
  when Array then option # Array is passed verbatim
478
476
  when '-' then nil # Disable adding any options with -
479
477
  when /^-/ then option.split(',') # Split comma-separated string into array --foo,bar --> [--foo, bar]
480
- else route.fetch(option) # Obtain array from the database
478
+ else route.fetch(option.nil? ? nil : option.to_sym) # Obtain options from the profile database
481
479
  end
482
480
  end
483
481
 
@@ -860,7 +858,7 @@ module Bitferry
860
858
 
861
859
  def include_filters = include.collect { |x| ['--filter', "+ #{x}"]}.flatten
862
860
 
863
-
861
+
864
862
  def exclude_filters = ([Volume::STORAGE, Volume::STORAGE_] + exclude).collect { |x| ['--filter', "- #{x}"]}.flatten
865
863
 
866
864
 
@@ -1044,7 +1042,7 @@ module Bitferry
1044
1042
 
1045
1043
  def include_filters = include.collect { |x| ['--include', x]}.flatten
1046
1044
 
1047
-
1045
+
1048
1046
  def common_options
1049
1047
  [
1050
1048
  case Bitferry.verbosity
@@ -1118,8 +1116,8 @@ module Bitferry
1118
1116
 
1119
1117
 
1120
1118
  CHECK = {
1121
- default: [],
1122
- full: ['--read-data']
1119
+ default: ['--no-cache'],
1120
+ full: ['--no-cache', '--read-data']
1123
1121
  }
1124
1122
  CHECK[nil] = nil # Skip integrity checking by default
1125
1123
 
@@ -1138,8 +1136,8 @@ module Bitferry
1138
1136
 
1139
1137
 
1140
1138
  def exclude_filters = ([Volume::STORAGE, Volume::STORAGE_] + exclude).collect { |x| ['--exclude', x]}.flatten
1141
-
1142
-
1139
+
1140
+
1143
1141
  def show_status = "#{show_operation} #{directory.show_status} #{show_direction} #{repository.show_status} #{show_filters}"
1144
1142
 
1145
1143
 
@@ -1238,8 +1236,8 @@ module Bitferry
1238
1236
 
1239
1237
 
1240
1238
  def exclude_filters = exclude.collect { |x| ['--exclude', x]}.flatten
1241
-
1242
-
1239
+
1240
+
1243
1241
  def show_status = "#{show_operation} #{repository.show_status} #{show_direction} #{directory.show_status} #{show_filters}"
1244
1242
 
1245
1243
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitferry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg A. Khlybov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake