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.
Files changed (3) hide show
  1. data/lib/occi/parser.rb +2 -1
  2. data/lib/occi/version.rb +1 -1
  3. 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
@@ -1,3 +1,3 @@
1
1
  module OCCI
2
- VERSION = "2.5.6" unless defined?(::OCCI::VERSION)
2
+ VERSION = "2.5.7" 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.6
4
+ version: 2.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: