survey-gizmo-ruby 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/survey_gizmo/api/answer.rb +5 -1
- data/lib/survey_gizmo/version.rb +1 -1
- data/spec/resource_spec.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17626c322e782a482cef1194e7a44a3ca1de13f6
|
4
|
+
data.tar.gz: 6bc071fa592fedc663945f01772208fe289c30fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d584d0549b1b2755d469cfcb5df01215401673a0b268a5504b664d5af8d0e825280b73793b6725935c255c08b1d942d8d4611c4ca8a6308b5113e6084d57781c
|
7
|
+
data.tar.gz: 599c5a98e9d0724dd58402b2bfbcd5445dad61087f6c1e428656bbb896124c64b823df47010d7395a1aa7cf243185d0118ab6970c515b849ac838792b4ea6f25
|
data/CHANGELOG.md
CHANGED
@@ -27,8 +27,12 @@ module SurveyGizmo::API
|
|
27
27
|
# Option IDs of 0 seem to happen for hidden questions, even when there is answer_text
|
28
28
|
self.option_id = nil
|
29
29
|
end
|
30
|
-
when /\[question\((\d+)\),\s*question_pipe\("?(
|
30
|
+
when /\[question\((\d+)\),\s*question_pipe\("?(.*)"?\)\]/
|
31
31
|
self.question_id, self.question_pipe = $1, $2
|
32
|
+
|
33
|
+
# question_pipe.slice!(0) if question_pipe.starts_with?('"')
|
34
|
+
question_pipe.chop! if question_pipe.ends_with?('"')
|
35
|
+
|
32
36
|
when /\[question\((\d+)\)\]/
|
33
37
|
self.question_id = $1
|
34
38
|
else
|
data/lib/survey_gizmo/version.rb
CHANGED
data/spec/resource_spec.rb
CHANGED
@@ -263,7 +263,8 @@ describe 'Survey Gizmo Resource' do
|
|
263
263
|
# Sometimes surveygizmo only includes the option with the "other" answer. =(
|
264
264
|
'[question(12)]' => 'Other - Please explain',
|
265
265
|
'[question(12), option("10017-other")]' => 'I understood...',
|
266
|
-
'[question(13), option(0)]' => '12345'
|
266
|
+
'[question(13), option(0)]' => '12345',
|
267
|
+
'[question(14), question_pipe(""dérivation" du "ronron" du cerveau")]' => '5 = Extremely important'
|
267
268
|
}
|
268
269
|
end
|
269
270
|
|
@@ -286,7 +287,9 @@ describe 'Survey Gizmo Resource' do
|
|
286
287
|
{ survey_id: 1, question_id: 10, question_pipe: 'Que aplicación', answer_text: '5 = Extremely important' },
|
287
288
|
{ survey_id: 1, question_id: 11, question_pipe: '10527', answer_text: 'This product was too expensive' },
|
288
289
|
{ survey_id: 1, question_id: 12, option_id: 10017, other_text: 'I understood...' },
|
289
|
-
{ survey_id: 1, question_id: 13, answer_text: '12345' }
|
290
|
+
{ survey_id: 1, question_id: 13, answer_text: '12345' },
|
291
|
+
{ survey_id: 1, question_id: 14, question_pipe: '"dérivation" du "ronron" du cerveau', answer_text: '5 = Extremely important' }
|
292
|
+
|
290
293
|
])
|
291
294
|
end
|
292
295
|
end
|