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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7eb3bb17b8ce4eada434b51a093440ccdb5704e0
4
- data.tar.gz: 015a8bf9379626635aa58a73e15a8e9684effc4f
2
+ SHA256:
3
+ metadata.gz: 6a7fc219e4fd9f86ae482ca50d7eb34a002f191de97f932e01e44f1020846403
4
+ data.tar.gz: 530d0f1e212e46e3737334f3cf8a7f5bc8b6249176b59c774d272bf54fb8420a
5
5
  SHA512:
6
- metadata.gz: 07b76566a9048eabcd4608f29609a34259e0f7ef1c134ce8d6e6155630c74b0330d44000594ceb14bd5c9d2bb4ef7c3467424894de21f9b44c2c2bb9fd7dd15a
7
- data.tar.gz: 58d458f04016d0c72f0ea4339763bfb1d38d1f705c7e819e6528607c6ff2dd723a8af01005388e60b75b9aa3e9fe34df274d7b1ac95ddb453edffb547f38cc9a
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
@@ -1,3 +1,3 @@
1
1
  module RemoteFiles
2
- VERSION = '3.0.2'
2
+ VERSION = '3.1.0'
3
3
  end
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.2
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: 2017-03-02 00:00:00.000000000 Z
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.5.1
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