bfs-scp 0.7.4 → 0.7.5
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/scp.rb +2 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce2b40891ff68887074207496ca807a6565c68d8d10ab4c442d0a8584a4137b8
|
4
|
+
data.tar.gz: c7c2fa83b17402d00f8a2b80107078266f9e92ab8225f2e0047cdfd1412509a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f69d3f9ed84f8dcd6be21633abe18ec98eed989ad71c5dfcf3134af9cd3e057ea0768a26bd402d55a3fec82616f26ad257f10cdb45d4d4c8773fc0c53a885cf
|
7
|
+
data.tar.gz: 5b53c05aec603396e18ac17276664d48540c675996a0238016e10d66ffdcee52e6e47069b67d464b40193a0075961fc69fab76861b766dc0c05b0e98ca7ccc21
|
data/lib/bfs/bucket/scp.rb
CHANGED
@@ -72,17 +72,10 @@ module BFS
|
|
72
72
|
full = full_path(path)
|
73
73
|
|
74
74
|
opts[:preserve] = true if perm && !opts.key?(:preserve)
|
75
|
-
|
75
|
+
BFS::TempWriter.new(path, encoding: encoding, perm: perm) do |temp_path|
|
76
76
|
mkdir_p File.dirname(full)
|
77
77
|
@client.upload!(temp_path, full, **opts)
|
78
|
-
end
|
79
|
-
return temp unless block
|
80
|
-
|
81
|
-
begin
|
82
|
-
yield temp
|
83
|
-
ensure
|
84
|
-
temp.close
|
85
|
-
end
|
78
|
+
end.perform(&block)
|
86
79
|
end
|
87
80
|
|
88
81
|
# Opens an existing file for reading
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bfs-scp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bfs
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.7.
|
19
|
+
version: 0.7.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.7.
|
26
|
+
version: 0.7.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-scp
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|