occi-core 5.0.3 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/occi/core/parsers/json/category.rb +10 -2
- data/lib/occi/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c513bf8c09cb9dc9789598eabca5d2d5af294a85
|
4
|
+
data.tar.gz: e3284ba5d52dd568e2323a82f1020c2309289ca6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dde99401dee876b8522a50ab31fad485f87cfbca281d2ffa9543bee2573a1fb2a145242d36a9ef66fe76e35229706b573ec5df4813458218ee73791fbb1e4707
|
7
|
+
data.tar.gz: 8e309b3a4b7895428103c6fd6a7179a04ceacd5fe306cddb71a5e2169a9d789d30c9183bb1b93a54b75146eb264130ffa0e3cb6f1e1e8bd0576a9cf1c1812dda
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
|
2
|
+
5.0.4 / 2017-11-10
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Forcing attribute type on occi.core.{source,target} to URI
|
6
|
+
|
7
|
+
5.0.3 / 2017-10-19
|
8
|
+
==================
|
9
|
+
* Added missing support for legacy context mixins
|
10
|
+
|
11
|
+
|
2
12
|
5.0.2 / 2017-09-27
|
3
13
|
==================
|
4
14
|
|
@@ -82,7 +82,8 @@ module Occi
|
|
82
82
|
unless def_hsh[:type]
|
83
83
|
raise Occi::Core::Errors::ParsingError, "Attribute #{k.to_s.inspect} has no type"
|
84
84
|
end
|
85
|
-
|
85
|
+
fix_links!(k, def_hsh)
|
86
|
+
attr_defs[k.to_s] = Occi::Core::AttributeDefinition.new(def_hsh)
|
86
87
|
end
|
87
88
|
|
88
89
|
attr_defs
|
@@ -113,7 +114,14 @@ module Occi
|
|
113
114
|
parsed_rel.each { |mxn| mixin.depends << first_or_die(derefd, mxn) }
|
114
115
|
end
|
115
116
|
|
116
|
-
|
117
|
+
# :nodoc:
|
118
|
+
def fix_links!(name, definition_hash)
|
119
|
+
return unless %w[occi.core.source occi.core.target].include?(name.to_s)
|
120
|
+
logger.debug { "Forcing attribute type on #{name.to_s.inspect} from #{definition_hash[:type]} to URI" }
|
121
|
+
definition_hash[:type] = URI # forcing 'string' to URI for validation purposes
|
122
|
+
end
|
123
|
+
|
124
|
+
private :lookup_applies_references!, :lookup_depends_references!, :fix_links!
|
117
125
|
end
|
118
126
|
end
|
119
127
|
end
|
data/lib/occi/core/version.rb
CHANGED
@@ -2,7 +2,7 @@ module Occi
|
|
2
2
|
module Core
|
3
3
|
MAJOR_VERSION = 5 # Major update constant
|
4
4
|
MINOR_VERSION = 0 # Minor update constant
|
5
|
-
PATCH_VERSION =
|
5
|
+
PATCH_VERSION = 4 # Patch/Fix version constant
|
6
6
|
STAGE_VERSION = nil # use `nil` for production releases
|
7
7
|
|
8
8
|
unless defined?(::Occi::Core::VERSION)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Parak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-10
|
12
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|