azure-storage 0.11.3.preview → 0.11.4.preview

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2ed85c534cdfc271dfcaa7b69dd6b888e10ef89
4
- data.tar.gz: f73cd29bd83a2e082193f06dc0523c8b78bf4d46
3
+ metadata.gz: e4512753b91913e5655d1351527e53e8c57c8513
4
+ data.tar.gz: 4441fca205689321defd8362034cc8c12c8ca497
5
5
  SHA512:
6
- metadata.gz: 77a3ca483ca962f589a050ac5636c7cfaca3d9d46154c7e290da1b9eb24d4eafeb1653c917d38045f32da6c96277bd1c9c5d36e71e7a95bdc04dfe203611cb5a
7
- data.tar.gz: 84e4c71f6b81de7a00118325733a3270b97149fa3d198d0b40d6da895b6a8a1fd5e330c62b512f594c18722f183edb6253aeade414f0e58e3d8bc8ea5af73a5c
6
+ metadata.gz: 389d6ade41ef5fbcda27fd80dc7204c04b89a8a968d8cac4909043c0f3850a1c6fa6f3e0ce722669696075a53f42554c03fffaf5e805bb26333e8560dcc1de13
7
+ data.tar.gz: 8c2ac0e6eb75d2a1e079f93cd18df38619febce078432b7d975e1165e85b5fc612268522645316c2bc02742ef0b2f9ae88939a3320a2014c3d0ea580823c1339
@@ -27,8 +27,6 @@ require 'nokogiri'
27
27
  require 'base64'
28
28
  require 'openssl'
29
29
  require 'uri'
30
- require 'rexml/document'
31
- require 'addressable/uri'
32
30
  require 'faraday'
33
31
  require 'faraday_middleware'
34
32
 
@@ -125,7 +125,7 @@ module Azure::Storage
125
125
  #
126
126
  # See http://msdn.microsoft.com/en-us/library/azure/dd179394.aspx
127
127
  #
128
- # Returns a Blob
128
+ # Returns the blob properties
129
129
  def get_blob_properties(container, blob, options={})
130
130
  query = { }
131
131
  StorageService.with_query query, 'snapshot', options[:snapshot]
@@ -47,12 +47,12 @@ module Azure::Storage
47
47
 
48
48
  def call(method, uri, body=nil, headers={}, options={})
49
49
  # Force the request.body to the content encoding of specified in the header
50
- if headers && !body.nil? && !(body.encoding.to_s <=> 'ASCII_8BIT')
50
+ if headers && !body.nil? && (body.is_a? String) && ((body.encoding.to_s <=> 'ASCII_8BIT') != 0)
51
51
  if headers['x-ms-blob-content-type'].nil?
52
52
  Service::StorageService.with_header headers, 'x-ms-blob-content-type', "text/plain; charset=#{body.encoding.to_s}"
53
53
  else
54
54
  charset = parse_charset_from_content_type(headers['x-ms-blob-content-type'])
55
- body.force_encoding(charset)
55
+ body.force_encoding(charset) if charset
56
56
  end
57
57
  end
58
58
 
@@ -28,7 +28,7 @@ module Azure
28
28
  # Fields represent the parts defined in http://semver.org/
29
29
  MAJOR = 0 unless defined? MAJOR
30
30
  MINOR = 11 unless defined? MINOR
31
- UPDATE = 3 unless defined? UPDATE
31
+ UPDATE = 4 unless defined? UPDATE
32
32
  PRE = 'preview' unless defined? PRE
33
33
 
34
34
  class << self
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3.preview
4
+ version: 0.11.4.preview
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: addressable
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.3'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.3'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: azure-core
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -66,34 +52,6 @@ dependencies:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0.10'
69
- - !ruby/object:Gem::Dependency
70
- name: json
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.8'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.8'
83
- - !ruby/object:Gem::Dependency
84
- name: mime-types
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '2.0'
97
55
  - !ruby/object:Gem::Dependency
98
56
  name: nokogiri
99
57
  requirement: !ruby/object:Gem::Requirement
@@ -108,34 +66,6 @@ dependencies:
108
66
  - - "~>"
109
67
  - !ruby/object:Gem::Version
110
68
  version: '1.6'
111
- - !ruby/object:Gem::Dependency
112
- name: systemu
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '2.6'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '2.6'
125
- - !ruby/object:Gem::Dependency
126
- name: thor
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.19'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '0.19'
139
69
  - !ruby/object:Gem::Dependency
140
70
  name: dotenv
141
71
  requirement: !ruby/object:Gem::Requirement