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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a4ad62d0d96a5c64c372c91818602579fa69fe3
4
- data.tar.gz: f183dd369b28d5f6d3f80bc0c932e832f19a4dca
3
+ metadata.gz: 289438b42b2dfd42062c109ba4cad7052e006ba8
4
+ data.tar.gz: 3c9c82ad37cf3f2a01bb54706873b7ccc93bd3aa
5
5
  SHA512:
6
- metadata.gz: c17e6cffccdf27b1eeb13163bf93988b6f22558dc63dcbb45a5a34ac4267084afdea50080d72a34ee2cbef5226ae33971a74159170e41c39aad4c4a6b5d6be6d
7
- data.tar.gz: a16ba7d5f89f11e17fa948d4f0c1b0c7516937ff4e208109fa79804a1ff7ba2981f637c71af3a6b5fbcb6168feefb38d254bd9e88a5fbd8f23db9824f312a520
6
+ metadata.gz: 24b764d06d7ac98aaf95b9b22e80e7789b3b3b381b31260faa37aa1610cbc1c88d95f4fcab71664a212ece2cd0fa40136caca4c844ecab2d90ad32f1167fa0ac
7
+ data.tar.gz: 981cfd985560bb5cf1b5a97cfe8a831296f62bd454aaf9830b9813d90315246c1fd1ca5f2d953577c721971b121974092ab7922191bdda543e9b178ed7d4f583
@@ -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.
@@ -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
- s.add_runtime_dependency('nokogiri', '~> 1.6')
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,v| k =~ /^x-ms-/ }
98
- headers.sort_by! { |(k,v)| 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,v| 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
@@ -18,7 +18,7 @@ module Azure
18
18
  class Version
19
19
  MAJOR = 0 unless defined? MAJOR
20
20
  MINOR = 1 unless defined? MINOR
21
- UPDATE = 7 unless defined? UPDATE
21
+ UPDATE = 8 unless defined? UPDATE
22
22
  PRE = nil unless defined? PRE
23
23
 
24
24
  class << self
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.7
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-01-25 00:00:00.000000000 Z
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.6'
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.6'
55
+ version: '1.7'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: dotenv
58
58
  requirement: !ruby/object:Gem::Requirement