occi 2.5.6 → 2.5.7
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.
- data/lib/occi/parser.rb +2 -1
- data/lib/occi/version.rb +1 -1
- metadata +1 -1
data/lib/occi/parser.rb
CHANGED
@@ -91,6 +91,7 @@ module OCCI
|
|
91
91
|
link_strings = header['HTTP_LINK'].to_s.split(',')
|
92
92
|
link_strings.each do |link_string|
|
93
93
|
link = OCCIANTLR::Parser.new('Link: ' + link_string).link
|
94
|
+
link.attributes!.occi!.core!.target = link.target
|
94
95
|
entity.links << OCCI::Core::Link.new(link.kind, link.mixins, link.attributes, link.actions, link.rel)
|
95
96
|
end
|
96
97
|
collection.resources << OCCI::Core::Resource.new(entity.kind, entity.mixins, entity.attributes, entity.links)
|
@@ -138,7 +139,7 @@ module OCCI
|
|
138
139
|
entity.source = links.first.attributes!.occi!.core!.source
|
139
140
|
collection.links << OCCI::Core::Link.new(entity.kind, entity.mixins, entity.attributes)
|
140
141
|
elsif entity_type == OCCI::Core::Resource
|
141
|
-
entity.links = links.collect { |link| OCCI::Core::Link.new(link.kind, link.mixins, link.attributes, link.actions, link.rel) }
|
142
|
+
entity.links = links.collect { |link| link.attributes!.occi!.core!.target = link.target; OCCI::Core::Link.new(link.kind, link.mixins, link.attributes, link.actions, link.rel) }
|
142
143
|
collection.resources << OCCI::Core::Resource.new(entity.kind, entity.mixins, entity.attributes, entity.links)
|
143
144
|
end unless entity.kind.nil?
|
144
145
|
collection
|
data/lib/occi/version.rb
CHANGED