stuartpreston-azure-sdk-for-ruby 0.7.0 → 0.7.1

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: 14198849d3dbbc32ab26258e2428a54c6b207353
4
- data.tar.gz: 92e08ba66bb888c87f5a9eae0aca57b34991e892
3
+ metadata.gz: 168818b6312e69bfee5ae31a19daaf3aedb30d43
4
+ data.tar.gz: 159d71764c6b99cc371284a72a1bd931adde5313
5
5
  SHA512:
6
- metadata.gz: 06b01331b5ad7ff07698a7d92c34b95e1c52af3b2661e7a0aa00822df80d9c076cabd6ceed5cbea86a1f2655459ca463e3cb1249c58552a64f525109b5dc095e
7
- data.tar.gz: 1ff568c9e11d744a766dc673a176cfd166c8fa49cbb4ea35d7f7c427a7cd8d5318b8c3403d39749fae01f7a63f391611c42b20b89b339f1159ec75d0213f3bd5
6
+ metadata.gz: accb3bc4b00956ad29d644854e99dd87f579d75d22615df7af4234834d0fdd52d35381cf919895f2075269f7760b207c6a12bfa5102cc45b8946d4ec69e8ee9d
7
+ data.tar.gz: 914fc6325120767d616ed99fbcb95919436274c1e6f7605bbd48b48ac2bccaab4a1dee44a13c8cce86c2c56021872eff8d61484a3fd2c57eabfda5dc6f3c74e9
@@ -1,3 +1,7 @@
1
+
2
+ 2014.04.13 - version 0.7.1 (stuartpreston-azure-sdk-for-ruby)
3
+ * Fix inability to determine location of virtual network
4
+
1
5
  2014.04.03 - version 0.7.0 (stuartpreston-azure-sdk-for-ruby)
2
6
  * Update dependencies for compatibility with latest chef-client and chef-provisioning
3
7
 
@@ -17,7 +17,7 @@ module Azure
17
17
  class Version
18
18
  MAJOR = 0 unless defined? MAJOR
19
19
  MINOR = 7 unless defined? MINOR
20
- UPDATE = 0 unless defined? UPDATE
20
+ UPDATE = 1 unless defined? UPDATE
21
21
  PRE = nil unless defined? PRE
22
22
 
23
23
  class << self
@@ -41,6 +41,10 @@ module Azure
41
41
  virtual_network_service_xml,
42
42
  'State'
43
43
  )
44
+ virtual_network.location = xml_content(
45
+ virtual_network_service_xml,
46
+ 'Location'
47
+ )
44
48
  address_prefixes = virtual_network_service_xml.css(
45
49
  'AddressSpace AddressPrefixes AddressPrefix'
46
50
  )
@@ -164,7 +168,7 @@ module Azure
164
168
  dns_list = {}
165
169
  dns_list.merge!(merge_dns(new_dns_servers))
166
170
  dns_list.merge!(merge_dns(dns_servers))
167
-
171
+
168
172
  dns_list.each do |name, ip_address|
169
173
  xml.DnsServer('name' => name, 'IPAddress' => ip_address)
170
174
  end
@@ -172,7 +176,7 @@ module Azure
172
176
 
173
177
  def self.merge_dns(dns_list)
174
178
  new_dns_list = {}
175
-
179
+
176
180
  dns_list.each do |dns|
177
181
  unless dns_list.include?(dns[:name])
178
182
  new_dns_list.merge!(dns[:name] => dns[:ip_address])
@@ -31,6 +31,7 @@ module Azure
31
31
  attr_accessor :subnets
32
32
  attr_accessor :dns_servers
33
33
  attr_accessor :affinity_group
34
+ attr_accessor :location
34
35
  end
35
36
  end
36
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stuartpreston-azure-sdk-for-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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: 2015-04-03 00:00:00.000000000 Z
12
+ date: 2015-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri