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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e99c0f495a8bbdda92408e8392e5d5b1d5b45458
4
- data.tar.gz: af1e998bae5ba6ec339bf5deee9c62d55bfacdab
3
+ metadata.gz: 17626c322e782a482cef1194e7a44a3ca1de13f6
4
+ data.tar.gz: 6bc071fa592fedc663945f01772208fe289c30fb
5
5
  SHA512:
6
- metadata.gz: 212d6dbff7ed1156c1ede83363ed6be79c33170eecfc5bef38437db5909d1429e6267206e2c0c2b832661ef2b2ca0773ebc05193e3d7d33c37e1609b28a4c664
7
- data.tar.gz: 8ff36651178e6576aa23ff43ef67fa1cd01595d3b34fc6fb83b3d544fafc3df56bab1d4e0046f2afbc8657de6cfe2ae799b0f8aadee40ba79ad221187d42f410
6
+ metadata.gz: d584d0549b1b2755d469cfcb5df01215401673a0b268a5504b664d5af8d0e825280b73793b6725935c255c08b1d942d8d4611c4ca8a6308b5113e6084d57781c
7
+ data.tar.gz: 599c5a98e9d0724dd58402b2bfbcd5445dad61087f6c1e428656bbb896124c64b823df47010d7395a1aa7cf243185d0118ab6970c515b849ac838792b4ea6f25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Versions
2
2
 
3
+ ## 6.3.1
4
+ * Deal with question_pipe quotes
5
+
3
6
  ## 6.3.0
4
7
  * Deprecate `retry_attempts` and `retry_interval` configuration options
5
8
  * Add ability to set the entire `Retriable` hash directly by configuring `retriable_params`
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SurveyGizmo
2
- VERSION = '6.3.0'
2
+ VERSION = '6.3.1'
3
3
  end
@@ -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
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.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kabari Hendrick