bfs 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bfs/bucket/abstract.rb +12 -1
- data/lib/bfs/bucket/fs.rb +0 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60793d9538520eb8e44c4ca690b97a509592302bf2b0bb67d38157fe2195d8a9
|
4
|
+
data.tar.gz: 7b4e832d8903e62c89dba05e9721e12fe0d25b3c8d17c4f8d88961a87e76bf53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aecbb03ec48f8ab329dcfdf3e2969bd66e4c7a3463a77a58a3779e186d6470577656f1ed883f815b7658d22271e491830df3e32f60a92012ee9e63fbd8a9bb7c
|
7
|
+
data.tar.gz: '08ee24fcf97cfb1772975eac0f7c9ca62ed7a80461071f5f8f959344489c703623293e8a25fe6d25922eec9d1bd0b7f1c68b1635893ea22a5ce3ed0ba95b9ac1'
|
data/lib/bfs/bucket/abstract.rb
CHANGED
@@ -57,7 +57,18 @@ module BFS
|
|
57
57
|
protected
|
58
58
|
|
59
59
|
def norm_path(path)
|
60
|
-
BFS.norm_path(path)
|
60
|
+
BFS.norm_path(path) if path
|
61
|
+
end
|
62
|
+
|
63
|
+
def full_path(path)
|
64
|
+
path = norm_path(path)
|
65
|
+
path = File.join(@prefix, path) if @prefix
|
66
|
+
path
|
67
|
+
end
|
68
|
+
|
69
|
+
def trim_prefix(path)
|
70
|
+
path.slice!(0, @prefix.size) if @prefix && path.slice(0, @prefix.size) == @prefix
|
71
|
+
path
|
61
72
|
end
|
62
73
|
end
|
63
74
|
end
|
data/lib/bfs/bucket/fs.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Minimalist abstraction for bucket storage
|
14
14
|
email: dimitrij@blacksquaremedia.com
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.7.
|
51
|
+
rubygems_version: 2.7.6
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Multi-platform cloud bucket adapter
|