waz-storage 0.5.8 → 0.5.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,6 +114,7 @@ module WAZ
114
114
  # the required <em>content_type</em>. <strong>The <em>options</em> parameters if provided
115
115
  # will set the default metadata properties for the blob</strong>.
116
116
  def store(blob_name, payload, content_type, options = {})
117
+ blob_name.gsub!(%r{^/}, '')
117
118
  self.class.service_instance.put_blob("#{self.name}/#{blob_name}", payload, content_type, options)
118
119
  return BlobObject.new(:name => blob_name,
119
120
  :url => self.class.service_instance.generate_request_uri("#{self.name}/#{blob_name}"),
@@ -124,6 +125,7 @@ module WAZ
124
125
  # it will return nil instead of throwing an exception.
125
126
  def [](blob_name)
126
127
  begin
128
+ blob_name.gsub!(%r{^/}, '')
127
129
  properties = self.class.service_instance.get_blob_properties("#{self.name}/#{blob_name}")
128
130
  return BlobObject.new(:name => blob_name,
129
131
  :url => self.class.service_instance.generate_request_uri("#{self.name}/#{blob_name}"),
@@ -3,7 +3,7 @@ module WAZ
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = '0'
5
5
  MINOR = '5'
6
- TINY = '8'
6
+ TINY = '81'
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-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnny G. Halife