survey-gizmo-ruby 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/survey_gizmo/resource.rb +3 -2
- data/survey-gizmo-ruby.gemspec +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: d64a92def211dfa2973dcf28108a0e1f5f1b9d8f
|
4
|
+
data.tar.gz: 232115207e4e7462fc8d8394840eea2aa0fba3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f089bc8915e0158e621392f3d2d748ee3ef42dc4fc98d892e7994e3cf488079de72c897fb809f8d683cca52f8e983aaf8d7c4d4c5ad9c9cd6ce4adf5906d889e
|
7
|
+
data.tar.gz: 5ec0d6f45dd3071e27dcbc646daba605b053f7443d0ea1f8cb33e354555c7508473ded774bfb71a1ea10c918c106531b95336432b1562ba2ba436d24e34cee7d
|
@@ -290,7 +290,8 @@ module SurveyGizmo
|
|
290
290
|
@_data = @response['data']
|
291
291
|
|
292
292
|
# Handle really crappy [] notation in SG API, so far just in SurveyResponse
|
293
|
-
(@_data.is_a?(Array) ? @_data : [@_data]).
|
293
|
+
items = (@_data.is_a?(Array) ? @_data : [@_data]).compact
|
294
|
+
items.each do |data_item|
|
294
295
|
data_item.keys.grep(/^\[/).each do |key|
|
295
296
|
next if data_item[key].nil? || data_item[key].length == 0
|
296
297
|
|
@@ -310,7 +311,7 @@ module SurveyGizmo
|
|
310
311
|
|
311
312
|
data_item.delete(key)
|
312
313
|
end
|
313
|
-
end unless
|
314
|
+
end unless items.blank?
|
314
315
|
end
|
315
316
|
end
|
316
317
|
|
data/survey-gizmo-ruby.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "survey-gizmo-ruby"
|
7
|
-
gem.version = "1.0.
|
7
|
+
gem.version = "1.0.5"
|
8
8
|
gem.authors = ["Kabari Hendrick", "Chris Horn", "Adrien Jarthon"]
|
9
9
|
gem.email = ["adrien.jarthon@dimelo.com"]
|
10
10
|
gem.description = "Gem to use the SurveyGizmo.com REST API, v3+"
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kabari Hendrick
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -196,3 +196,4 @@ test_files:
|
|
196
196
|
- spec/test_json/page.json
|
197
197
|
- spec/test_json/question.json
|
198
198
|
- spec/test_json/survey.json
|
199
|
+
has_rdoc:
|