azure-armrest 0.0.5 → 0.0.6

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: e179ee5e5853898b30670ef77c0712147645dceb
4
- data.tar.gz: 4bc9931e741b70bf8fd189f5f2cb9872447b9561
3
+ metadata.gz: 4759cde171ba44bc90f91439ddc0dcc7eedf318e
4
+ data.tar.gz: a3fe9d9e1262b89008aadb48fc253aa0f492e979
5
5
  SHA512:
6
- metadata.gz: ffceed5d4458e742b15869b04cc1820a42a496f0399a422c343d59ebb405f31b3f7c42e4dc86dae25dd5caf38d2cab646e8533ab9ffcba8891cc652cfbd7e15d
7
- data.tar.gz: 781f073af2d49351cffbb17c54786ed0fbd378b8cf2f3f66f516c5e219deaf508506a6a46626049509f87a1df3a52921abc6c3dd15da60cfce9ad9f7cfc7f4ca
6
+ metadata.gz: 6f07e07d0567b32068495e0795ff78cf0d695ac4b157bcf835bfd75a6d5fba9f657c5f04d7170161a387e8bb82a05ecd6081c612b4905fa866a1c7798ee3b9c9
7
+ data.tar.gz: 30d9530160d22508227a01a9902097ba25eab6ad42a9e7caf5bb7f2cd93a81c64fca7dfa866d7bf5348b9d2c0ea310228e992abba90e00708b1eaa70a66a038e
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ = 0.0.6 - 23-Oct-2015
2
+ * Defined a custom == method for the BaseModel class.
3
+ * The TemplateDeployment#properties.outputs now returns a hash.
4
+ * Temporarily use a BaseModel hash ref instead of a method name due to name
5
+ collision with ManageIQ until a general solution is worked out.
6
+
1
7
  = 0.0.5 - 21-Oct-2015
2
8
  * The VirtualMachineService#series method now returns VirtualMachineSize
3
9
  objects instead of a raw hash.
@@ -415,7 +415,10 @@ module Azure
415
415
  'locations' => resource.locations - [''] # Ignore empty elements
416
416
  }
417
417
  end
418
- @@providers_hash[info.namespace.downcase] = provider_info
418
+ # TODO: how does base model handle method naming collision?
419
+ # rename or access through hash?
420
+ # namespace is a method introduced by more_core_extensions
421
+ @@providers_hash[info['namespace'].downcase] = provider_info
419
422
  end
420
423
  end
421
424
 
@@ -93,6 +93,16 @@ module Azure
93
93
  string << ">"
94
94
  end
95
95
 
96
+ def ==(other)
97
+ return false unless other.kind_of?(BaseModel)
98
+ __getobj__ == other.__getobj__
99
+ end
100
+
101
+ def eql?(other)
102
+ return false unless other.kind_of?(BaseModel)
103
+ __getobj__.eql?(other.__getobj__)
104
+ end
105
+
96
106
  protected
97
107
 
98
108
  # Interface method required to make delegation work. Do
@@ -138,7 +148,7 @@ module Azure
138
148
  class Subscription < BaseModel; end
139
149
  class Tag < BaseModel; end
140
150
  class TemplateDeployment < BaseModel
141
- attr_hash 'properties#parameters'
151
+ attr_hash 'properties#parameters', 'properties#outputs'
142
152
  end
143
153
  class TemplateDeploymentOperation < TemplateDeployment; end
144
154
  class Tenant < BaseModel; end
@@ -1,5 +1,5 @@
1
1
  module Azure
2
2
  module Armrest
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-21 00:00:00.000000000 Z
14
+ date: 2015-10-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json