qualtrics_api 0.0.11 → 0.0.12

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: 79a66f0df860f75c6181490b7d6c241b509b0ff8
4
- data.tar.gz: 34a1db85f28e9ec0bb583b581dba1f6ab1078cad
3
+ metadata.gz: 26c645c6b30708db2df58ac9fb159e8d410b7d2c
4
+ data.tar.gz: 89736d0fc13cccea475be66fd4efa6c6d81b3586
5
5
  SHA512:
6
- metadata.gz: f5d214fac45c117c0b06071309d7546bee2075cce098d51b8f1532da7e775a671f7a29ac8a8a544d4387bc73e268218f38cc64353e0039b8463bc23d3b03fd08
7
- data.tar.gz: 0d3e12210c810d3d6fd3ecb3a2b1784001002da1339a68b5cb0ee22b3c7de28115f9a1e8a4c1e88a393640ccc7046ee3c894b5925eeb04fbf82390243902cf13
6
+ metadata.gz: 7c40df9c3887183692f35e72bbae0c164b757a8bfeb51a8de9174e17a75d6eae257fbfca0a5010c9ff3bc529c405c072c10fedc7123c85682721a21d60bffa6f
7
+ data.tar.gz: b71e77dff22d56755a9c12fad493176bb7db9de39ffca27af3ae0b8cb1e8e239fbf4226d3aa06ab45907e07b4ecb61a5b7a08291a54f37318f30aec65fac057e
data/README.md CHANGED
@@ -114,7 +114,12 @@ export.completed?
114
114
  Once it's finished, you can get the response file URL:
115
115
  ```ruby
116
116
  export.file_url
117
- # => "https://some.amazon.s3.com/file/path?withTimeStamps=AndOtherStuff"
117
+ # => "https://co1.qualtrics.com/API/v3/responseexports/ES_id/file"
118
+ ```
119
+
120
+ and download the file:
121
+ ```ruby
122
+ export.open # creates an IO object connected to the given stream
118
123
  ```
119
124
 
120
125
  #### Checking status on a previous response export
@@ -30,5 +30,9 @@ module QualtricsAPI
30
30
  update_status unless completed?
31
31
  @file_url
32
32
  end
33
+
34
+ def open(&block)
35
+ Kernel.open(@file_url, QualtricsAPI.connection(self).headers, &block)
36
+ end
33
37
  end
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module QualtricsAPI
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qualtrics_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yurui Zhang
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-04-29 00:00:00.000000000 Z
13
+ date: 2016-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday