occi 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -134,9 +134,10 @@ module Occi
134
134
  # @param [Occi::Model] model representation of the Occi model to check the attributes against
135
135
  def check
136
136
  raise "No model associated" unless @model
137
- definitions = model.get_by_id(@kind.to_s).attributes
137
+ definitions = Occi::Core::Attributes.new
138
+ definitions.merge!(@model.get_by_id(@kind.to_s).attributes)
138
139
  @mixins.each do |mixin_id|
139
- mixin = model.get_by_id(mixin_id)
140
+ mixin = @model.get_by_id(mixin_id)
140
141
  next if mixin.nil?
141
142
  definitions.merge!(mixin.attributes) if mixin.attributes
142
143
  end if @mixins
@@ -1,3 +1,3 @@
1
1
  module Occi
2
- VERSION = "3.1.2" unless defined?(::Occi::VERSION)
2
+ VERSION = "3.1.3" 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: 3.1.2
4
+ version: 3.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-07-18 00:00:00.000000000 Z
14
+ date: 2013-08-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json