qualtrics 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2a904a2949091deeca7ce3767804fa303fc9f1
|
4
|
+
data.tar.gz: 7267ee130f72423946a688f950a329eafb89e94a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312789a9a387de64ee65633938054e0b2a19909ea73b056c97614594c74d4d62da25cf587bad9ff5f132d110589026f9d103f1204a2118fb3045c0f8d21e4296
|
7
|
+
data.tar.gz: 0ded16f030cb49c95d82b7eda232a9f29f05716171c78c0fdbb278d8ee7cbab789f19c5c59290f5a17c9024ed3e111385ffbe7e9d5e5b4fac3a440bd75462d0e
|
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 =
|
39
|
+
@body = @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 raw_csv
|
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.result
|
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 return RAW csv file' 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 ('csv,stuff')
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'can parse json' do
|