magentwo 0.1.81 → 0.1.82

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dataset.rb +1 -1
  3. data/magentwo.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eda5a55a11df61797a05b2f35d3fe0b20d6479d72872b3812823ca5e38fe05b0
4
- data.tar.gz: 3f3f4ff404035cb0f5173c568e2c70eff45c5d1b8d9cc939432d8216f7a50328
3
+ metadata.gz: 762b1ff6602d28d8c0016f48853837c9d04f550eedfbdf473f76fa49b9aeac4d
4
+ data.tar.gz: eec1223e6e50059395b536df7b5dd130cba61fcced963dbed9fd581cf1d7b67c
5
5
  SHA512:
6
- metadata.gz: 39cd5cf819232affd9d70751259f2312b86616ded6d44b7c5e157cc5cb813997287ab15623eb23488a96ba019e16e6c3dcd349d23512dd497b9c4831a12f2640
7
- data.tar.gz: 070e57ef46f0129bd252693487040207655ab4e3b62171639e16dd80081d32712ac121ea191ad97ac00c2fba7ce6cee9778f2268129c968874b54033051d24da
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'magentwo'
3
- s.version = '0.1.81'
3
+ s.version = '0.1.82'
4
4
  s.date = '2019-01-17'
5
5
  s.summary = "Magento 2 API Wrapper"
6
6
  s.description = "Provides a simple Ruby Interface to interact with the Magento 2 API"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magentwo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.81
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Mueß