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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c6753c97ec57f2364e03300951c6ca5581ef10e
4
- data.tar.gz: f11cc59bc93e6ae43016f6fc70b93194fcc1a62d
3
+ metadata.gz: b8a11817e069c7ded27aa15f3907bcc878ad96e4
4
+ data.tar.gz: 5ee65d016b4576440be032324d76e2fc4bf4efdd
5
5
  SHA512:
6
- metadata.gz: 0323adcdc7a73c64ecaf4551d785927ff44095df33956a4b97b98810438bcf41e9a2c94641e548fdecf4b973d6207ab86becb2354e1da2bab2e18213babbfb9f
7
- data.tar.gz: a0faa2114412cecbad47a8a364eeb87e623b09e3060a3413c1117789760fbcaa7622a7e106a54b51c2c2239eeeb1e12b666602e231ff299f49199a8c9c34cf5b
6
+ metadata.gz: 5533f7ec81a71ff510403e190cf6f5bb3fb5d8092e5930574b7ce1ef838b9623e0f2fff8108e2b149198987119308468655057d9b9b5f5146e9ea373d637f88d
7
+ data.tar.gz: 96acad7849c42cd4e570d4a91f7f4cb06361c37f36aadb8df6d7b70c5b0a844d8008d04982a03a41492c9f1239e09ec3b085e6acb0041f58f0299dc193bd4832
@@ -121,7 +121,7 @@ module CMIS
121
121
  query(statement, opts).total
122
122
  end
123
123
 
124
- # Returns the changes objects
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
- result = server.execute!({ cmisaction: 'bulkUpdate',
135
- repositoryId: id,
136
- objectIdAndChangeToken: object_ids_and_change_tokens,
137
- properties: properties })
138
- result.map do |h|
139
- object = CMIS::Object.new({}, self)
140
- object.cmis_object_id = h['id']
141
- object
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
 
@@ -1,3 +1,3 @@
1
1
  module CMIS
2
- VERSION = '0.5.34'
2
+ VERSION = '0.5.35'
3
3
  end
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.34
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-06-19 00:00:00.000000000 Z
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