radosgw-s3 0.11 → 1.0

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/ceph/user.rb +6 -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: 664f2751fdcab0d53899f9aabc9c214543e9647f
4
- data.tar.gz: a25ec9c2fd36f33037154eecec29fe14f1b1407e
3
+ metadata.gz: 057436a3b4ccffaff85a5442bf959f5b4068eb2f
4
+ data.tar.gz: 5434e19747724fdfca36847ffc97ecf3846f2308
5
5
  SHA512:
6
- metadata.gz: 110baeaa04422a192a0f24ebb6563adb1c4f67436f2fe18602400e442461e1368861742bdb5579c990005e61ed0e3591d63f7f8976c2d491589ef6671edf1abf
7
- data.tar.gz: 66e77d2ed11487d4a4c96922684aec201741406bb6a8b12a759842981fd0a8bde973762422e0c8c0e9f8aa73095d0a9e3d07705baac4839e0cee5843e111dfad
6
+ metadata.gz: d1829e6d11ba9e24553855b46506806ff94203d55b5d80c860aef845a2400f5a38da9dce34a8a1f4fb3f9dea7f2a068c0a07cdf27c495f5e579abfe50053b3eb
7
+ data.tar.gz: e22e949dc06752862965ec03aca611384a871e4afab49495d2a0a42f1d3baacd566fd329f782320114f41b47cde63fd461696e2038bc194b7a58fb8b573e9956
data/lib/ceph/user.rb CHANGED
@@ -32,6 +32,12 @@ module CEPH
32
32
  def create(uid, display_name)
33
33
  ceph_user_json = ""
34
34
  ceph_user_json = execution("sudo radosgw-admin user create --uid='#{uid}' --display-name='#{display_name}'")
35
+ if ceph_user_json.include? ": (17) File exists"
36
+ puts "String includes '(17) File exists'"
37
+ ceph_user_json = ceph_user_json.gsub!(/.*?(?=exists)/im, "")
38
+ ceph_user_json = ceph_user_json.sub('exists', "")
39
+ end
40
+
35
41
  begin
36
42
  ceph_user_hash = JSON.parse(ceph_user_json)
37
43
  secret_hash = {"access_key" => "#{ceph_user_hash['keys'][0]['access_key']}", "secret_key" => "#{ceph_user_hash['keys'][0]['secret_key']}" }
data/lib/s3/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module S3
2
- VERSION = "0.11"
2
+ VERSION = "1.0"
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: '0.11'
4
+ version: '1.0'
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-03-10 00:00:00.000000000 Z
11
+ date: 2016-05-24 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.5.1
168
+ rubygems_version: 2.4.8
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Library for accessing ceph objects and buckets