qualtrics 0.5.9b → 0.5.9
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/lib/qualtrics/response.rb +1 -1
- data/lib/qualtrics/submission.rb +2 -2
- data/lib/qualtrics/version.rb +1 -1
- data/spec/qualtrics/response_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb4a5a988b49d7a068bfcac1e19da47551f9ac5d
|
4
|
+
data.tar.gz: db86791a49abd6a23b8b5ce49c628fd17b84f75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3da793b95d0a467d05728bd24d7676a3e5f8099ddb1437d4ab83d8709211e8c505dde9f5023251fa19dcb0db86a45742f553cb774f976a0e80866807cc99a02e
|
7
|
+
data.tar.gz: dff5ff7a291a6db425b48c2c0317328e1f1e35660082f6a5ee065b2b83a817680e6d779dde14167ca38fb38e0bedc68c474d449e6c1177ec8a14f621638908f9
|
data/lib/qualtrics/response.rb
CHANGED
@@ -36,7 +36,7 @@ module Qualtrics
|
|
36
36
|
elsif content_type == 'application/json'
|
37
37
|
@body = JSON.parse(@raw_response.body)
|
38
38
|
elsif content_type == 'application/vnd.msexcel'
|
39
|
-
@body = @raw_response.body
|
39
|
+
@body = CSV.parse(@raw_response.body)
|
40
40
|
else
|
41
41
|
raise Qualtrics::UnexpectedContentType, content_type
|
42
42
|
end
|
data/lib/qualtrics/submission.rb
CHANGED
@@ -11,7 +11,7 @@ module Qualtrics
|
|
11
11
|
@time_stamp = options[:time_stamp]
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def csv_result
|
15
15
|
response = get('getLegacyResponseData', {
|
16
16
|
'SurveyID' => survey_id,
|
17
17
|
'ResponseID' => id,
|
@@ -20,7 +20,7 @@ module Qualtrics
|
|
20
20
|
})
|
21
21
|
|
22
22
|
if response.status == 200
|
23
|
-
response
|
23
|
+
response
|
24
24
|
else
|
25
25
|
false
|
26
26
|
end
|
data/lib/qualtrics/version.rb
CHANGED
@@ -61,10 +61,10 @@ describe Qualtrics::Response, :vcr do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
it 'can
|
64
|
+
it 'can parse csv' do
|
65
65
|
raw_response = content_endpoints.get('/csv_response')
|
66
66
|
response = Qualtrics::Response.new(raw_response)
|
67
|
-
expect(response.result).to eql (
|
67
|
+
expect(response.result).to eql ([%w(csv stuff)])
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'can parse json' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qualtrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sun
|
@@ -260,9 +260,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
260
|
version: '0'
|
261
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
262
|
requirements:
|
263
|
-
- - "
|
263
|
+
- - ">="
|
264
264
|
- !ruby/object:Gem::Version
|
265
|
-
version:
|
265
|
+
version: '0'
|
266
266
|
requirements: []
|
267
267
|
rubyforge_project:
|
268
268
|
rubygems_version: 2.4.6
|