qualtrics 0.5.9 → 0.6.0

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: cb4a5a988b49d7a068bfcac1e19da47551f9ac5d
4
- data.tar.gz: db86791a49abd6a23b8b5ce49c628fd17b84f75f
3
+ metadata.gz: 9d2a904a2949091deeca7ce3767804fa303fc9f1
4
+ data.tar.gz: 7267ee130f72423946a688f950a329eafb89e94a
5
5
  SHA512:
6
- metadata.gz: 3da793b95d0a467d05728bd24d7676a3e5f8099ddb1437d4ab83d8709211e8c505dde9f5023251fa19dcb0db86a45742f553cb774f976a0e80866807cc99a02e
7
- data.tar.gz: dff5ff7a291a6db425b48c2c0317328e1f1e35660082f6a5ee065b2b83a817680e6d779dde14167ca38fb38e0bedc68c474d449e6c1177ec8a14f621638908f9
6
+ metadata.gz: 312789a9a387de64ee65633938054e0b2a19909ea73b056c97614594c74d4d62da25cf587bad9ff5f132d110589026f9d103f1204a2118fb3045c0f8d21e4296
7
+ data.tar.gz: 0ded16f030cb49c95d82b7eda232a9f29f05716171c78c0fdbb278d8ee7cbab789f19c5c59290f5a17c9024ed3e111385ffbe7e9d5e5b4fac3a440bd75462d0e
@@ -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 = CSV.parse(@raw_response.body)
39
+ @body = @raw_response.body
40
40
  else
41
41
  raise Qualtrics::UnexpectedContentType, content_type
42
42
  end
@@ -11,7 +11,7 @@ module Qualtrics
11
11
  @time_stamp = options[:time_stamp]
12
12
  end
13
13
 
14
- def csv_result
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
@@ -1,3 +1,3 @@
1
1
  module Qualtrics
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -61,10 +61,10 @@ describe Qualtrics::Response, :vcr do
61
61
  end
62
62
  end
63
63
 
64
- it 'can parse csv' do
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 ([%w(csv stuff)])
67
+ expect(response.result).to eql ('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.9
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sun