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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cb86b17ad4df98b53f62938a574cdaba03d0da4
4
- data.tar.gz: d60141972b9b4674b5e605a82e3d231b23bbc735
3
+ metadata.gz: d64a92def211dfa2973dcf28108a0e1f5f1b9d8f
4
+ data.tar.gz: 232115207e4e7462fc8d8394840eea2aa0fba3f6
5
5
  SHA512:
6
- metadata.gz: 9074284af8640bacd314a35979ca60d29236e9da2e23f93771ad398362f797fdac6e151af094f7853c9a6e54f59eb8bc2b4f0b30fde4267b363cf418ba519b05
7
- data.tar.gz: 7224db31f46c7bfb40c95483f1f7d8efffb7c9610d6bc1026f2ed4daffe0a1a64478b4af4dbd2c0ca43f3c75518d81035b860482c1cbd76c301dee6c16394d47
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]).each do |data_item|
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 @_data.nil?
314
+ end unless items.blank?
314
315
  end
315
316
  end
316
317
 
@@ -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.4"
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
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: 2014-10-20 00:00:00.000000000 Z
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: