yaccl 0.1.1 → 0.1.2

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: b8c940fed9d928a9ecfc7f4ac3bd34cbd82e7362
4
- data.tar.gz: 6d46b47b74d4f7cf5a9818206dfc4361cb56c902
3
+ metadata.gz: 72522a255444827002f96e13cf166acb902bf6c7
4
+ data.tar.gz: 1b5c8b95d1816d80b67a81e7b9d5c5398a667b02
5
5
  SHA512:
6
- metadata.gz: b14a3c2b5814cbc43a4f0f3c3bb48c094843cdd74c0751c3e303cd280d3a50098e3205be700e36812233e17b9986cd16993c03e62d6e83ecff13e9c3d8be50d4
7
- data.tar.gz: 74b49b4b8b84924b2f95eb174182203731b14b1cf72d31b9578ec54df1ade267ec01a45d450bf01c745080a0d4c9e813a6106acbd59e58f184c74c0a0b75560f
6
+ metadata.gz: 4cf8d2349841adaaa067355e9dac7b31bf8e34377d64d4a48637a80a757959b942aaaa003e9da000ae4f7b054ffccae581a843b1798037da857c197946fd4c96
7
+ data.tar.gz: 247db1fca88af0847b19552765fe746d4705ce6305749f6d8a9391f3dfd1c838bdd6194210a1689be2d0652c8d0186e78528705b1e899891f71a1bae6cda8360
@@ -125,6 +125,17 @@ module YACCL
125
125
  result[:results]
126
126
  end
127
127
 
128
+ def query_for_each_chunk(statement, chunk_size, &block)
129
+ skip_count = 0
130
+ has_more_items = true
131
+ while has_more_items
132
+ result = Services.query(id, statement, nil, nil, nil, nil, chunk_size, skip_count)
133
+ yield(result[:results].map! { |o| ObjectFactory.create(id, o) })
134
+ has_more_items = result[:hasMoreItems]
135
+ skip_count += chunk_size
136
+ end
137
+ end
138
+
128
139
  def content_changes(change_log_token)
129
140
  Services.get_content_changes(id, change_log_token, nil, nil, nil, nil)
130
141
  end
@@ -1,3 +1,4 @@
1
+ require 'date'
1
2
  require 'typhoeus'
2
3
  require 'net/http/post/multipart'
3
4
  require 'multi_json'
data/lib/yaccl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaccl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2014-01-16 00:00:00.000000000 Z
12
+ date: 2014-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus