bitferry 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +1 -1
- data/lib/bitferry/cli.rb +1 -1
- data/lib/bitferry.rb +13 -15
- 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: bb10ff66d68e1981c2011621d1d216cfe759e14378844f5101310b78e5938974
|
4
|
+
data.tar.gz: 0341d89784f9acaa607f9267ddcbd494901efa80ca9954d60d84484d177c63ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac8f19ed6ef8607082b8943d0cab8ae4fa973694bfac1ddc219fe34e2421c05116d9d4ea20213440b192a7a1eae50cc11a485f489976dd182ff5ea1dc5bf1d2
|
7
|
+
data.tar.gz: cf4dabac47d7b46ed13129b749d82c92cd216f91b3fb41c6a8d2db9114738ae875f38db99d0112d26a7176db639d5cba68ebdeaee8e9e6f61f7f21dc658de568
|
data/CHANGES.md
CHANGED
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
|
-
-
|
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
data/lib/bitferry.rb
CHANGED
@@ -12,7 +12,7 @@ require 'shellwords'
|
|
12
12
|
module Bitferry
|
13
13
|
|
14
14
|
|
15
|
-
VERSION = '0.0.
|
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
|
-
|
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
|
-
|
348
|
-
stem
|
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
|
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
|
+
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-
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|