azure-core 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -1
- data/azure-core.gemspec +5 -1
- data/lib/azure/core/auth/shared_key.rb +3 -3
- data/lib/azure/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 289438b42b2dfd42062c109ba4cad7052e006ba8
|
4
|
+
data.tar.gz: 3c9c82ad37cf3f2a01bb54706873b7ccc93bd3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24b764d06d7ac98aaf95b9b22e80e7789b3b3b381b31260faa37aa1610cbc1c88d95f4fcab71664a212ece2cd0fa40136caca4c844ecab2d90ad32f1167fa0ac
|
7
|
+
data.tar.gz: 981cfd985560bb5cf1b5a97cfe8a831296f62bd454aaf9830b9813d90315246c1fd1ca5f2d953577c721971b121974092ab7922191bdda543e9b178ed7d4f583
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 2017.04.17 - azure-core gem @version 0.1.8
|
2
|
+
* Fixed rubocop scanned out issue. [#31](https://github.com/Azure/azure-ruby-asm-core/pull/31)
|
3
|
+
* Code changes to install nokogiri based on the ruby version. [#35](https://github.com/Azure/azure-ruby-asm-core/pull/35)
|
4
|
+
|
1
5
|
# 2017.01.25 - azure-core gem @version 0.1.7
|
2
6
|
* Making a new release to fix the checksum issue with rubygems. No changes in this release.
|
3
7
|
|
@@ -22,4 +26,4 @@
|
|
22
26
|
* Can not upload file with spaces [#360](https://github.com/Azure/azure-sdk-for-ruby/issues/360)
|
23
27
|
|
24
28
|
# 2016.4.14 - azure-core gem @version 0.1.0
|
25
|
-
* Initial release, splitting code from 'azure' gem to its own separate gem for core.
|
29
|
+
* Initial release, splitting code from 'azure' gem to its own separate gem for core.
|
data/azure-core.gemspec
CHANGED
@@ -31,7 +31,11 @@ Gem::Specification.new do |s|
|
|
31
31
|
|
32
32
|
s.add_runtime_dependency('faraday', '~> 0.9')
|
33
33
|
s.add_runtime_dependency('faraday_middleware', '~> 0.10')
|
34
|
-
|
34
|
+
if RUBY_VERSION < "2.1.0"
|
35
|
+
s.add_runtime_dependency('nokogiri', '~> 1.6.0')
|
36
|
+
else
|
37
|
+
s.add_runtime_dependency('nokogiri', '~> 1.7')
|
38
|
+
end
|
35
39
|
|
36
40
|
s.add_development_dependency('dotenv', '~> 2.0')
|
37
41
|
s.add_development_dependency('minitest', '~> 5')
|
@@ -94,8 +94,8 @@ module Azure
|
|
94
94
|
# @return [String] a string with the canonicalized headers.
|
95
95
|
def canonicalized_headers(headers)
|
96
96
|
headers = headers.map { |k,v| [k.to_s.downcase, v] }
|
97
|
-
headers.select! { |k,
|
98
|
-
headers.sort_by! { |(k,
|
97
|
+
headers.select! { |k,_| k =~ /^x-ms-/ }
|
98
|
+
headers.sort_by! { |(k,_)| k }
|
99
99
|
headers.map! { |k,v| '%s:%s' % [k, v] }
|
100
100
|
headers.map! { |h| h.gsub(/\s+/, ' ') }.join("\n")
|
101
101
|
end
|
@@ -108,7 +108,7 @@ module Azure
|
|
108
108
|
def canonicalized_resource(uri)
|
109
109
|
resource = '/' + account_name + (uri.path.empty? ? '/' : uri.path)
|
110
110
|
params = CGI.parse(uri.query.to_s).map { |k,v| [k.downcase, v] }
|
111
|
-
params.sort_by! { |k,
|
111
|
+
params.sort_by! { |k,_| k }
|
112
112
|
params.map! { |k,v| '%s:%s' % [k, v.map(&:strip).sort.join(',')] }
|
113
113
|
[resource, *params].join("\n")
|
114
114
|
end
|
data/lib/azure/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
48
|
+
version: '1.7'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1.
|
55
|
+
version: '1.7'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: dotenv
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|