magentwo 0.1.81 → 0.1.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dataset.rb +1 -1
- data/magentwo.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 762b1ff6602d28d8c0016f48853837c9d04f550eedfbdf473f76fa49b9aeac4d
|
4
|
+
data.tar.gz: eec1223e6e50059395b536df7b5dd130cba61fcced963dbed9fd581cf1d7b67c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2aac1f5d4db03d4ab60edbf8520b632ed3b87279ca4ccf4769d4db75ff5955877e9a5ca289967c6c5fb395e7cc734f279f4909bb24aa59a793c4c573270da97
|
7
|
+
data.tar.gz: 293e42cc723f68a9a34ac295c6d93105a3f3f72c3818c8430b1eafa001e99f85833f146e37f63bbdb6b0fe526587f95ccc4d08fc7efa5dddc3714683e5ceb423
|
data/lib/dataset.rb
CHANGED
@@ -188,7 +188,7 @@ module Magentwo
|
|
188
188
|
received_element_count = page_size
|
189
189
|
current_page = 1
|
190
190
|
total_count = nil
|
191
|
-
until(total_count && current_page*page_size > total_count) do
|
191
|
+
until(total_count && current_page*page_size > (total_count + page_size)) do
|
192
192
|
page = self.page(current_page, page_size).all meta_data:true
|
193
193
|
total_count = page[:total_count] unless total_count
|
194
194
|
block.call(page[:items])
|
data/magentwo.gemspec
CHANGED