survey-gizmo-ruby 6.2.4 → 6.2.5

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: e3f1eaf1dab10cb028c5edbb3671e180da1db8f4
4
- data.tar.gz: 1cefaec7e63875b24d821834cf24c01b527df651
3
+ metadata.gz: c4fa4e6aafdbf05e497f2fc7d8b6a6a217125244
4
+ data.tar.gz: 64fc0f16fa3a7ce15e6b85a8c14fde69a1b87471
5
5
  SHA512:
6
- metadata.gz: 55fc16d92facb2d7304b4680c4eab64507a6563d2ce22fd91e5383712fdaffe5f8fa17db1eaf668c2b121f5fc351c543b3630ef17f97e9416134b6d4e498e634
7
- data.tar.gz: edd7bc244376cdf521f39297a7e9b7be3a0b8beca3431629e7d67d4e0e21d9e9c115a5f94fd51b4387239c1b0b8ea3098be17a11aabecc1b509c36ff3ddd7c2d
6
+ metadata.gz: 64f5574067055b2d21c0ec08da9e674818a51b1d557897e91869b0fe859023a4ed5b07d8f6467f41b208ad2f0e4cae794bfbcb18e05dc7ca5c512e77af0949d1
7
+ data.tar.gz: fd02a154a8cd297b7e0a132720fad4311871096d6097c79384b3f9cc65aa404bbdd76d825cd7c8f63da621e711ba176e1f4b9142523f322615782c45cf75fd97
data/CHANGELOG.md CHANGED
@@ -5,6 +5,7 @@
5
5
  * **BREAKING CHANGE**: Pester has been removed as the retry source in favor of `Retriable`.
6
6
  * FEATURE: `Configuration#region` will configure the region to use the corresponding api and time zone. (#74)
7
7
  * Bugfix: fix escaping to resolve duplicate option issue (#75)
8
+ * Bugfix: fix manual pagination (#82)
8
9
 
9
10
  ## Major Changes in 5.x
10
11
 
@@ -44,7 +44,7 @@ module SurveyGizmo
44
44
  response = nil
45
45
 
46
46
  while !response || (all_pages && response['page'] < response['total_pages'])
47
- conditions[:page] = response ? response['page'] + 1 : 1
47
+ conditions[:page] = response ? response['page'] + 1 : conditions.fetch(:page, 1)
48
48
  logger.debug("Fetching #{name} page #{conditions} - #{conditions[:page]}#{response ? "/#{response['total_pages']}" : ''}...")
49
49
  response = Connection.get(create_route(:create, conditions)).body
50
50
  collection = response['data'].map { |datum| datum.is_a?(Hash) ? new(conditions.merge(datum)) : datum }
@@ -1,3 +1,3 @@
1
1
  module SurveyGizmo
2
- VERSION = '6.2.4'
2
+ VERSION = '6.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: survey-gizmo-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.4
4
+ version: 6.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kabari Hendrick
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-06 00:00:00.000000000 Z
14
+ date: 2016-08-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport