voog-kit 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/kit +0 -1
- data/lib/voog/dtk/filemanager.rb +14 -2
- data/lib/voog/dtk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 372f38b6bb4e9f72994756dd781dab53b18ce227
|
4
|
+
data.tar.gz: d6eb5cb7ecffe85ce8f2e485a0772260733b012a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cec7b56c7f6b5f864543de4bcbdb65c49d308c93d0a26427aca1f9e7536023be50f00c198e05277024f69ab8ee6a55cc09ac7aab14d29bd37ad9d5e372b9108
|
7
|
+
data.tar.gz: 7d0e523c0f88b198cbf7edce768864e5f747ef74f96a946aff1aad1dcecd9f174afef6ad5d2b954b324c63de3a0c55574ca448e155ee5ff013b98f7a320ce789
|
data/bin/kit
CHANGED
data/lib/voog/dtk/filemanager.rb
CHANGED
@@ -157,12 +157,24 @@ module Voog::Dtk
|
|
157
157
|
write_manifest @manifest
|
158
158
|
end
|
159
159
|
|
160
|
+
def auto_paginate(api_method, opt = {})
|
161
|
+
data = @client.send(api_method, opt)
|
162
|
+
last_response = @client.last_response
|
163
|
+
|
164
|
+
while last_response.rels[:next]
|
165
|
+
last_response = last_response.rels[:next].get
|
166
|
+
data.concat(last_response.data) if last_response.data.is_a?(Array)
|
167
|
+
end
|
168
|
+
|
169
|
+
data
|
170
|
+
end
|
171
|
+
|
160
172
|
def get_layouts
|
161
|
-
|
173
|
+
auto_paginate(:layouts, per_page: 250)
|
162
174
|
end
|
163
175
|
|
164
176
|
def get_layout_assets
|
165
|
-
|
177
|
+
auto_paginate(:layout_assets, per_page: 250)
|
166
178
|
end
|
167
179
|
|
168
180
|
def get_layout(id)
|
data/lib/voog/dtk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voog-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikk Pristavka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|