waz-blobs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,10 @@ module WAZ
17
17
  end
18
18
  end
19
19
 
20
+ def list(options = {})
21
+ service_instance.list_containers(options).map { |c| Container.new(c[:name]) }
22
+ end
23
+
20
24
  private
21
25
  def service_instance
22
26
  options = Base.default_connection
@@ -104,7 +104,7 @@ module WAZ
104
104
 
105
105
  def generate_request(verb, url, headers = {}, payload = nil)
106
106
  http_headers = {}
107
- headers.each{ |k, v| http_headers[k.to_s.gsub(/_/, '-')] = v}
107
+ headers.each{ |k, v| http_headers[k.to_s.gsub(/_/, '-')] = v} unless headers.nil?
108
108
  request = RestClient::Request.new(:method => verb.downcase.to_sym, :url => url, :headers => http_headers, :payload => payload)
109
109
  request.headers["x-ms-Date"] = Time.new.httpdate
110
110
  request.headers["Content-Length"] = (request.payload or "").length
@@ -3,7 +3,7 @@ module WAZ
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = '0'
5
5
  MINOR = '1'
6
- TINY = '0'
6
+ TINY = '1'
7
7
  end
8
8
 
9
9
  Version = [VERSION::MAJOR, VERSION::MINOR, VERSION::TINY].compact * '.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waz-blobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnny G. Halife
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-05 00:00:00 -03:00
12
+ date: 2009-10-06 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency