yaccl 0.0.33 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaccl/model/document.rb +1 -1
- data/lib/yaccl/model/object.rb +12 -2
- data/lib/yaccl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3482ae343f4d0c79b82399b817a3d91fa1ced4c2
|
4
|
+
data.tar.gz: 5af3fa3c01e7fbb37a187e80cbce0163a89ed419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d52a9fa114b694eddd0a7933c5c92feac4a97ff6f7ff0a5c9307d2ebc7c09d766412a7500549e0106e578d66dbb13ab3a8b272733eb05b8b3078fd70a743aa
|
7
|
+
data.tar.gz: a4e0cf077d4b0ee4440a45bc774202107a30dde24b4ee7d4e7771a0403a0979f78356f2b567e8a575804c76dc90b99c8721df76aa89f0c50e61680ac92dfb328
|
data/lib/yaccl/model/document.rb
CHANGED
data/lib/yaccl/model/object.rb
CHANGED
@@ -12,7 +12,7 @@ module YACCL
|
|
12
12
|
attr_reader :creation_date
|
13
13
|
attr_reader :last_modified_by
|
14
14
|
attr_reader :last_modification_date
|
15
|
-
|
15
|
+
attr_accessor :change_token
|
16
16
|
attr_accessor :properties
|
17
17
|
|
18
18
|
def initialize(repository_id, raw={})
|
@@ -46,7 +46,7 @@ module YACCL
|
|
46
46
|
|
47
47
|
def update_properties(properties)
|
48
48
|
r = Services.update_properties(repository_id, object_id, change_token, properties)
|
49
|
-
|
49
|
+
update_change_token(r)
|
50
50
|
end
|
51
51
|
|
52
52
|
def parents
|
@@ -122,6 +122,16 @@ module YACCL
|
|
122
122
|
@properties[method_sym] ? @properties[method_sym] : super
|
123
123
|
end
|
124
124
|
|
125
|
+
def update_change_token(r)
|
126
|
+
@change_token = if r[:properties]
|
127
|
+
r[:properties][:'cmis:changeToken'][:value]
|
128
|
+
elsif r[:succinctProperties]
|
129
|
+
r[:succinctProperties][:'cmis:changeToken']
|
130
|
+
else
|
131
|
+
raise "Unexpected response: #{r}"
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
125
135
|
private
|
126
136
|
|
127
137
|
def get_properties_map(raw)
|
data/lib/yaccl/version.rb
CHANGED