survey-gizmo-ruby 7.1.1 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +28 -0
- data/CHANGELOG.md +8 -0
- data/README.md +2 -4
- data/lib/survey-gizmo-ruby.rb +1 -0
- data/lib/survey_gizmo/api/answer.rb +1 -1
- data/lib/survey_gizmo/configuration.rb +2 -2
- data/lib/survey_gizmo/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- metadata +4 -4
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a117d657f95e13930b39d1df1304eb05e46432d896587a6da45a21d813b5db
|
4
|
+
data.tar.gz: 8c8fa64911c98668f44ff4e69a4622f3d93af804c8330d55d7008fec1d375518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2eba67b9fe4060d7ddf0a440c1ff7c46b8ed17f12744c720d8d111eedac6e2f75912fcec7b02b9f767be4d77cb967a645bf0841017bfff772a2187120ec8067
|
7
|
+
data.tar.gz: '080cd24a8f6efd9253ac4a07614c0473fe08a054e3005e4e1b24449e512ba6a53fd4bc58c5607bb1ec75b4a68753dbf0c81a01609864c8072602107f55736f7e'
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: on ruby ${{matrix.ruby}}
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby: [2.4, 2.5, 2.6, 2.7, 3.0, head]
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- name: Checkout repository
|
17
|
+
uses: actions/checkout@v2
|
18
|
+
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{matrix.ruby}}
|
23
|
+
|
24
|
+
- name: Install dependencies
|
25
|
+
run: bundle install --jobs 4 --retry 3
|
26
|
+
|
27
|
+
- name: RSpec
|
28
|
+
run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Versions
|
2
2
|
|
3
|
+
## 8.1.0 (unreleased)
|
4
|
+
|
5
|
+
## 8.0.0
|
6
|
+
* BREAKING CHANGE: Switch from the old Survey Gizmo API URLs (`restapi.surveygizmo.com` and `restapi.surveygizmo.eu`) to the new Alchemer API URLs (`api.alchemer.com` and `api.alchemer.eu`)
|
7
|
+
* Fix ruby 3.2 build
|
8
|
+
* Fix ruby 2.7 build and compatibility with activesupport >= 7
|
9
|
+
* Switch CI from Travis to Github actions
|
10
|
+
|
3
11
|
## 7.1.1
|
4
12
|
* Add missing `subtype` parameter to `Campain` required at creation
|
5
13
|
* Fix use of deprecated Faraday error class (#110)
|
data/README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
# Survey Gizmo (ruby)
|
2
2
|
|
3
|
-
[
|
3
|
+
Integrate with the [Alchemer API](https://apihelp.alchemer.com/help) using an ActiveModel style interface.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Currently supports SurveyGizmo API **v4** (default) and **v3**.
|
5
|
+
Currently supports Alchemer API **v4** (default) and **v3**.
|
8
6
|
|
9
7
|
## Version History
|
10
8
|
|
data/lib/survey-gizmo-ruby.rb
CHANGED
@@ -20,7 +20,7 @@ module SurveyGizmo::API
|
|
20
20
|
when /\[question\((\d+)\),\s*option\((\d+|"\d+-other")\)\]/
|
21
21
|
self.question_id, self.option_id = $1, $2
|
22
22
|
|
23
|
-
if option_id =~ /-other/
|
23
|
+
if option_id.to_s =~ /-other/
|
24
24
|
option_id.delete!('-other"')
|
25
25
|
self.other_text = value
|
26
26
|
elsif option_id == 0
|
@@ -49,11 +49,11 @@ module SurveyGizmo
|
|
49
49
|
|
50
50
|
REGION_INFO = {
|
51
51
|
us: {
|
52
|
-
url: 'https://
|
52
|
+
url: 'https://api.alchemer.com',
|
53
53
|
locale: 'Eastern Time (US & Canada)'
|
54
54
|
},
|
55
55
|
eu: {
|
56
|
-
url: 'https://
|
56
|
+
url: 'https://api.alchemer.eu',
|
57
57
|
locale: 'UTC'
|
58
58
|
}
|
59
59
|
}
|
data/lib/survey_gizmo/version.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -106,7 +106,7 @@ describe SurveyGizmo::Configuration do
|
|
106
106
|
describe '#region=' do
|
107
107
|
it 'should set US region by default' do
|
108
108
|
SurveyGizmo.configure
|
109
|
-
expect(SurveyGizmo.configuration.api_url).to eq('https://
|
109
|
+
expect(SurveyGizmo.configuration.api_url).to eq('https://api.alchemer.com')
|
110
110
|
expect(SurveyGizmo.configuration.api_time_zone).to eq('Eastern Time (US & Canada)')
|
111
111
|
end
|
112
112
|
|
@@ -115,7 +115,7 @@ describe SurveyGizmo::Configuration do
|
|
115
115
|
config.region = :us
|
116
116
|
end
|
117
117
|
|
118
|
-
expect(SurveyGizmo.configuration.api_url).to eq('https://
|
118
|
+
expect(SurveyGizmo.configuration.api_url).to eq('https://api.alchemer.com')
|
119
119
|
expect(SurveyGizmo.configuration.api_time_zone).to eq('Eastern Time (US & Canada)')
|
120
120
|
end
|
121
121
|
|
@@ -124,7 +124,7 @@ describe SurveyGizmo::Configuration do
|
|
124
124
|
config.region = :eu
|
125
125
|
end
|
126
126
|
|
127
|
-
expect(SurveyGizmo.configuration.api_url).to eq('https://
|
127
|
+
expect(SurveyGizmo.configuration.api_url).to eq('https://api.alchemer.eu')
|
128
128
|
expect(SurveyGizmo.configuration.api_time_zone).to eq('UTC')
|
129
129
|
end
|
130
130
|
|
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:
|
4
|
+
version: 8.0.0
|
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:
|
14
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -189,9 +189,9 @@ extensions: []
|
|
189
189
|
extra_rdoc_files: []
|
190
190
|
files:
|
191
191
|
- ".document"
|
192
|
+
- ".github/workflows/test.yml"
|
192
193
|
- ".gitignore"
|
193
194
|
- ".rspec"
|
194
|
-
- ".travis.yml"
|
195
195
|
- CHANGELOG.md
|
196
196
|
- Gemfile
|
197
197
|
- LICENSE.txt
|
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
- !ruby/object:Gem::Version
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
249
|
+
rubygems_version: 3.2.33
|
250
250
|
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: Gem to use the SurveyGizmo.com REST API, v3+
|