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 +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/survey_gizmo/resource.rb +1 -1
- data/lib/survey_gizmo/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: c4fa4e6aafdbf05e497f2fc7d8b6a6a217125244
|
4
|
+
data.tar.gz: 64fc0f16fa3a7ce15e6b85a8c14fde69a1b87471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }
|
data/lib/survey_gizmo/version.rb
CHANGED
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
|
+
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-
|
14
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|