radosgw-s3 1.0 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3/bucket.rb +17 -0
- data/lib/s3/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6120c79f2e26b379c82016dd141f27b3db54c86a
|
4
|
+
data.tar.gz: 25bc08c45966f1d2371e5bb8bb77fa88b2fe0fda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164c2b154e8c2270be1185627f95a9e73be4f1440ab7dbb1791c844f31d0b4067e8901c3b58c9ff48b585c547f395b52884560a599dc5cc46b34ef1e805a32fd
|
7
|
+
data.tar.gz: 3e1e9d43c2ec529c96415b5c255c3c392e592b878a8c6265240fe63cac03562a4ba8a0f5b09c337c604f745b4ef0583f83936c7c0d91f9d47216a421e75194f7
|
data/lib/s3/bucket.rb
CHANGED
@@ -65,6 +65,7 @@ module S3
|
|
65
65
|
# Destroys given bucket. Raises an S3::Error::BucketNotEmpty
|
66
66
|
# exception if the bucket is not empty. You can destroy non-empty
|
67
67
|
# bucket passing true (to force destroy)
|
68
|
+
=begin
|
68
69
|
def destroy(force = false)
|
69
70
|
delete_bucket
|
70
71
|
true
|
@@ -76,6 +77,21 @@ module S3
|
|
76
77
|
raise
|
77
78
|
end
|
78
79
|
end
|
80
|
+
=end
|
81
|
+
def destroy(force = false)
|
82
|
+
if objects.any?
|
83
|
+
if force
|
84
|
+
objects.destroy_all
|
85
|
+
delete_bucket
|
86
|
+
true
|
87
|
+
else
|
88
|
+
raise
|
89
|
+
end
|
90
|
+
else
|
91
|
+
delete_bucket
|
92
|
+
true
|
93
|
+
end
|
94
|
+
end
|
79
95
|
|
80
96
|
# Saves the newly built bucket.
|
81
97
|
#
|
@@ -133,6 +149,7 @@ module S3
|
|
133
149
|
"#<#{self.class}:#{name}>"
|
134
150
|
end
|
135
151
|
|
152
|
+
|
136
153
|
def save_acl(options = {})
|
137
154
|
headers = {}
|
138
155
|
headers[:content_length] = 0
|
data/lib/s3/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radosgw-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Alrin, Kishorekumar Neelamegam, Rajthilak, Kuba Kuźma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: proxies
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: 1.3.6
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project: s3
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.5.1
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Library for accessing ceph objects and buckets
|