survey-gizmo-ruby 6.1.1 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +3 -31
- data/lib/survey_gizmo/api/question.rb +1 -1
- data/lib/survey_gizmo/connection.rb +2 -2
- data/lib/survey_gizmo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f278de3b358b26c742f439c74da14b9cede1df7
|
4
|
+
data.tar.gz: f2fa277155e842c93dc98c9b927cb129893b2311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec15907fc482a6ae12fd09aff10a7eb68723eb8ec4cbdc38234348da4c52aa6ecc80eac0877c78d9ef6fec4a797672a5c81f05e6969e853a58c2eed8b8c6c44
|
7
|
+
data.tar.gz: 698358708e14e25993e1ff3bc075c66f3f9202d44054dddbce29f770ae76bbd0c4618c89eac6d663f8997a78a02ee2b75b0d1cff619223bc627f0c0744265c8e
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Versions
|
2
|
+
|
3
|
+
## Major Changes in 6.x
|
4
|
+
* **BREAKING CHANGE**: SurveyGizmo changed the authentication so you need to configure `api_token` and `api_token_secret` instead of user and password.
|
5
|
+
* **BREAKING CHANGE**: Pester has been removed as the retry source in favor of `Retriable`.
|
6
|
+
|
7
|
+
## Major Changes in 5.x
|
8
|
+
|
9
|
+
* **BREAKING CHANGE**: `.all` returns an `Enumerator`, not an `Array`. This will break your code if you are using the return value of `.all` without iterating over it.
|
10
|
+
* **BREAKING CHANGE**: `SurveyCampaign` has been renamed `Campaign` to be in line with the other model names.
|
11
|
+
* FEATURE: `.all` will automatically paginate responses for you with the `:all_pages` option. There are also some built in methods like `Survey#responses` that will auto paginate.
|
12
|
+
* FEATURE: Built in retries. 1 retry with a 60 second backoff is the default but can be configured.
|
13
|
+
* FEATURE: `Response#parsed_answers` returns an array of `Answers` (new class) that are sane, stable Ruby objects instead of the sort of wild and wooly way SurveyGizmo has chosen to represent survey responses.
|
14
|
+
|
15
|
+
## Major Changes in 4.x
|
16
|
+
|
17
|
+
* **BREAKING CHANGE**: There is no more error tracking. If the API gives an error or bad response, an exception will be raised.
|
18
|
+
* **BREAKING CHANGE**: There is no more ```copy``` method
|
19
|
+
|
20
|
+
## Major Changes in 3.x
|
21
|
+
|
22
|
+
* **BREAKING CHANGE**: Configuration is completely different
|
23
|
+
* Important Change: Defaults to using the v4 SurveyGizmo API endpoint to take advantage of various API bug fixes (notably team ownership is broken in v3)
|
24
|
+
|
25
|
+
## Old versions
|
26
|
+
|
27
|
+
[Version 2.0.1 for the v3 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v2.0.1)
|
28
|
+
|
29
|
+
[Version 1.0.5 for the v2 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v1.0.5)
|
30
|
+
|
31
|
+
[Version 0.7.0 for the v1 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v0.7.0)
|
data/README.md
CHANGED
@@ -2,41 +2,13 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/jarthod/survey-gizmo-ruby.svg?branch=master)](https://travis-ci.org/jarthod/survey-gizmo-ruby)
|
4
4
|
|
5
|
-
Integrate with the [Survey Gizmo API](
|
5
|
+
Integrate with the [Survey Gizmo API](https://apihelp.surveygizmo.com/help) using an ActiveModel style interface.
|
6
6
|
|
7
7
|
Currently supports SurveyGizmo API **v4** (default) and **v3**.
|
8
8
|
|
9
|
-
##
|
9
|
+
## Version History
|
10
10
|
|
11
|
-
|
12
|
-
* **BREAKING CHANGE**: SurveyGizmo changed the authentication so you need to configure `api_token` and `api_token_secret` instead of user and password.
|
13
|
-
* **BREAKING CHANGE**: Pester has been removed as the retry source in favor of `Retriable`.
|
14
|
-
|
15
|
-
### Major Changes in 5.x
|
16
|
-
|
17
|
-
* **BREAKING CHANGE**: `.all` returns an `Enumerator`, not an `Array`. This will break your code if you are using the return value of `.all` without iterating over it.
|
18
|
-
* **BREAKING CHANGE**: `SurveyCampaign` has been renamed `Campaign` to be in line with the other model names.
|
19
|
-
* FEATURE: `.all` will automatically paginate responses for you with the `:all_pages` option. There are also some built in methods like `Survey#responses` that will auto paginate.
|
20
|
-
* FEATURE: Built in retries. 1 retry with a 60 second backoff is the default but can be configured.
|
21
|
-
* FEATURE: `Response#parsed_answers` returns an array of `Answers` (new class) that are sane, stable Ruby objects instead of the sort of wild and wooly way SurveyGizmo has chosen to represent survey responses.
|
22
|
-
|
23
|
-
### Major Changes in 4.x
|
24
|
-
|
25
|
-
* **BREAKING CHANGE**: There is no more error tracking. If the API gives an error or bad response, an exception will be raised.
|
26
|
-
* **BREAKING CHANGE**: There is no more ```copy``` method
|
27
|
-
|
28
|
-
### Major Changes in 3.x
|
29
|
-
|
30
|
-
* **BREAKING CHANGE**: Configuration is completely different
|
31
|
-
* Important Change: Defaults to using the v4 SurveyGizmo API endpoint to take advantage of various API bug fixes (notably team ownership is broken in v3)
|
32
|
-
|
33
|
-
### Old versions
|
34
|
-
|
35
|
-
[Version 2.0.1 for the v3 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v2.0.1)
|
36
|
-
|
37
|
-
[Version 1.0.5 for the v2 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v1.0.5)
|
38
|
-
|
39
|
-
[Version 0.7.0 for the v1 API is here](https://github.com/RipTheJacker/survey-gizmo-ruby/releases/tag/v0.7.0)
|
11
|
+
[See the change log.](CHANGELOG.md)
|
40
12
|
|
41
13
|
## Installation
|
42
14
|
|
@@ -51,7 +51,7 @@ module SurveyGizmo::API
|
|
51
51
|
|
52
52
|
def sub_questions
|
53
53
|
@sub_questions ||= sub_question_skus.map do |sku|
|
54
|
-
SurveyGizmo.configuration.logger.
|
54
|
+
SurveyGizmo.configuration.logger.debug("Have to do individual load of sub question #{sku}...")
|
55
55
|
subquestion = Question.first(survey_id: survey_id, id: sku)
|
56
56
|
subquestion.parent_question_id = id
|
57
57
|
subquestion
|
@@ -52,13 +52,13 @@ module SurveyGizmo
|
|
52
52
|
def retriable_args
|
53
53
|
{
|
54
54
|
interval: SurveyGizmo.configuration.retry_interval,
|
55
|
-
tries:
|
55
|
+
tries: SurveyGizmo.configuration.retry_attempts + 1,
|
56
56
|
on: [
|
57
57
|
SurveyGizmo::BadResponseError,
|
58
58
|
SurveyGizmo::RateLimitExceededError,
|
59
59
|
Errno::ETIMEDOUT,
|
60
60
|
Net::ReadTimeout,
|
61
|
-
Faraday::Error::TimeoutError
|
61
|
+
Faraday::Error::TimeoutError
|
62
62
|
]
|
63
63
|
}
|
64
64
|
end
|
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.1.
|
4
|
+
version: 6.1.2
|
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-06-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -198,6 +198,7 @@ files:
|
|
198
198
|
- ".gitignore"
|
199
199
|
- ".rspec"
|
200
200
|
- ".travis.yml"
|
201
|
+
- CHANGELOG.md
|
201
202
|
- Gemfile
|
202
203
|
- LICENSE.txt
|
203
204
|
- README.md
|