cmis-ruby 0.5.34 → 0.5.35
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.
- checksums.yaml +4 -4
- data/lib/cmis/repository.rb +14 -9
- data/lib/cmis/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a11817e069c7ded27aa15f3907bcc878ad96e4
|
4
|
+
data.tar.gz: 5ee65d016b4576440be032324d76e2fc4bf4efdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5533f7ec81a71ff510403e190cf6f5bb3fb5d8092e5930574b7ce1ef838b9623e0f2fff8108e2b149198987119308468655057d9b9b5f5146e9ea373d637f88d
|
7
|
+
data.tar.gz: 96acad7849c42cd4e570d4a91f7f4cb06361c37f36aadb8df6d7b70c5b0a844d8008d04982a03a41492c9f1239e09ec3b085e6acb0041f58f0299dc193bd4832
|
data/lib/cmis/repository.rb
CHANGED
@@ -121,7 +121,7 @@ module CMIS
|
|
121
121
|
query(statement, opts).total
|
122
122
|
end
|
123
123
|
|
124
|
-
# Returns the
|
124
|
+
# Returns the changed objects
|
125
125
|
def update_objects(type_id, conditions, properties)
|
126
126
|
statement = Utils.build_query_statement(type_id, conditions, 'cmis:objectId', 'cmis:changeToken')
|
127
127
|
object_ids_and_change_tokens = []
|
@@ -131,15 +131,20 @@ module CMIS
|
|
131
131
|
if object_ids_and_change_tokens.empty?
|
132
132
|
[]
|
133
133
|
else
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
134
|
+
results = []
|
135
|
+
object_ids_and_change_tokens.each_slice(10) do |part|
|
136
|
+
r = server.execute!({ cmisaction: 'bulkUpdate',
|
137
|
+
repositoryId: id,
|
138
|
+
objectIdAndChangeToken: part,
|
139
|
+
properties: properties })
|
140
|
+
r.map! do |h|
|
141
|
+
object = CMIS::Object.new({}, self)
|
142
|
+
object.cmis_object_id = h['id']
|
143
|
+
object
|
144
|
+
end
|
145
|
+
results.concat(r)
|
142
146
|
end
|
147
|
+
results
|
143
148
|
end
|
144
149
|
end
|
145
150
|
|
data/lib/cmis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmis-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.35
|
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: 2017-
|
12
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -129,3 +129,4 @@ test_files:
|
|
129
129
|
- spec/config.yml
|
130
130
|
- spec/rspec.opts
|
131
131
|
- spec/spec_helper.rb
|
132
|
+
has_rdoc: false
|