uploadcare-rails 1.2.0.pre.alpha → 1.2.0.pre.alpha3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +5 -5
  2. data/lib/uploadcare-rails.rb +9 -2
  3. data/lib/uploadcare/rails/version.rb +1 -1
  4. data/spec/cassettes/Uploadcare_Rails_File/should_load_itself.yml +263 -0
  5. data/spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml +263 -0
  6. data/spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml +263 -0
  7. data/spec/cassettes/group_cahsing_file_load.yml +263 -0
  8. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml +1763 -0
  9. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml +543 -0
  10. data/spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml +679 -0
  11. data/spec/cassettes/has_uploadcare_group_save.yml +705 -0
  12. data/spec/cassettes/load_group.yml +263 -0
  13. data/spec/dummy/db/test.sqlite3 +0 -0
  14. data/spec/dummy/log/development.log +0 -0
  15. data/spec/dummy/log/test.log +3276 -0
  16. data/spec/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F +0 -0
  17. data/spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F +0 -0
  18. data/spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F +0 -0
  19. data/spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F +0 -0
  20. data/spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F +0 -0
  21. data/spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F +0 -0
  22. data/spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F +0 -0
  23. data/spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F +0 -0
  24. data/spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F +0 -0
  25. data/spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F +0 -0
  26. data/spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F +0 -0
  27. data/spec/tmp/config/uploadcare.yml +71 -0
  28. data/spec/uploadcare_rails_settings_spec.rb +8 -2
  29. metadata +130 -83
  30. data/spec/dummy/app/assets/javascripts/uploadcare-1.5.5.min.js +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 896ec76d404866f21deb1e937fdde44e4f0bbeec
4
- data.tar.gz: 4613d44e4227c5ac26fc668f4f9412b2612a61f5
2
+ SHA256:
3
+ metadata.gz: 7292dec43ac2d5199f054ad073d5dabd7033a24e85e4cfa33952bf302de6b6fa
4
+ data.tar.gz: a7c9434cf6f436cbe3b17a1db8f81df6465134c47d8df22f32586f07539114a7
5
5
  SHA512:
6
- metadata.gz: 6f51a4a9c6fcbdcbabf770c9b018224af1b64e11d68d0f1e1d3d48f2b9498e69070aaa772503047f1f10908c87287d21b08929f3e364e4d7ebc328a8e90e1b22
7
- data.tar.gz: 4ed3c7e3a34ca7da54da9bd5176308e24d2409e395f7e6913b1373a7cbe82c3413407e0efa47b855fb777236c9cc238c606c79ee65b19fbb40616352c9594534
6
+ metadata.gz: 4a5753967e2ab5749e2c824f18ed91c6e16cf743dd96f39ec2414cfc9b883610e733793b64ee37c684c1cb0e2b74f5f4be692dfc28f079ce9ba51c145ba07582
7
+ data.tar.gz: 6d0299c1278cc42e2ad47bebda40e79719e0efca580390a172367429a0949a4f56be8fbbe9df61ead3d624fe069fbdf1495d68fe6e12c5c53405b3f8654f2ce5
@@ -1,5 +1,6 @@
1
1
  require 'uploadcare'
2
2
 
3
+ require_relative 'uploadcare/rails/version'
3
4
  require_relative 'uploadcare/rails/engine'
4
5
  require_relative 'uploadcare/rails/settings'
5
6
  require_relative 'uploadcare/rails/operations'
@@ -9,7 +10,13 @@ require_relative 'uploadcare/rails/objects/group'
9
10
  module Uploadcare
10
11
  module Rails
11
12
  DEFAULT_SETTINGS = {
12
- widget_version: '3.x'
13
- }
13
+ widget_version: '3.x',
14
+ user_agent_environment: {
15
+ framework_name: 'Rails',
16
+ framework_version: ::Rails.version,
17
+ extension_name: 'UploadcareRails',
18
+ extension_version: Uploadcare::Rails::VERSION
19
+ }
20
+ }.freeze
14
21
  end
15
22
  end
@@ -1,5 +1,5 @@
1
1
  module Uploadcare
2
2
  module Rails
