blobstore_client 1.2657.0 → 1.2669.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
2
  SHA1:
3
- metadata.gz: 2f28a2b3b6a84036b2edeefebf6af6488d68291a
4
- data.tar.gz: 9853c1b40e0df9e7d6f78797559ee7122f4fa7fa
3
+ metadata.gz: 005fbdeb2a795ae73c6ffc8d2df7708e1818d165
4
+ data.tar.gz: aece61faf499d2caad078a0e355dc929cfff76e2
5
5
  SHA512:
6
- metadata.gz: 90ad112fc5d98743b28f1aeae6f8021bd97454c166d077d1acdabac117d691bb619b5a678af45e9da3a1e60e3e4fcc4e96d3cfe91e655d623a95954b4ef0432a
7
- data.tar.gz: ee977673092f1a29c69fb0cb28ad2c94ba776ca1d2fbe37f936c6b88138667384d8ed3b34553b2c854622b8e6eeff5498d7e19e1297b79730187f10d6e81f0e7
6
+ metadata.gz: bf4072d444228710e879476e2fa3af6eff512afb37a382ab50bf5937924eec0df56bc509fe9f7a2d9fa2961acb1c4bd4d47715ac7e109caec7332917fd68d289
7
+ data.tar.gz: 8bba599e9b8b8f1ec5c4bf1c43cd86dc251db3e2d88510cf6efe354f5e9e742dfb594cef9675c52ab1d41e83a9c2437fe83e61ae2e271e1720429691dd516995
@@ -23,7 +23,7 @@ module Bosh
23
23
  password = @options[:password]
24
24
  if user && password
25
25
  @headers['Authorization'] = 'Basic ' +
26
- Base64.encode64("#{user}:#{password}").strip
26
+ Base64.strict_encode64("#{user}:#{password}").strip
27
27
  end
28
28
  end
29
29
 
@@ -52,7 +52,7 @@ module Bosh
52
52
  end
53
53
 
54
54
  def delete_object(id)
55
- response = @client.delete(url(id), @headers)
55
+ response = @client.delete(url(id), header: @headers)
56
56
 
57
57
  raise BlobstoreError, "Could not delete object, #{response.status}/#{response.content}" if response.status != 204
58
58
  end
@@ -1,5 +1,3 @@
1
- # Copyright (c) 2009-2012 VMware, Inc.
2
-
3
1
  require 'base64'
4
2
  require 'httpclient'
5
3
 
@@ -9,15 +7,18 @@ module Bosh
9
7
 
10
8
  def initialize(options)
11
9
  super(options)
10
+
12
11
  @client = HTTPClient.new
13
12
  @endpoint = @options[:endpoint]
14
13
  @bucket = @options[:bucket] || 'resources'
15
14
  @headers = {}
15
+
16
16
  user = @options[:user]
17
17
  password = @options[:password]
18
+
18
19
  if user && password
19
20
  @headers['Authorization'] = 'Basic ' +
20
- Base64.encode64("#{user}:#{password}").strip
21
+ Base64.strict_encode64("#{user}:#{password}").strip
21
22
  end
22
23
  end
23
24
 
@@ -35,7 +36,7 @@ module Bosh
35
36
  end
36
37
 
37
38
  def get_file(id, file)
38
- response = @client.get(url(id), {}, @headers) do |block|
39
+ response = @client.get(url(id), header: @headers) do |block|
39
40
  file.write(block)
40
41
  end
41
42
 
@@ -46,7 +47,7 @@ module Bosh
46
47
  end
47
48
 
48
49
  def delete_object(id)
49
- response = @client.delete(url(id), @headers)
50
+ response = @client.delete(url(id), header: @headers)
50
51
  if response.status != 204
51
52
  raise BlobstoreError,
52
53
  "Could not delete object, #{response.status}/#{response.content}"
@@ -1,7 +1,7 @@
1
1
  module Bosh
2
2
  module Blobstore
3
3
  class Client
4
- VERSION = '1.2657.0'
4
+ VERSION = '1.2669.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blobstore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2657.0
4
+ version: 1.2669.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.4
47
+ version: 2.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.4
54
+ version: 2.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,17 +86,17 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2657.0
89
+ version: 1.2669.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2657.0
96
+ version: 1.2669.0
97
97
  description: |-
98
98
  BOSH blobstore client
99
- a6c527
99
+ bf0b96
100
100
  email: support@cloudfoundry.com
101
101
  executables:
102
102
  - blobstore_client_console