azure-storage 0.11.3.preview → 0.11.4.preview
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azure/storage.rb +0 -2
- data/lib/azure/storage/blob/blob.rb +1 -1
- data/lib/azure/storage/blob/blob_service.rb +2 -2
- data/lib/azure/storage/version.rb +1 -1
- metadata +2 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4512753b91913e5655d1351527e53e8c57c8513
|
4
|
+
data.tar.gz: 4441fca205689321defd8362034cc8c12c8ca497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 389d6ade41ef5fbcda27fd80dc7204c04b89a8a968d8cac4909043c0f3850a1c6fa6f3e0ce722669696075a53f42554c03fffaf5e805bb26333e8560dcc1de13
|
7
|
+
data.tar.gz: 8c2ac0e6eb75d2a1e079f93cd18df38619febce078432b7d975e1165e85b5fc612268522645316c2bc02742ef0b2f9ae88939a3320a2014c3d0ea580823c1339
|
data/lib/azure/storage.rb
CHANGED
@@ -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
|
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? &&
|
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 =
|
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.
|
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-
|
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
|