remote_files 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/remote_files/fog_store.rb +5 -0
- data/lib/remote_files/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6a7fc219e4fd9f86ae482ca50d7eb34a002f191de97f932e01e44f1020846403
|
4
|
+
data.tar.gz: 530d0f1e212e46e3737334f3cf8a7f5bc8b6249176b59c774d272bf54fb8420a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6631796ee3ab3daeefb2bcb9807422ae616a65b32372d792ebd88441f6eb8a933a7c798e691ed2a81e4b48fdabf3e1f1766ed13c2d71df492333724b6067e4c3
|
7
|
+
data.tar.gz: 9b2e193ded1126905277c4a05475944c05c508e653dfda19e82de70236a9bc9488c20540f7955c8bf125a31fefd27dc46de4b7a4addf69d053de426e0c72d12c
|
@@ -48,6 +48,11 @@ module RemoteFiles
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def delete!(identifier)
|
51
|
+
if identifier.to_s.chomp.empty?
|
52
|
+
message = "Empty identifier is not supported"
|
53
|
+
raise RemoteFiles::Error, message
|
54
|
+
end
|
55
|
+
|
51
56
|
connection.delete_object(directory.key, identifier)
|
52
57
|
rescue Fog::Errors::NotFound, Excon::Errors::NotFound
|
53
58
|
raise NotFoundError, $!.message, $!.backtrace
|
data/lib/remote_files/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-aws
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.7.6
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: The purpose of the library is to implement a simple interface for uploading
|