radosgw-s3 1.0 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/s3/bucket.rb +17 -0
  3. data/lib/s3/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 057436a3b4ccffaff85a5442bf959f5b4068eb2f
4
- data.tar.gz: 5434e19747724fdfca36847ffc97ecf3846f2308
3
+ metadata.gz: 6120c79f2e26b379c82016dd141f27b3db54c86a
4
+ data.tar.gz: 25bc08c45966f1d2371e5bb8bb77fa88b2fe0fda
5
5
  SHA512:
6
- metadata.gz: d1829e6d11ba9e24553855b46506806ff94203d55b5d80c860aef845a2400f5a38da9dce34a8a1f4fb3f9dea7f2a068c0a07cdf27c495f5e579abfe50053b3eb
7
- data.tar.gz: e22e949dc06752862965ec03aca611384a871e4afab49495d2a0a42f1d3baacd566fd329f782320114f41b47cde63fd461696e2038bc194b7a58fb8b573e9956
6
+ metadata.gz: 164c2b154e8c2270be1185627f95a9e73be4f1440ab7dbb1791c844f31d0b4067e8901c3b58c9ff48b585c547f395b52884560a599dc5cc46b34ef1e805a32fd
7
+ data.tar.gz: 3e1e9d43c2ec529c96415b5c255c3c392e592b878a8c6265240fe63cac03562a4ba8a0f5b09c337c604f745b4ef0583f83936c7c0d91f9d47216a421e75194f7
@@ -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
@@ -1,3 +1,3 @@
1
1
  module S3
2
- VERSION = "1.0"
2
+ VERSION = "1.5"
3
3
  end
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.0'
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-05-24 00:00:00.000000000 Z
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.4.8
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