browse-everything 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.engine_cart.yml +1 -0
- data/.rubocop.yml +6 -0
- data/.rubocop_todo.yml +8 -32
- data/README.md +2 -1
- data/app/assets/javascripts/browse_everything/behavior.js.coffee +20 -10
- data/app/assets/stylesheets/browse_everything/_browse_everything.scss +15 -16
- data/app/controllers/browse_everything_controller.rb +29 -29
- data/app/views/browse_everything/_files.html.erb +0 -5
- data/app/views/browse_everything/index.html.erb +3 -0
- data/browse-everything.gemspec +1 -1
- data/lib/browse_everything/browser.rb +1 -1
- data/lib/browse_everything/driver/base.rb +8 -8
- data/lib/browse_everything/driver/box.rb +81 -72
- data/lib/browse_everything/driver/dropbox.rb +35 -29
- data/lib/browse_everything/driver/file_system.rb +50 -30
- data/lib/browse_everything/driver/google_drive.rb +15 -15
- data/lib/browse_everything/driver/s3.rb +82 -27
- data/lib/browse_everything/driver/sky_drive.rb +17 -17
- data/lib/browse_everything/version.rb +1 -1
- data/lib/generators/browse_everything/templates/browse_everything_providers.yml.example +5 -4
- data/spec/fixtures/vcr_cassettes/box.yml +498 -0
- data/spec/unit/box_spec.rb +168 -0
- data/spec/unit/s3_spec.rb +62 -5
- metadata +10 -5
@@ -0,0 +1,498 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.box.com/2.0/folders/0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- ATS
|
25
|
+
Date:
|
26
|
+
- Fri, 17 Mar 2017 19:57:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Content-Length:
|
30
|
+
- '2509'
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000; includeSubDomains
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, no-store
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"type":"folder","id":"0","sequence_id":null,"etag":null,"name":"All
|
44
|
+
Files","created_at":null,"modified_at":null,"description":"","size":28747877,"path_collection":{"total_count":0,"entries":[]},"created_by":{"type":"user","id":"","name":"","login":""},"modified_by":{"type":"user","id":"225383863","name":"ADAM
|
45
|
+
GARNER WEAD","login":"agw13@psu.edu"},"trashed_at":null,"purged_at":null,"content_created_at":null,"content_modified_at":null,"owned_by":{"type":"user","id":"225383863","name":"ADAM
|
46
|
+
GARNER WEAD","login":"agw13@psu.edu"},"shared_link":null,"folder_upload_email":null,"parent":null,"item_status":"active","item_collection":{"total_count":13,"entries":[{"type":"folder","id":"20375782799","sequence_id":"0","etag":"0","name":"A
|
47
|
+
very looooooooooooong box folder, why so loooooooong Lets make it even longer
|
48
|
+
to show how far it gets sent to the side"},{"type":"folder","id":"2571160559","sequence_id":"0","etag":"0","name":"Apps
|
49
|
+
Team - Shared"},{"type":"folder","id":"20194542723","sequence_id":"0","etag":"0","name":"DSRD
|
50
|
+
- W Pattee 3"},{"type":"folder","id":"20284062015","sequence_id":"0","etag":"0","name":"My
|
51
|
+
Box Notes"},{"type":"folder","id":"11305958926","sequence_id":"0","etag":"0","name":"PCDM-Sufia"},{"type":"folder","id":"4227519189","sequence_id":"0","etag":"0","name":"refactor"},{"type":"folder","id":"2459961273","sequence_id":"0","etag":"0","name":"SaS
|
52
|
+
- Development Team"},{"type":"folder","id":"3399219062","sequence_id":"0","etag":"0","name":"Scholarsphere
|
53
|
+
- Migration"},{"type":"folder","id":"1168461187","sequence_id":"0","etag":"0","name":"test"},{"type":"folder","id":"3055812547","sequence_id":"0","etag":"0","name":"UX
|
54
|
+
Artifacts"},{"type":"file","id":"25581309763","file_version":{"type":"file_version","id":"23869158869","sha1":"4604bbe44fdcdd4afef3c666cf582e3773960954"},"sequence_id":"1","etag":"1","sha1":"4604bbe44fdcdd4afef3c666cf582e3773960954","name":"failed.tar.gz"},{"type":"file","id":"25588823531","file_version":{"type":"file_version","id":"23877641673","sha1":"abd18ce0a685a27b464fb05f27af5a84f9ec9be7"},"sequence_id":"1","etag":"1","sha1":"abd18ce0a685a27b464fb05f27af5a84f9ec9be7","name":"scholarsphere_5712md360.xml"},{"type":"file","id":"113711622968","file_version":{"type":"file_version","id":"122136107320","sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709"},"sequence_id":"0","etag":"0","sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","name":"test.txt"}],"offset":0,"limit":100,"order":[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Fri, 17 Mar 2017 19:57:47 GMT
|
57
|
+
- request:
|
58
|
+
method: get
|
59
|
+
uri: https://api.box.com/2.0/folders/0/items?fields=name,size,created_at&limit=99999&offset=0
|
60
|
+
body:
|
61
|
+
encoding: US-ASCII
|
62
|
+
string: ''
|
63
|
+
headers:
|
64
|
+
Accept-Encoding:
|
65
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
66
|
+
Accept:
|
67
|
+
- "*/*"
|
68
|
+
User-Agent:
|
69
|
+
- Ruby
|
70
|
+
Authorization:
|
71
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- ATS
|
79
|
+
Date:
|
80
|
+
- Fri, 17 Mar 2017 19:57:48 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
Content-Length:
|
84
|
+
- '1874'
|
85
|
+
Strict-Transport-Security:
|
86
|
+
- max-age=31536000; includeSubDomains
|
87
|
+
Cache-Control:
|
88
|
+
- no-cache, no-store
|
89
|
+
Vary:
|
90
|
+
- Accept-Encoding
|
91
|
+
Age:
|
92
|
+
- '0'
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
body:
|
96
|
+
encoding: UTF-8
|
97
|
+
string: '{"total_count":13,"entries":[{"type":"folder","id":"20375782799","etag":"0","name":"A
|
98
|
+
very looooooooooooong box folder, why so loooooooong Lets make it even longer
|
99
|
+
to show how far it gets sent to the side","size":0,"created_at":"2017-03-01T04:15:15-08:00"},{"type":"folder","id":"2571160559","etag":"0","name":"Apps
|
100
|
+
Team - Shared","size":1249,"created_at":"2014-10-15T13:00:29-07:00"},{"type":"folder","id":"20194542723","etag":"0","name":"DSRD
|
101
|
+
- W Pattee 3","size":2949416,"created_at":"2017-02-27T08:17:21-08:00"},{"type":"folder","id":"20284062015","etag":"0","name":"My
|
102
|
+
Box Notes","size":0,"created_at":"2017-02-28T08:52:26-08:00"},{"type":"folder","id":"11305958926","etag":"0","name":"PCDM-Sufia","size":650658,"created_at":"2016-09-14T09:14:25-07:00"},{"type":"folder","id":"4227519189","etag":"0","name":"refactor","size":8766,"created_at":"2015-08-14T07:53:56-07:00"},{"type":"folder","id":"2459961273","etag":"0","name":"SaS
|
103
|
+
- Development Team","size":152720753,"created_at":"2014-09-17T13:39:31-07:00"},{"type":"folder","id":"3399219062","etag":"0","name":"Scholarsphere
|
104
|
+
- Migration","size":270984,"created_at":"2015-04-07T13:17:51-07:00"},{"type":"folder","id":"1168461187","etag":"0","name":"test","size":20625445557,"created_at":"2013-09-19T12:57:59-07:00"},{"type":"folder","id":"3055812547","etag":"0","name":"UX
|
105
|
+
Artifacts","size":3801994,"created_at":"2015-02-04T08:21:16-08:00"},{"type":"file","id":"25581309763","etag":"1","name":"failed.tar.gz","size":28650839,"created_at":"2015-01-29T05:18:43-08:00"},{"type":"file","id":"25588823531","etag":"1","name":"scholarsphere_5712md360.xml","size":97038,"created_at":"2015-01-29T08:38:44-08:00"},{"type":"file","id":"113711622968","etag":"0","name":"test.txt","size":0,"created_at":"2016-12-20T07:50:30-08:00"}],"offset":0,"limit":1000,"order":[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Fri, 17 Mar 2017 19:57:48 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: https://api.box.com/2.0/folders/2459961273
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
User-Agent:
|
120
|
+
- Ruby
|
121
|
+
Authorization:
|
122
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Server:
|
129
|
+
- ATS
|
130
|
+
Date:
|
131
|
+
- Fri, 17 Mar 2017 19:58:28 GMT
|
132
|
+
Content-Type:
|
133
|
+
- application/json
|
134
|
+
Content-Length:
|
135
|
+
- '4935'
|
136
|
+
Strict-Transport-Security:
|
137
|
+
- max-age=31536000; includeSubDomains
|
138
|
+
Etag:
|
139
|
+
- '"0"'
|
140
|
+
Cache-Control:
|
141
|
+
- no-cache, no-store
|
142
|
+
Vary:
|
143
|
+
- Accept-Encoding
|
144
|
+
Age:
|
145
|
+
- '0'
|
146
|
+
Connection:
|
147
|
+
- keep-alive
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"type":"folder","id":"2459961273","sequence_id":"0","etag":"0","name":"SaS
|
151
|
+
- Development Team","created_at":"2014-09-17T13:39:31-07:00","modified_at":"2017-03-17T08:41:40-07:00","description":"","size":152720753,"path_collection":{"total_count":1,"entries":[{"type":"folder","id":"0","sequence_id":null,"etag":null,"name":"All
|
152
|
+
Files"}]},"created_by":{"type":"user","id":"191882215","name":"Daniel Coughlin","login":"dmc186@psu.edu"},"modified_by":{"type":"user","id":"190902775","name":"CAROLYN
|
153
|
+
A COLE","login":"cam156@psu.edu"},"trashed_at":null,"purged_at":null,"content_created_at":"2014-09-17T13:39:31-07:00","content_modified_at":"2017-03-17T08:41:40-07:00","owned_by":{"type":"user","id":"191882215","name":"Daniel
|
154
|
+
Coughlin","login":"dmc186@psu.edu"},"shared_link":{"url":"https:\/\/psu.box.com\/s\/8hb3e06nthwld39ehlg5","download_url":null,"vanity_url":null,"effective_access":"collaborators","is_password_enabled":false,"unshared_at":null,"download_count":0,"preview_count":0,"access":"collaborators","permissions":{"can_download":true,"can_preview":true}},"folder_upload_email":null,"parent":null,"item_status":"active","item_collection":{"total_count":17,"entries":[{"type":"folder","id":"2459974427","sequence_id":"0","etag":"0","name":"Apps&Int"},{"type":"folder","id":"11217040834","sequence_id":"0","etag":"0","name":"Credentials"},{"type":"folder","id":"5662231069","sequence_id":"0","etag":"0","name":"DevOps
|
155
|
+
Presentation"},{"type":"folder","id":"8648394509","sequence_id":"0","etag":"0","name":"old"},{"type":"folder","id":"12445061821","sequence_id":"0","etag":"0","name":"Ops
|
156
|
+
Plan"},{"type":"file","id":"136917954839","file_version":{"type":"file_version","id":"158227338595","sha1":"2e2124c0d6589dd05d03a854b9c5c3a68bbc4501"},"sequence_id":"17","etag":"17","sha1":"2e2124c0d6589dd05d03a854b9c5c3a68bbc4501","name":"2-17
|
157
|
+
Upcoming ScholarSphere changes.boxnote"},{"type":"file","id":"75228871930","file_version":{"type":"file_version","id":"79668751214","sha1":"43cd4ac728cef7767dc132c26b181133d867d78f"},"sequence_id":"1","etag":"1","sha1":"43cd4ac728cef7767dc132c26b181133d867d78f","name":"99bottles
|
158
|
+
(1).epub"},{"type":"file","id":"72329914177","file_version":{"type":"file_version","id":"76429987577","sha1":"a3310fdad0e6c9654b19d88b35318b8cdc246379"},"sequence_id":"2","etag":"2","sha1":"a3310fdad0e6c9654b19d88b35318b8cdc246379","name":"Development
|
159
|
+
Team Projects and Milestones (not downloaded).xlsx"},{"type":"file","id":"74507436394","file_version":{"type":"file_version","id":"78854145518","sha1":"589ab64efb1ba49537074fd2c56e1570a24a47b5"},"sequence_id":"7","etag":"7","sha1":"589ab64efb1ba49537074fd2c56e1570a24a47b5","name":"Development
|
160
|
+
Team Projects and Milestones - Editable.xlsx"},{"type":"file","id":"72324078305","file_version":{"type":"file_version","id":"76423451525","sha1":"42c0a5a34717cd17e315653643b61d23e94b7cd7"},"sequence_id":"3","etag":"3","sha1":"42c0a5a34717cd17e315653643b61d23e94b7cd7","name":"Development
|
161
|
+
Team Projects and Milestones.xlsx"},{"type":"file","id":"106651625938","file_version":{"type":"file_version","id":"114805197783","sha1":"0c1c90a0186bd3934ce3877e092a228dc1568e93"},"sequence_id":"2","etag":"2","sha1":"0c1c90a0186bd3934ce3877e092a228dc1568e93","name":"Digital
|
162
|
+
Scholarship and Repository Development (DSRD) Org Chart 2016.pdf"},{"type":"file","id":"76960974625","file_version":{"type":"file_version","id":"106919307872","sha1":"74608bfb532feff774502c6132eafe9acb1e5217"},"sequence_id":"162","etag":"162","sha1":"74608bfb532feff774502c6132eafe9acb1e5217","name":"Equipment.boxnote"},{"type":"file","id":"68362464289","file_version":{"type":"file_version","id":"101137863811","sha1":"40a0a3f98926874f1ee62fd522621a4408e0058c"},"sequence_id":"8","etag":"8","sha1":"40a0a3f98926874f1ee62fd522621a4408e0058c","name":"migrationDesign.pptx"},{"type":"file","id":"99028795390","file_version":{"type":"file_version","id":"107183805224","sha1":"7044bd7f0892f915b77b914430c2915161f942d9"},"sequence_id":"37","etag":"37","sha1":"7044bd7f0892f915b77b914430c2915161f942d9","name":"Onboarding.boxnote"},{"type":"file","id":"134865535934","file_version":{"type":"file_version","id":"143971901576","sha1":"32cc33b2cd5cc46f0a3fb924b4779cc387a81018"},"sequence_id":"1","etag":"1","sha1":"32cc33b2cd5cc46f0a3fb924b4779cc387a81018","name":"passenger-test.boxnote"},{"type":"file","id":"92102699797","file_version":{"type":"file_version","id":"98754405909","sha1":"053b762f6d5752c261ef7ff6a3d776853cdb2ca3"},"sequence_id":"1","etag":"1","sha1":"053b762f6d5752c261ef7ff6a3d776853cdb2ca3","name":"sas_development_libraries_mou_2016_08_01.docx"},{"type":"file","id":"22182934895","file_version":{"type":"file_version","id":"50126669941","sha1":"8ca396b5b26ff90d625ea3a49f0cc69ad844476b"},"sequence_id":"41","etag":"41","sha1":"8ca396b5b26ff90d625ea3a49f0cc69ad844476b","name":"TimeBox.xlsx"}],"offset":0,"limit":100,"order":[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Fri, 17 Mar 2017 19:58:28 GMT
|
165
|
+
- request:
|
166
|
+
method: get
|
167
|
+
uri: https://api.box.com/2.0/folders/2459961273/items?fields=name,size,created_at&limit=99999&offset=0
|
168
|
+
body:
|
169
|
+
encoding: US-ASCII
|
170
|
+
string: ''
|
171
|
+
headers:
|
172
|
+
Accept-Encoding:
|
173
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
174
|
+
Accept:
|
175
|
+
- "*/*"
|
176
|
+
User-Agent:
|
177
|
+
- Ruby
|
178
|
+
Authorization:
|
179
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
Server:
|
186
|
+
- ATS
|
187
|
+
Date:
|
188
|
+
- Fri, 17 Mar 2017 19:58:29 GMT
|
189
|
+
Content-Type:
|
190
|
+
- application/json
|
191
|
+
Content-Length:
|
192
|
+
- '2502'
|
193
|
+
Strict-Transport-Security:
|
194
|
+
- max-age=31536000; includeSubDomains
|
195
|
+
Cache-Control:
|
196
|
+
- no-cache, no-store
|
197
|
+
Vary:
|
198
|
+
- Accept-Encoding
|
199
|
+
Age:
|
200
|
+
- '1'
|
201
|
+
Connection:
|
202
|
+
- keep-alive
|
203
|
+
body:
|
204
|
+
encoding: UTF-8
|
205
|
+
string: '{"total_count":17,"entries":[{"type":"folder","id":"2459974427","etag":"0","name":"Apps&Int","size":14341346,"created_at":"2014-09-17T13:42:30-07:00"},{"type":"folder","id":"11217040834","etag":"0","name":"Credentials","size":12603,"created_at":"2016-09-07T08:37:23-07:00"},{"type":"folder","id":"5662231069","etag":"0","name":"DevOps
|
206
|
+
Presentation","size":128158633,"created_at":"2015-12-07T05:51:08-08:00"},{"type":"folder","id":"8648394509","etag":"0","name":"old","size":117232,"created_at":"2016-06-30T08:03:46-07:00"},{"type":"folder","id":"12445061821","etag":"0","name":"Ops
|
207
|
+
Plan","size":6181924,"created_at":"2016-11-17T06:52:58-08:00"},{"type":"file","id":"136917954839","etag":"17","name":"2-17
|
208
|
+
Upcoming ScholarSphere changes.boxnote","size":1768,"created_at":"2017-02-17T09:27:57-08:00"},{"type":"file","id":"75228871930","etag":"1","name":"99bottles
|
209
|
+
(1).epub","size":1013573,"created_at":"2016-07-21T03:53:01-07:00"},{"type":"file","id":"72329914177","etag":"2","name":"Development
|
210
|
+
Team Projects and Milestones (not downloaded).xlsx","size":20812,"created_at":"2016-06-30T09:10:36-07:00"},{"type":"file","id":"74507436394","etag":"7","name":"Development
|
211
|
+
Team Projects and Milestones - Editable.xlsx","size":21001,"created_at":"2016-07-15T11:08:54-07:00"},{"type":"file","id":"72324078305","etag":"3","name":"Development
|
212
|
+
Team Projects and Milestones.xlsx","size":22410,"created_at":"2016-06-30T08:31:56-07:00"},{"type":"file","id":"106651625938","etag":"2","name":"Digital
|
213
|
+
Scholarship and Repository Development (DSRD) Org Chart 2016.pdf","size":17677,"created_at":"2016-11-30T08:27:58-08:00"},{"type":"file","id":"76960974625","etag":"162","name":"Equipment.boxnote","size":10140,"created_at":"2016-08-03T12:22:39-07:00"},{"type":"file","id":"68362464289","etag":"8","name":"migrationDesign.pptx","size":47751,"created_at":"2016-06-03T03:56:54-07:00"},{"type":"file","id":"99028795390","etag":"37","name":"Onboarding.boxnote","size":4465,"created_at":"2016-10-24T11:41:47-07:00"},{"type":"file","id":"134865535934","etag":"1","name":"passenger-test.boxnote","size":4988,"created_at":"2017-02-13T10:47:38-08:00"},{"type":"file","id":"92102699797","etag":"1","name":"sas_development_libraries_mou_2016_08_01.docx","size":134018,"created_at":"2016-08-16T07:32:53-07:00"},{"type":"file","id":"22182934895","etag":"41","name":"TimeBox.xlsx","size":21864,"created_at":"2014-10-23T08:22:16-07:00"}],"offset":0,"limit":1000,"order":[{"by":"type","direction":"ASC"},{"by":"name","direction":"ASC"}]}'
|
214
|
+
http_version:
|
215
|
+
recorded_at: Fri, 17 Mar 2017 19:58:29 GMT
|
216
|
+
- request:
|
217
|
+
method: get
|
218
|
+
uri: https://api.box.com/2.0/files/25581309763
|
219
|
+
body:
|
220
|
+
encoding: US-ASCII
|
221
|
+
string: ''
|
222
|
+
headers:
|
223
|
+
Accept-Encoding:
|
224
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
225
|
+
Accept:
|
226
|
+
- "*/*"
|
227
|
+
User-Agent:
|
228
|
+
- Ruby
|
229
|
+
Authorization:
|
230
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
231
|
+
response:
|
232
|
+
status:
|
233
|
+
code: 200
|
234
|
+
message: OK
|
235
|
+
headers:
|
236
|
+
Server:
|
237
|
+
- ATS
|
238
|
+
Date:
|
239
|
+
- Fri, 17 Mar 2017 19:58:32 GMT
|
240
|
+
Content-Type:
|
241
|
+
- application/json
|
242
|
+
Content-Length:
|
243
|
+
- '1389'
|
244
|
+
Strict-Transport-Security:
|
245
|
+
- max-age=31536000; includeSubDomains
|
246
|
+
Etag:
|
247
|
+
- '"1"'
|
248
|
+
Cache-Control:
|
249
|
+
- no-cache, no-store
|
250
|
+
Vary:
|
251
|
+
- Accept-Encoding
|
252
|
+
Age:
|
253
|
+
- '0'
|
254
|
+
Connection:
|
255
|
+
- keep-alive
|
256
|
+
body:
|
257
|
+
encoding: UTF-8
|
258
|
+
string: '{"type":"file","id":"25581309763","file_version":{"type":"file_version","id":"23869158869","sha1":"4604bbe44fdcdd4afef3c666cf582e3773960954"},"sequence_id":"1","etag":"1","sha1":"4604bbe44fdcdd4afef3c666cf582e3773960954","name":"failed.tar.gz","description":"","size":28650839,"path_collection":{"total_count":1,"entries":[{"type":"folder","id":"0","sequence_id":null,"etag":null,"name":"All
|
259
|
+
Files"}]},"created_at":"2015-01-29T05:18:43-08:00","modified_at":"2015-01-29T05:18:43-08:00","trashed_at":null,"purged_at":null,"content_created_at":"2015-01-17T05:59:48-08:00","content_modified_at":"2015-01-17T06:00:03-08:00","created_by":{"type":"user","id":"225383863","name":"ADAM
|
260
|
+
GARNER WEAD","login":"agw13@psu.edu"},"modified_by":{"type":"user","id":"225383863","name":"ADAM
|
261
|
+
GARNER WEAD","login":"agw13@psu.edu"},"owned_by":{"type":"user","id":"225383863","name":"ADAM
|
262
|
+
GARNER WEAD","login":"agw13@psu.edu"},"shared_link":{"url":"https:\/\/psu.box.com\/s\/w89hg6kf73q8fn1ww51cj92ohb6piyet","download_url":"https:\/\/psu.box.com\/shared\/static\/w89hg6kf73q8fn1ww51cj92ohb6piyet.gz","vanity_url":null,"effective_access":"open","is_password_enabled":false,"unshared_at":null,"download_count":1,"preview_count":0,"access":"open","permissions":{"can_download":true,"can_preview":true}},"parent":{"type":"folder","id":"0","sequence_id":null,"etag":null,"name":"All
|
263
|
+
Files"},"item_status":"active"}'
|
264
|
+
http_version:
|
265
|
+
recorded_at: Fri, 17 Mar 2017 19:58:32 GMT
|
266
|
+
- request:
|
267
|
+
method: get
|
268
|
+
uri: https://api.box.com/2.0/files/25581309763/content
|
269
|
+
body:
|
270
|
+
encoding: US-ASCII
|
271
|
+
string: ''
|
272
|
+
headers:
|
273
|
+
Accept-Encoding:
|
274
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
275
|
+
Accept:
|
276
|
+
- "*/*"
|
277
|
+
User-Agent:
|
278
|
+
- Ruby
|
279
|
+
Authorization:
|
280
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
281
|
+
response:
|
282
|
+
status:
|
283
|
+
code: 302
|
284
|
+
message: Found
|
285
|
+
headers:
|
286
|
+
Server:
|
287
|
+
- ATS
|
288
|
+
Date:
|
289
|
+
- Fri, 17 Mar 2017 19:58:33 GMT
|
290
|
+
Content-Length:
|
291
|
+
- '0'
|
292
|
+
Strict-Transport-Security:
|
293
|
+
- max-age=31536000; includeSubDomains
|
294
|
+
Cache-Control:
|
295
|
+
- no-cache, no-store
|
296
|
+
Location:
|
297
|
+
- https://dl.boxcloud.com/d/1/B7Qd7B_iwPHTU4-71W2qYoTbvAaHCPzNsy5WTFHj5XpbmydlF8ud_0n7Ji7zswdU3Kg0patL8EUXCR3cpPw1PZjp-_a1t6MoH-tX3eQeCAR080Hr-yQaEmLQ8dULnnlOhYHeYwPuRp-0gCcXCF5w3O3bE6ZHgML3SCQchPoJQlsfvcYwXZyPRFEVRNUo7qou5X9dbkMCJGmB0CsvqKTXfEs8bqbmRV4hZ5qpJbD0Jer1m4vsqu8h5VkBdMIcgFMn_D9TheZOrmQdg8ExZZVPJ7X8QjFjI707WwIl7CNYkmocCdAJnbYQljFMiQsp0wF0etUqoiskNnaJBS3NagvtvSKaX3TVfiXa87CHDwPiQ3PNJE32d49eKcBK9nLLigoX3SJOkJqMqUSXO_UAxl0bO0EszCNpaWsiQwWiG2jjB5YBfDwQbmfuSTCBPkhDjIH3S3n5cadk4H_8rvgHshYBXNJd2NshgPsYt1XIkE8qj4WznzwayZoi_2k5x4liFvs2F91anj0bPAW2Mzeyz0Pi49mythoH7Rrq_i0sbYDt3VJNyCB0wqs8xUCa38Z6NocTKrKtFHrNSyM2-g5nWsAIwGeG4L4kZ_qIq8nNL49LsntvpFmhogONBozQQCvoEj0WXqhLCxxwT4U-pZ5rCYDt6dpoNlmYv962wXUzg_s21CO96J1o9-_xKl9JxmbWPf0DDJ35gCBFWMhL6BTaLckbBrybx41luHjjDuv72CxfsqsabdyW2yDN3uoBAcXIXD7QUOACPXKHvC98kL9aXL9o9X-zt89vUP61ijizsjtoI9RQc4CrjerfnxC7jS-ER3w2nwkgOEr1wkdEvq4QabcVlyixgrRxKTmzHXa0JGfmpLdEQ821Sgi7QHOpa0l5CSZTQycnWHoMKn4f_xJo5WZLmkmNgkE2DRsok0xGVUK_lNKjrt_N9mPVAdeeXLjSyoSol2_ugU79ELQSHJKKyTFAEJOscUSseg5MtWrIOLKQY6NlAaE0Ckn7c_LX4MYaSj83F-sZouvwSRNVbTklMNkC6j2fy4kr8_T3eb_9-Df94B1867kSJzt7TjXSAxz_p9PbRuj7eY1NW15zjxtOPQpk/download
|
298
|
+
Vary:
|
299
|
+
- Accept-Encoding
|
300
|
+
Age:
|
301
|
+
- '0'
|
302
|
+
Connection:
|
303
|
+
- keep-alive
|
304
|
+
body:
|
305
|
+
encoding: UTF-8
|
306
|
+
string: ''
|
307
|
+
http_version:
|
308
|
+
recorded_at: Fri, 17 Mar 2017 19:58:33 GMT
|
309
|
+
- request:
|
310
|
+
method: get
|
311
|
+
uri: https://api.box.com/2.0/users/me
|
312
|
+
body:
|
313
|
+
encoding: US-ASCII
|
314
|
+
string: ''
|
315
|
+
headers:
|
316
|
+
Accept-Encoding:
|
317
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
318
|
+
Accept:
|
319
|
+
- "*/*"
|
320
|
+
User-Agent:
|
321
|
+
- Ruby
|
322
|
+
Authorization:
|
323
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
324
|
+
response:
|
325
|
+
status:
|
326
|
+
code: 200
|
327
|
+
message: OK
|
328
|
+
headers:
|
329
|
+
Server:
|
330
|
+
- ATS
|
331
|
+
Date:
|
332
|
+
- Fri, 17 Mar 2017 19:58:37 GMT
|
333
|
+
Content-Type:
|
334
|
+
- application/json
|
335
|
+
Content-Length:
|
336
|
+
- '416'
|
337
|
+
Strict-Transport-Security:
|
338
|
+
- max-age=31536000; includeSubDomains
|
339
|
+
Cache-Control:
|
340
|
+
- no-cache, no-store
|
341
|
+
Vary:
|
342
|
+
- Accept-Encoding
|
343
|
+
Age:
|
344
|
+
- '1'
|
345
|
+
Connection:
|
346
|
+
- keep-alive
|
347
|
+
body:
|
348
|
+
encoding: UTF-8
|
349
|
+
string: '{"type":"user","id":"225383863","name":"ADAM GARNER WEAD","login":"agw13@psu.edu","created_at":"2014-10-09T11:09:02-07:00","modified_at":"2017-03-17T12:39:46-07:00","language":"en","timezone":"America\/New_York","space_amount":1.0e+15,"space_used":28747877,"max_upload_size":16106127360,"status":"active","job_title":"","phone":"","address":"","avatar_url":"https:\/\/psu.app.box.com\/api\/avatar\/large\/225383863"}'
|
350
|
+
http_version:
|
351
|
+
recorded_at: Fri, 17 Mar 2017 19:58:37 GMT
|
352
|
+
- request:
|
353
|
+
method: get
|
354
|
+
uri: https://api.box.com/2.0/files/76960974625
|
355
|
+
body:
|
356
|
+
encoding: US-ASCII
|
357
|
+
string: ''
|
358
|
+
headers:
|
359
|
+
Accept-Encoding:
|
360
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
361
|
+
Accept:
|
362
|
+
- "*/*"
|
363
|
+
User-Agent:
|
364
|
+
- Ruby
|
365
|
+
Authorization:
|
366
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
367
|
+
response:
|
368
|
+
status:
|
369
|
+
code: 200
|
370
|
+
message: OK
|
371
|
+
headers:
|
372
|
+
Server:
|
373
|
+
- ATS
|
374
|
+
Date:
|
375
|
+
- Fri, 17 Mar 2017 19:58:38 GMT
|
376
|
+
Content-Type:
|
377
|
+
- application/json
|
378
|
+
Content-Length:
|
379
|
+
- '1555'
|
380
|
+
Strict-Transport-Security:
|
381
|
+
- max-age=31536000; includeSubDomains
|
382
|
+
Etag:
|
383
|
+
- '"162"'
|
384
|
+
Cache-Control:
|
385
|
+
- no-cache, no-store
|
386
|
+
Vary:
|
387
|
+
- Accept-Encoding
|
388
|
+
Age:
|
389
|
+
- '2'
|
390
|
+
Connection:
|
391
|
+
- keep-alive
|
392
|
+
body:
|
393
|
+
encoding: UTF-8
|
394
|
+
string: '{"type":"file","id":"76960974625","file_version":{"type":"file_version","id":"106919307872","sha1":"74608bfb532feff774502c6132eafe9acb1e5217"},"sequence_id":"162","etag":"162","sha1":"74608bfb532feff774502c6132eafe9acb1e5217","name":"Equipment.boxnote","description":"Listing
|
395
|
+
equipment we currently have","size":10140,"path_collection":{"total_count":2,"entries":[{"type":"folder","id":"0","sequence_id":null,"etag":null,"name":"All
|
396
|
+
Files"},{"type":"folder","id":"2459961273","sequence_id":"0","etag":"0","name":"SaS
|
397
|
+
- Development Team"}]},"created_at":"2016-08-03T12:22:39-07:00","modified_at":"2016-10-26T12:40:09-07:00","trashed_at":null,"purged_at":null,"content_created_at":"2016-08-03T12:22:39-07:00","content_modified_at":"2016-10-26T12:40:09-07:00","created_by":{"type":"user","id":"212771336","name":"NICOLE
|
398
|
+
M. GAMPE","login":"nmg110@psu.edu"},"modified_by":{"type":"user","id":"208208274","name":"JUSTIN
|
399
|
+
R PATTERSON","login":"jrp22@psu.edu"},"owned_by":{"type":"user","id":"191882215","name":"Daniel
|
400
|
+
Coughlin","login":"dmc186@psu.edu"},"shared_link":{"url":"https:\/\/psu.box.com\/s\/uolieeszpwglsv0ipwij9ws36rrepvba","download_url":"https:\/\/psu.box.com\/shared\/static\/uolieeszpwglsv0ipwij9ws36rrepvba.boxnote","vanity_url":null,"effective_access":"open","is_password_enabled":false,"unshared_at":null,"download_count":24,"preview_count":0,"access":"open","permissions":{"can_download":true,"can_preview":true}},"parent":{"type":"folder","id":"2459961273","sequence_id":"0","etag":"0","name":"SaS
|
401
|
+
- Development Team"},"item_status":"active"}'
|
402
|
+
http_version:
|
403
|
+
recorded_at: Fri, 17 Mar 2017 19:58:38 GMT
|
404
|
+
- request:
|
405
|
+
method: get
|
406
|
+
uri: https://api.box.com/2.0/files/76960974625/content
|
407
|
+
body:
|
408
|
+
encoding: US-ASCII
|
409
|
+
string: ''
|
410
|
+
headers:
|
411
|
+
Accept-Encoding:
|
412
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
413
|
+
Accept:
|
414
|
+
- "*/*"
|
415
|
+
User-Agent:
|
416
|
+
- Ruby
|
417
|
+
Authorization:
|
418
|
+
- Bearer J7YeWHavq63VSF1C2jag5qEu3Wvq9hAT
|
419
|
+
response:
|
420
|
+
status:
|
421
|
+
code: 302
|
422
|
+
message: Found
|
423
|
+
headers:
|
424
|
+
Server:
|
425
|
+
- ATS
|
426
|
+
Date:
|
427
|
+
- Fri, 17 Mar 2017 19:58:39 GMT
|
428
|
+
Content-Length:
|
429
|
+
- '0'
|
430
|
+
Strict-Transport-Security:
|
431
|
+
- max-age=31536000; includeSubDomains
|
432
|
+
Cache-Control:
|
433
|
+
- no-cache, no-store
|
434
|
+
Location:
|
435
|
+
- https://dl.boxcloud.com/d/1/lCA2dDrIV1QAvpQLU7_mkJ0bt2Soa1dLRT6FOzmF37EfJgjRmCO-rZ0VFyKCtoHgPzRoCIHgx-IWCoV8cvtfTX4Yw--RmBLBV9f4JsK6i3LMRKQzgDMxsMu97RSmuMagV-GayR8uO6NGFBtoX81yujebVY-JRB7cxhPU0fbCxAzAnv1711_IUs6YXwhWc-rNFHrNjPsUnJLqw0soQPZqF3Q5irxJLu7traVIeoeuGSfhw-7G-qfqu4CIFonC4ktwwh8jMgN9KW712kRg61moLG6Aa6FTbdCCSt_jCwvQFVGqCz_VivfzG2_BHBqh4IhIB76DmF1ISM-jD9VToUwYfscg6BgC2fqGj6OycsuYr3v3EE0gHlPw_X2rJnq9J2M9plnnhqBvXEwoUXDqyGPvSqWBeQvrrTYfvqj7fG48tUr7RKOytc_K0B4aw9hgGUk3EaifSVWzYvXz5oXBp27HFHPsssvIK8fXoSU2J3HCEsGhIDFzu3cvXyPZJV_Co1_LvivWM0AGjXhyoC8PNO5qmtrZFgCob3KlZ8BEI1yJfX_0K8wpocUJP95eBNutBhWa2DEvCK6R5OG-Z0XwrJu8XFRwPcIl3_7lSsIhsQlYA7MoJer7hhwVGAl3kPP-bFsw1et66UM6KHG2FdN2xKP10DYFqR_JrShPP8DQ-ik9-lKej_8LTfiHdf0YbkdMNKzBYlXZsiQNwd3VXdRo1Z4Uhza_XtTDcfH0uxRQyYRecHr-5lEn5iUfV1199GrTsLkcOb9ONNSTFPKW15XCLpgJm6ylSpG2JSZ6zWsGL5hUzdvMytwBCMpIj84UZuwo2RTH1ZDUJYjmHRX11rDnwe2zKMz4woYIA8RjhnYEj6d13BeBz9Fy4GgR90jmM5xHIv9fiAG_b99fpDuYvT-tccN4pdrxPf0P-kCjYAHBt7kY7ToaMWcnOf1nGd-LP0oaCGHhAzN0iurjRTLRi2S4N1hsWxjoMuQqayEq15QhRujy2lTZX_XyBgrU2ZodkNsQUlaWcJ6aFT8bh48DtyQvt_xfm4jqmStageFKbydyoB8BpP6oYFAMeFlkS4A6LnXJCzpO8Q../download
|
436
|
+
Vary:
|
437
|
+
- Accept-Encoding
|
438
|
+
Age:
|
439
|
+
- '2'
|
440
|
+
Connection:
|
441
|
+
- keep-alive
|
442
|
+
body:
|
443
|
+
encoding: UTF-8
|
444
|
+
string: ''
|
445
|
+
http_version:
|
446
|
+
recorded_at: Fri, 17 Mar 2017 19:58:39 GMT
|
447
|
+
- request:
|
448
|
+
method: post
|
449
|
+
uri: https://www.box.com/api/oauth2/token
|
450
|
+
body:
|
451
|
+
encoding: UTF-8
|
452
|
+
string: client_id=CLIENT_ID&client_secret=CLIENT_SECRET&grant_type=refresh_token&refresh_token=REFRESH_TOKEN
|
453
|
+
headers:
|
454
|
+
User-Agent:
|
455
|
+
- Faraday v0.11.0
|
456
|
+
Content-Type:
|
457
|
+
- application/x-www-form-urlencoded
|
458
|
+
Accept-Encoding:
|
459
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
460
|
+
Accept:
|
461
|
+
- "*/*"
|
462
|
+
response:
|
463
|
+
status:
|
464
|
+
code: 200
|
465
|
+
message: OK
|
466
|
+
headers:
|
467
|
+
Server:
|
468
|
+
- ATS
|
469
|
+
Date:
|
470
|
+
- Wed, 22 Mar 2017 18:05:41 GMT
|
471
|
+
Content-Type:
|
472
|
+
- application/json
|
473
|
+
Cache-Control:
|
474
|
+
- no-store
|
475
|
+
Strict-Transport-Security:
|
476
|
+
- max-age=31536000; includeSubDomains
|
477
|
+
Vary:
|
478
|
+
- Accept-Encoding
|
479
|
+
Set-Cookie:
|
480
|
+
- box_visitor_id=58d2bcf56e5c44.59181452; expires=Thu, 22-Mar-2018 18:05:41
|
481
|
+
GMT; Max-Age=31536000; path=/; domain=.box.com; secure
|
482
|
+
- bv=OPS-41659; expires=Wed, 29-Mar-2017 18:05:41 GMT; Max-Age=604800; path=/;
|
483
|
+
domain=.app.box.com; secure
|
484
|
+
- cn=64; expires=Thu, 22-Mar-2018 18:05:41 GMT; Max-Age=31536000; path=/; domain=.app.box.com;
|
485
|
+
secure
|
486
|
+
- site_preference=desktop; path=/; domain=.box.com; secure
|
487
|
+
Age:
|
488
|
+
- '0'
|
489
|
+
Transfer-Encoding:
|
490
|
+
- chunked
|
491
|
+
Connection:
|
492
|
+
- keep-alive
|
493
|
+
body:
|
494
|
+
encoding: UTF-8
|
495
|
+
string: '{"access_token":"TOKEN","expires_in":3762,"restricted_to":[],"refresh_token":"REFRESH_TOKEN","token_type":"bearer"}'
|
496
|
+
http_version:
|
497
|
+
recorded_at: Wed, 22 Mar 2017 18:05:42 GMT
|
498
|
+
recorded_with: VCR 3.0.3
|