cmis-ruby 0.5.31 → 0.5.32
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 +13 -5
- data/lib/cmis/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fc4ab404a7365b133d6e07c424cfafacdd83d08
|
4
|
+
data.tar.gz: 12895a3bc09b91aca1b65d7172561de5a9b849b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d56a12416e76ce0a01bab520040cad8475ac42990e18b8e978c7cf8f5948a2828bf38fdc5d926e0c4fc427862b3f78d2b7fe21aed7ae919d4c48239e82720d7
|
7
|
+
data.tar.gz: e3a5c360f307caeacdc94764bae9c429986def970cbcc6fa3f9af94f82715f2d8e32100e4fdc25a35b606e4c7817afb272375868ec6773c02f73a72a8123a24b
|
data/lib/cmis/repository.rb
CHANGED
@@ -121,17 +121,25 @@ module CMIS
|
|
121
121
|
query(statement, opts).total
|
122
122
|
end
|
123
123
|
|
124
|
+
# Returns the changes objects
|
124
125
|
def update_objects(type_id, conditions, properties)
|
125
126
|
statement = Utils.build_query_statement(type_id, conditions, 'cmis:objectId', 'cmis:changeToken')
|
126
127
|
object_ids_and_change_tokens = []
|
127
128
|
query(statement).each_result(limit: :all) do |r|
|
128
129
|
object_ids_and_change_tokens << [r.cmis_object_id, r.change_token]
|
129
130
|
end
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
131
|
+
if object_ids_and_change_tokens.empty?
|
132
|
+
[]
|
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
|
142
|
+
end
|
135
143
|
end
|
136
144
|
end
|
137
145
|
|
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.32
|
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:
|
12
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -39,8 +39,9 @@ dependencies:
|
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0.9'
|
42
|
-
description:
|
43
|
-
|
42
|
+
description: 'CMIS browser binding client library in ruby.
|
43
|
+
|
44
|
+
'
|
44
45
|
email:
|
45
46
|
- kenneth@up-nxt.com
|
46
47
|
executables: []
|
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
113
|
version: '0'
|
113
114
|
requirements: []
|
114
115
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.6.8
|
116
117
|
signing_key:
|
117
118
|
specification_version: 4
|
118
119
|
summary: Ruby client for CMIS
|
@@ -128,4 +129,3 @@ test_files:
|
|
128
129
|
- spec/config.yml
|
129
130
|
- spec/rspec.opts
|
130
131
|
- spec/spec_helper.rb
|
131
|
-
has_rdoc: false
|