cmis-ruby 0.5.33 → 0.5.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ffcd5b3112e7b5e8da44c1dc0ed361ce8bd5c13
4
- data.tar.gz: efb4024235ebcbfa4b2a09d6695113f2f98e0a2e
3
+ metadata.gz: 5c6753c97ec57f2364e03300951c6ca5581ef10e
4
+ data.tar.gz: f11cc59bc93e6ae43016f6fc70b93194fcc1a62d
5
5
  SHA512:
6
- metadata.gz: db6b97aacc983f79ed03b8655bf2640f3866f4e7462668763bb929428fac8ae6ccdb99fb4d0c08aa5dd4318faf65c6c65d0d0e2508fcdccdeb90d1dab73553ab
7
- data.tar.gz: 7333888ed398f508d320abebc6d4f87587e14d19bdf1768f5d0094f6de3a4e76973165b5ca9c412d72741e1b1aa02cef4b740fd9f8a9f3a706db57522676bc0e
6
+ metadata.gz: 0323adcdc7a73c64ecaf4551d785927ff44095df33956a4b97b98810438bcf41e9a2c94641e548fdecf4b973d6207ab86becb2354e1da2bab2e18213babbfb9f
7
+ data.tar.gz: a0faa2114412cecbad47a8a364eeb87e623b09e3060a3413c1117789760fbcaa7622a7e106a54b51c2c2239eeeb1e12b666602e231ff299f49199a8c9c34cf5b
@@ -69,6 +69,23 @@ module CMIS
69
69
  @total = @total == -1 ? result.num_items : @total # CMIS AWS trickery
70
70
  end
71
71
 
72
+ def do_token_query(max, token=nil)
73
+ params = { repositoryId: @repository.id, maxItems: max }
74
+ params[:nextToken] = token if token
75
+
76
+ if @method == 'post'
77
+ params.merge!(cmisselector: 'query', q: @statement)
78
+ else
79
+ params.merge!(cmisaction: 'query', statement: @statement)
80
+ end
81
+
82
+ result = @repository.server.execute!(params, @opts)
83
+ {
84
+ nextToken: result['nextToken'] ,
85
+ objects: result['results'].map { |r| ObjectFactory.create(r, @repository) }
86
+ }
87
+ end
88
+
72
89
  def debug_info
73
90
  @debug_info
74
91
  end
@@ -143,6 +143,13 @@ module CMIS
143
143
  end
144
144
  end
145
145
 
146
+ def bulk_update_objects(object_ids_and_change_tokens, properties)
147
+ server.execute!(cmisaction: 'bulkUpdate',
148
+ repositoryId: id,
149
+ objectIdAndChangeToken: object_ids_and_change_tokens,
150
+ properties: properties)
151
+ end
152
+
146
153
  def inspect
147
154
  "#{self.class}[#{id}] @ #{server.inspect}"
148
155
  end
@@ -1,3 +1,3 @@
1
1
  module CMIS
2
- VERSION = '0.5.33'
2
+ VERSION = '0.5.34'
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.33
4
+ version: 0.5.34
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-03-20 00:00:00.000000000 Z
12
+ date: 2017-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.5.2
116
+ rubygems_version: 2.6.12
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Ruby client for CMIS