yaccl 0.0.9 → 0.0.11
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/object.rb +2 -2
- data/lib/yaccl/model/relationship.rb +4 -4
- data/lib/yaccl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTA3YTEyNmIzMWE4OGNjN2U0ODVhMTZiZTlmYmJjMjIzM2Q1NzlmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWQ5MGIzZjQ5MjdjYjU1MzY5YTQyMmNjODhkMTQ1YmYwZTEyZTA5ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTVlMzAxOGYzY2M1MTQxYzAzMzUxNTE5NmJlZmJhOTM4OWRiM2FkYzExZDMx
|
10
|
+
ODAzNmU0MzI2ODg3YWUzOGI5MzIyY2VlM2IwMGMzOTgwODU3YjU2MzgzY2Q5
|
11
|
+
YmNiN2NjNjVmNzAzMDk2MThkZTRjMjlkNWU0NmI3MGY0NWVlOTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODYyMDFlMDk5ODAzNmY3ZDllZWVjM2E3OTQ1OTE1YjU2YmE0ZDM5YWUzMWE4
|
14
|
+
Y2Q4N2VhNjAxZmIzYzk5MDI0NjUyYTcxNDg1Y2I4Mzk3YTUxNGQzMDU5Y2Jk
|
15
|
+
MzQ3ZDg5YTAwYWY2NGM2NjViNzgzMTVlZTcyMmZlNDhkMTcxZjE=
|
data/lib/yaccl/model/object.rb
CHANGED
@@ -63,12 +63,12 @@ module YACCL
|
|
63
63
|
|
64
64
|
def relationships(direction=:either)
|
65
65
|
result = Services.get_object_relationships(repository_id, object_id, nil, direction, nil, nil, false, nil, nil)
|
66
|
-
result[:objects].map { |r| Relationship.
|
66
|
+
result[:objects].map { |r| Relationship.new(repository_id, r) }
|
67
67
|
end
|
68
68
|
|
69
69
|
def policies
|
70
70
|
Services.get_applied_policies(repository_id, object_id, nil).map do |policy|
|
71
|
-
Policy.
|
71
|
+
Policy.new(repository_id, policy)
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -6,16 +6,16 @@ module YACCL
|
|
6
6
|
|
7
7
|
def initialize(repository_id, raw={})
|
8
8
|
super
|
9
|
-
@source_id = @properties['cmis:sourceId']
|
10
|
-
@target_id = @properties['cmis:targetId']
|
9
|
+
@source_id = @properties[:'cmis:sourceId']
|
10
|
+
@target_id = @properties[:'cmis:targetId']
|
11
11
|
end
|
12
12
|
|
13
13
|
def source
|
14
|
-
|
14
|
+
ObjectFactory.create(repository_id, Services.get_object(repository_id, source_id, nil, false, nil, nil, false, false))
|
15
15
|
end
|
16
16
|
|
17
17
|
def target
|
18
|
-
|
18
|
+
ObjectFactory.create(repository_id, Services.get_object(repository_id, target_id, nil, false, nil, nil, false, false))
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/yaccl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaccl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenneth Geerts
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|