occi 2.5.14 → 2.5.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,8 @@ module OCCI
19
19
  # @return [Array] list of full attribute names
20
20
  def combine
21
21
  array = []
22
- self.each_key do |key| || self[key].key?('type')
23
- if self[key].key? 'Type'
22
+ self.each_key do |key|
23
+ if self[key].key?('Type') || self[key].key?('type')
24
24
  array << key
25
25
  else
26
26
  attribute = self[key]
@@ -35,7 +35,7 @@ module OCCI
35
35
  def combine_with_defaults
36
36
  hash = { }
37
37
  self.each_key do |key|
38
- if self[key].include? 'Type' || self[key].include?('type')
38
+ if self[key].include?('Type') || self[key].include?('type')
39
39
  hash[key] = self[key]['Default']
40
40
  else
41
41
  self[key].combine_with_defaults.each { |k, v| hash[key + '.' + k] = v }
data/lib/occi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OCCI
2
- VERSION = "2.5.14" unless defined?(::OCCI::VERSION)
2
+ VERSION = "2.5.15" unless defined?(::OCCI::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.14
4
+ version: 2.5.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: