yaccl 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/yaccl/model/type.rb +3 -4
- data/lib/yaccl/version.rb +1 -1
- data/spec/helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTEzMjljNDVmODZjNjFkMzcwZjc0MWM4OGZiOThkMDg1MThhNDU0Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTM0NmVlM2QyNTBhYWFmYWMyZDE2OTIzMDcwYzkzNWY5NmFhMzk4Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmMxNDM1MmZlZGUxZmY0NmZlZDMwMjY4NWU5M2I5YzZmMjc4YWY0NzYyMTJi
|
10
|
+
YjNhMmY4ZDJiMTNlZmZhZDkwYTcyNjM5NjI0NWZmNjcyODQ0OWI5NjlmMzky
|
11
|
+
NGZhYzAxYTg5ODg4OGVmZmM3ZDgwMWE1OTRjYzhmNTdiNmNlMzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE2OTQwYTk3NDk3YjZjODRhODJjMDA4YTVmMzY5YTdjMmNlYjkxNjNhZjNh
|
14
|
+
MjUwM2U0ZDc2ZGNjNDAxNTdmN2E0NmRkOTU2ODhlNTQ1MWY3YmIyOTI4Y2Rj
|
15
|
+
M2I0M2YxNGZlMzc5ZDhlNmEwNjQwZWI5ZDQxZDY4ZmMyNTFhMzQ=
|
data/lib/yaccl/model/type.rb
CHANGED
@@ -26,12 +26,11 @@ module YACCL
|
|
26
26
|
attr_accessor :allowed_target_types
|
27
27
|
|
28
28
|
def self.create(repository_id, raw)
|
29
|
-
Type.new(repository_id, raw)
|
30
|
-
end
|
31
|
-
|
32
|
-
def initialize(repository_id, hash={})
|
33
29
|
@repository_id = repository_id
|
30
|
+
Type.new(raw)
|
31
|
+
end
|
34
32
|
|
33
|
+
def initialize(hash={})
|
35
34
|
@id = hash[:id]
|
36
35
|
@local_name = hash[:localName]
|
37
36
|
@local_namespace = hash[:localNamespace]
|
data/lib/yaccl/version.rb
CHANGED
data/spec/helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'yaccl'
|
2
2
|
require 'json'
|
3
3
|
|
4
|
-
YACCL.init('http://localhost:8080/
|
4
|
+
YACCL.init('http://localhost:8080/browser')
|
5
5
|
|
6
6
|
def create_repository(id)
|
7
7
|
meta = YACCL::Model::Server.repository('meta')
|
@@ -14,7 +14,7 @@ def create_repository(id)
|
|
14
14
|
f.object_type_id = repo_type.id
|
15
15
|
f.properties[:supportsRelationships] = true if property_definitions.include?(:supportsRelationships)
|
16
16
|
f.properties[:supportsPolicies] = true if property_definitions.include?(:supportsPolicies)
|
17
|
-
f.properties[:
|
17
|
+
f.properties[:supportsItems] = true if property_definitions.include?(:supportsItems)
|
18
18
|
meta.root.create(f)
|
19
19
|
|
20
20
|
YACCL::Model::Server.repository(id)
|