3
- VERSION = '1.2.0-alpha'.freeze
3
+ VERSION = '1.2.0-alpha3'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,263 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.uploadcare.com/files/913a5ee4-123c-4076-bc66-3ff5a3966ac0/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.uploadcare-v0.3+json
12
+ User-Agent:
13
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
14
+ Date:
15
+ - Sat, 21 Oct 2017 13:40:36 -0000
16
+ Authorization:
17
+ - Uploadcare demopublickey:2b431797ef380a14b845622726f6194aba94d513
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Sat, 21 Oct 2017 13:40:36 GMT
27
+ Content-Type:
28
+ - application/vnd.uploadcare-v0.3+json
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ Vary:
40
+ - Accept
41
+ Warning:
42
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
43
+ version 0.5, not 0.3'
44
+ Allow:
45
+ - GET, DELETE, HEAD, OPTIONS
46
+ Access-Control-Allow-Origin:
47
+ - https://uploadcare.com
48
+ X-Frame-Options:
49
+ - DENY
50
+ body:
51
+ encoding: UTF-8
52
+ string: '{"uuid":"913a5ee4-123c-4076-bc66-3ff5a3966ac0","original_file_url":null,"image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":null,"mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/913a5ee4-123c-4076-bc66-3ff5a3966ac0/","original_filename":"view.png","datetime_uploaded":"2017-10-21T13:40:26.646680Z","size":2785,"is_image":true,"datetime_removed":"2017-10-21T13:40:33.349320Z","source":null,"variations":null}'
53
+ http_version:
54
+ recorded_at: Sat, 21 Oct 2017 13:40:36 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://api.uploadcare.com/files/f6536fd7-fc46-4563-ba22-89062c277b5d/
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - application/vnd.uploadcare-v0.3+json
64
+ User-Agent:
65
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
66
+ Date:
67
+ - Sun, 05 Nov 2017 09:23:09 -0000
68
+ Authorization:
69
+ - Uploadcare demopublickey:c52fc36c7b7cf983b0c0843f6077bef8231798d5
70
+ Accept-Encoding:
71
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
+ response:
73
+ status:
74
+ code: 200
75
+ message: OK
76
+ headers:
77
+ Date:
78
+ - Sun, 05 Nov 2017 09:23:09 GMT
79
+ Content-Type:
80
+ - application/vnd.uploadcare-v0.3+json
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ Server:
86
+ - nginx
87
+ X-Xss-Protection:
88
+ - 1; mode=block
89
+ X-Content-Type-Options:
90
+ - nosniff
91
+ Vary:
92
+ - Accept
93
+ Warning:
94
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
95
+ version 0.5, not 0.3'
96
+ Allow:
97
+ - GET, DELETE, HEAD, OPTIONS
98
+ Access-Control-Allow-Origin:
99
+ - https://uploadcare.com
100
+ X-Frame-Options:
101
+ - DENY
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"uuid":"f6536fd7-fc46-4563-ba22-89062c277b5d","original_file_url":null,"image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":null,"mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/f6536fd7-fc46-4563-ba22-89062c277b5d/","original_filename":"view.png","datetime_uploaded":"2017-11-05T09:22:56.619173Z","size":2785,"is_image":true,"datetime_removed":"2017-11-05T09:23:06.067445Z","source":null,"variations":null}'
105
+ http_version:
106
+ recorded_at: Sun, 05 Nov 2017 09:23:09 GMT
107
+ - request:
108
+ method: get
109
+ uri: https://api.uploadcare.com/files/6209544c-49f0-4520-ae7b-ebbd8cdd6891/
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ''
113
+ headers:
114
+ Accept:
115
+ - application/vnd.uploadcare-v0.3+json
116
+ User-Agent:
117
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha)
118
+ Date:
119
+ - Fri, 25 May 2018 07:14:44 -0000
120
+ Authorization:
121
+ - Uploadcare demopublickey:1fdb87d976eab62bb43674807b4b85c92816d5df
122
+ Accept-Encoding:
123
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
124
+ response:
125
+ status:
126
+ code: 200
127
+ message: OK
128
+ headers:
129
+ Date:
130
+ - Fri, 25 May 2018 07:14:45 GMT
131
+ Content-Type:
132
+ - application/vnd.uploadcare-v0.3+json
133
+ Content-Length:
134
+ - '516'
135
+ Connection:
136
+ - keep-alive
137
+ Server:
138
+ - nginx
139
+ X-Xss-Protection:
140
+ - 1; mode=block
141
+ X-Content-Type-Options:
142
+ - nosniff
143
+ Vary:
144
+ - Accept
145
+ Warning:
146
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
147
+ version 0.5, not 0.3'
148
+ Allow:
149
+ - GET, DELETE, HEAD, OPTIONS
150
+ Access-Control-Allow-Origin:
151
+ - https://uploadcare.com
152
+ X-Frame-Options:
153
+ - SAMEORIGIN
154
+ body:
155
+ encoding: UTF-8
156
+ string: '{"datetime_removed":"2018-05-25T07:14:23.155927Z","datetime_stored":null,"datetime_uploaded":"2018-05-25T07:13:48.778491Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":null,"original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/6209544c-49f0-4520-ae7b-ebbd8cdd6891/","uuid":"6209544c-49f0-4520-ae7b-ebbd8cdd6891","source":null}'
157
+ http_version:
158
+ recorded_at: Fri, 25 May 2018 07:14:45 GMT
159
+ - request:
160
+ method: get
161
+ uri: https://api.uploadcare.com/files/b22b9b14-52ee-4642-aa8a-6149b29f9b5a/
162
+ body:
163
+ encoding: US-ASCII
164
+ string: ''
165
+ headers:
166
+ Accept:
167
+ - application/vnd.uploadcare-v0.3+json
168
+ User-Agent:
169
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
170
+ Date:
171
+ - Fri, 25 May 2018 09:12:12 -0000
172
+ Authorization:
173
+ - Uploadcare demopublickey:c8bfd7020ba559099a7b1dc995cb9ca52df7e71d
174
+ Accept-Encoding:
175
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
176
+ response:
177
+ status:
178
+ code: 200
179
+ message: OK
180
+ headers:
181
+ Date:
182
+ - Fri, 25 May 2018 09:12:15 GMT
183
+ Content-Type:
184
+ - application/vnd.uploadcare-v0.3+json
185
+ Content-Length:
186
+ - '516'
187
+ Connection:
188
+ - keep-alive
189
+ Server:
190
+ - nginx
191
+ X-Xss-Protection:
192
+ - 1; mode=block
193
+ X-Content-Type-Options:
194
+ - nosniff
195
+ Vary:
196
+ - Accept
197
+ Warning:
198
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
199
+ version 0.5, not 0.3'
200
+ Allow:
201
+ - GET, DELETE, HEAD, OPTIONS
202
+ Access-Control-Allow-Origin:
203
+ - https://uploadcare.com
204
+ X-Frame-Options:
205
+ - SAMEORIGIN
206
+ body:
207
+ encoding: UTF-8
208
+ string: '{"datetime_removed":"2018-05-25T09:12:11.079297Z","datetime_stored":null,"datetime_uploaded":"2018-05-25T09:11:53.254485Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":null,"original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/b22b9b14-52ee-4642-aa8a-6149b29f9b5a/","uuid":"b22b9b14-52ee-4642-aa8a-6149b29f9b5a","source":null}'
209
+ http_version:
210
+ recorded_at: Fri, 25 May 2018 09:12:13 GMT
211
+ - request:
212
+ method: get
213
+ uri: https://api.uploadcare.com/files/d3595e70-e488-451c-a21b-11424cea46d2/
214
+ body:
215
+ encoding: US-ASCII
216
+ string: ''
217
+ headers:
218
+ Accept:
219
+ - application/vnd.uploadcare-v0.3+json
220
+ User-Agent:
221
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha2)
222
+ Date:
223
+ - Mon, 28 May 2018 19:05:25 -0000
224
+ Authorization:
225
+ - Uploadcare demopublickey:5530fd722d2ad072b78485e1a1e0cae19582310b
226
+ Accept-Encoding:
227
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
228
+ response:
229
+ status:
230
+ code: 200
231
+ message: OK
232
+ headers:
233
+ Date:
234
+ - Mon, 28 May 2018 19:05:27 GMT
235
+ Content-Type:
236
+ - application/vnd.uploadcare-v0.3+json
237
+ Content-Length:
238
+ - '516'
239
+ Connection:
240
+ - keep-alive
241
+ Server:
242
+ - nginx
243
+ X-Xss-Protection:
244
+ - 1; mode=block
245
+ X-Content-Type-Options:
246
+ - nosniff
247
+ Vary:
248
+ - Accept
249
+ Warning:
250
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
251
+ version 0.5, not 0.3'
252
+ Allow:
253
+ - GET, DELETE, HEAD, OPTIONS
254
+ Access-Control-Allow-Origin:
255
+ - https://uploadcare.com
256
+ X-Frame-Options:
257
+ - SAMEORIGIN
258
+ body:
259
+ encoding: UTF-8
260
+ string: '{"datetime_removed":"2018-05-28T19:05:16.266562Z","datetime_stored":null,"datetime_uploaded":"2018-05-28T19:04:57.151416Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":null,"original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/d3595e70-e488-451c-a21b-11424cea46d2/","uuid":"d3595e70-e488-451c-a21b-11424cea46d2","source":null}'
261
+ http_version:
262
+ recorded_at: Mon, 28 May 2018 19:05:27 GMT
263
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,263 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.uploadcare.com/groups/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.uploadcare-v0.3+json
12
+ User-Agent:
13
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
14
+ Date:
15
+ - Sat, 21 Oct 2017 13:40:30 -0000
16
+ Authorization:
17
+ - Uploadcare demopublickey:6d0e6e7e807fe6028034b8af440ef04f6be9afc5
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Sat, 21 Oct 2017 13:40:30 GMT
27
+ Content-Type:
28
+ - application/vnd.uploadcare-v0.3+json
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ Vary:
40
+ - Accept
41
+ Warning:
42
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
43
+ version 0.5, not 0.3'
44
+ Allow:
45
+ - GET, HEAD, OPTIONS
46
+ Access-Control-Allow-Origin:
47
+ - https://uploadcare.com
48
+ X-Frame-Options:
49
+ - DENY
50
+ body:
51
+ encoding: UTF-8
52
+ string: '{"id":"a1b1bb40-bd89-4f9c-b809-e84920f24a01~2","datetime_created":"2017-10-21T13:40:29.035828Z","datetime_stored":null,"files_count":2,"cdn_url":"http://www.ucarecdn.com/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/","url":"https://api.uploadcare.com/groups/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/","files":[{"uuid":"83ce550d-f67e-4c1a-a4da-3d550224a8a5","original_file_url":"https://ucarecdn.com/83ce550d-f67e-4c1a-a4da-3d550224a8a5/view2.jpg","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"datetime_stored":null,"mime_type":"image/jpeg","is_ready":true,"url":"https://api.uploadcare.com/files/83ce550d-f67e-4c1a-a4da-3d550224a8a5/","original_filename":"view2.jpg","datetime_uploaded":"2017-10-21T13:40:28.343956Z","size":255570,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""},{"uuid":"8bd4d6b5-e844-42a7-b2b1-8814aa4ca713","original_file_url":"https://ucarecdn.com/8bd4d6b5-e844-42a7-b2b1-8814aa4ca713/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":null,"mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/8bd4d6b5-e844-42a7-b2b1-8814aa4ca713/","original_filename":"view.png","datetime_uploaded":"2017-10-21T13:40:28.362231Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""}]}'
53
+ http_version:
54
+ recorded_at: Sat, 21 Oct 2017 13:40:30 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://api.uploadcare.com/groups/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - application/vnd.uploadcare-v0.3+json
64
+ User-Agent:
65
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
66
+ Date:
67
+ - Sun, 05 Nov 2017 09:23:00 -0000
68
+ Authorization:
69
+ - Uploadcare demopublickey:204c039fd808e229e224f6950f750550f4962bf7
70
+ Accept-Encoding:
71
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
+ response:
73
+ status:
74
+ code: 200
75
+ message: OK
76
+ headers:
77
+ Date:
78
+ - Sun, 05 Nov 2017 09:23:01 GMT
79
+ Content-Type:
80
+ - application/vnd.uploadcare-v0.3+json
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ Server:
86
+ - nginx
87
+ X-Xss-Protection:
88
+ - 1; mode=block
89
+ X-Content-Type-Options:
90
+ - nosniff
91
+ Vary:
92
+ - Accept
93
+ Warning:
94
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
95
+ version 0.5, not 0.3'
96
+ Allow:
97
+ - GET, HEAD, OPTIONS
98
+ Access-Control-Allow-Origin:
99
+ - https://uploadcare.com
100
+ X-Frame-Options:
101
+ - DENY
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"id":"d6c785a8-9761-4602-88de-65ddb04ddc6a~2","datetime_created":"2017-11-05T09:22:59.302130Z","datetime_stored":null,"files_count":2,"cdn_url":"http://www.ucarecdn.com/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/","url":"https://api.uploadcare.com/groups/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/","files":[{"uuid":"0b37b745-6637-49a1-9c00-3d8281a383e3","original_file_url":"https://ucarecdn.com/0b37b745-6637-49a1-9c00-3d8281a383e3/view2.jpg","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"datetime_stored":null,"mime_type":"image/jpeg","is_ready":true,"url":"https://api.uploadcare.com/files/0b37b745-6637-49a1-9c00-3d8281a383e3/","original_filename":"view2.jpg","datetime_uploaded":"2017-11-05T09:22:58.509252Z","size":255570,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""},{"uuid":"f839e2df-ddf8-4c10-9e7d-5a0777eddc93","original_file_url":"https://ucarecdn.com/f839e2df-ddf8-4c10-9e7d-5a0777eddc93/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":null,"mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/f839e2df-ddf8-4c10-9e7d-5a0777eddc93/","original_filename":"view.png","datetime_uploaded":"2017-11-05T09:22:58.526374Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""}]}'
105
+ http_version:
106
+ recorded_at: Sun, 05 Nov 2017 09:23:01 GMT
107
+ - request:
108
+ method: get
109
+ uri: https://api.uploadcare.com/groups/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ''
113
+ headers:
114
+ Accept:
115
+ - application/vnd.uploadcare-v0.3+json
116
+ User-Agent:
117
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha)
118
+ Date:
119
+ - Fri, 25 May 2018 07:14:00 -0000
120
+ Authorization:
121
+ - Uploadcare demopublickey:059f38e8b28ab5997938d5d49f490a2d94db9edf
122
+ Accept-Encoding:
123
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
124
+ response:
125
+ status:
126
+ code: 200
127
+ message: OK
128
+ headers:
129
+ Date:
130
+ - Fri, 25 May 2018 07:14:01 GMT
131
+ Content-Type:
132
+ - application/vnd.uploadcare-v0.3+json
133
+ Content-Length:
134
+ - '1461'
135
+ Connection:
136
+ - keep-alive
137
+ Server:
138
+ - nginx
139
+ X-Xss-Protection:
140
+ - 1; mode=block
141
+ X-Content-Type-Options:
142
+ - nosniff
143
+ Vary:
144
+ - Accept
145
+ Warning:
146
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
147
+ version 0.5, not 0.3'
148
+ Allow:
149
+ - GET, HEAD, OPTIONS
150
+ Access-Control-Allow-Origin:
151
+ - https://uploadcare.com
152
+ X-Frame-Options:
153
+ - SAMEORIGIN
154
+ body:
155
+ encoding: UTF-8
156
+ string: '{"id":"73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2","datetime_created":"2018-05-25T07:13:58.345080Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/","url":"https://api.uploadcare.com/groups/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-25T07:13:56.295620Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/dbda04e6-c45c-454e-8e6d-443e2c92e781/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/dbda04e6-c45c-454e-8e6d-443e2c92e781/","uuid":"dbda04e6-c45c-454e-8e6d-443e2c92e781","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-25T07:13:56.319714Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/d684a061-1bce-49cc-ab60-f60650246516/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/d684a061-1bce-49cc-ab60-f60650246516/","uuid":"d684a061-1bce-49cc-ab60-f60650246516","source":null,"default_effects":""}]}'
157
+ http_version:
158
+ recorded_at: Fri, 25 May 2018 07:14:01 GMT
159
+ - request:
160
+ method: get
161
+ uri: https://api.uploadcare.com/groups/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/
162
+ body:
163
+ encoding: US-ASCII
164
+ string: ''
165
+ headers:
166
+ Accept:
167
+ - application/vnd.uploadcare-v0.3+json
168
+ User-Agent:
169
+ - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
170
+ Date:
171
+ - Fri, 25 May 2018 09:11:57 -0000
172
+ Authorization:
173
+ - Uploadcare demopublickey:549fdba0e4940af8b12cadead1c59eb107321140
174
+ Accept-Encoding:
175
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
176
+ response:
177
+ status:
178
+ code: 200
179
+ message: OK
180
+ headers:
181
+ Date:
182
+ - Fri, 25 May 2018 09:11:59 GMT
183
+ Content-Type:
184
+ - application/vnd.uploadcare-v0.3+json
185
+ Content-Length:
186
+ - '1461'
187
+ Connection:
188
+ - keep-alive
189
+ Server:
190
+ - nginx
191
+ X-Xss-Protection:
192
+ - 1; mode=block
193
+ X-Content-Type-Options:
194
+ - nosniff
195
+ Vary:
196
+ - Accept
197
+ Warning:
198
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
199
+ version 0.5, not 0.3'
200
+ Allow:
201
+ - GET, HEAD, OPTIONS
202
+ Access-Control-Allow-Origin:
203
+ - https://uploadcare.com
204
+ X-Frame-Options:
205
+ - SAMEORIGIN
206
+ body:
207
+ encoding: UTF-8
208
+ string: '{"id":"c50e9a53-0b95-48ac-a4a9-6744052dbdab~2","datetime_created":"2018-05-25T09:11:57.237165Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/","url":"https://api.uploadcare.com/groups/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-25T09:11:56.464753Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/81144776-fbd9-4c5f-887b-a5404da1fb71/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/81144776-fbd9-4c5f-887b-a5404da1fb71/","uuid":"81144776-fbd9-4c5f-887b-a5404da1fb71","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-25T09:11:56.488947Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/f40b1430-c576-42d5-b2ab-3c1fc39ee356/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/f40b1430-c576-42d5-b2ab-3c1fc39ee356/","uuid":"f40b1430-c576-42d5-b2ab-3c1fc39ee356","source":null,"default_effects":""}]}'
209
+ http_version:
210
+ recorded_at: Fri, 25 May 2018 09:11:57 GMT
211
+ - request:
212
+ method: get
213
+ uri: https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/
214
+ body:
215
+ encoding: US-ASCII
216
+ string: ''
217
+ headers:
218
+ Accept:
219
+ - application/vnd.uploadcare-v0.3+json
220
+ User-Agent:
221
+ - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha2)
222
+ Date:
223
+ - Mon, 28 May 2018 19:05:06 -0000
224
+ Authorization:
225
+ - Uploadcare demopublickey:4435b13d29687f2bf74ba1a717dc21f99f2e40e1
226
+ Accept-Encoding:
227
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
228
+ response:
229
+ status:
230
+ code: 200
231
+ message: OK
232
+ headers:
233
+ Date:
234
+ - Mon, 28 May 2018 19:05:07 GMT
235
+ Content-Type:
236
+ - application/vnd.uploadcare-v0.3+json
237
+ Content-Length:
238
+ - '1461'
239
+ Connection:
240
+ - keep-alive
241
+ Server:
242
+ - nginx
243
+ X-Xss-Protection:
244
+ - 1; mode=block
245
+ X-Content-Type-Options:
246
+ - nosniff
247
+ Vary:
248
+ - Accept
249
+ Warning:
250
+ - '199 Miscellaneous warning: You are using the demo account; Please use API
251
+ version 0.5, not 0.3'
252
+ Allow:
253
+ - GET, HEAD, OPTIONS
254
+ Access-Control-Allow-Origin:
255
+ - https://uploadcare.com
256
+ X-Frame-Options:
257
+ - SAMEORIGIN
258
+ body:
259
+ encoding: UTF-8
260
+ string: '{"id":"19073296-2315-4726-817b-46398b2c7431~2","datetime_created":"2018-05-28T19:05:04.518599Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/19073296-2315-4726-817b-46398b2c7431~2/","url":"https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/","files":[{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-28T19:05:02.297907Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/42627fa0-e88e-4055-b8ed-98e6a9500737/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/42627fa0-e88e-4055-b8ed-98e6a9500737/","uuid":"42627fa0-e88e-4055-b8ed-98e6a9500737","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2018-05-28T19:05:02.352341Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/","uuid":"1ee9aaa7-2aba-4700-9aa5-ce88cf95085b","source":null,"default_effects":""}]}'
261
+ http_version:
262
+ recorded_at: Mon, 28 May 2018 19:05:07 GMT
263
+ recorded_with: VCR 4.0.0