uploadcare-rails 1.2.0.pre.alpha → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +5 -16
- data/lib/generators/templates/uploadcare_config_template.erb +138 -0
- data/lib/generators/uploadcare_config_generator.rb +7 -4
- data/lib/uploadcare/errors/type_error.rb +7 -0
- data/lib/uploadcare/rails/action_view/uploadcare_include_tags.rb +48 -0
- data/lib/uploadcare/rails/action_view/uploadcare_uploader_tags.rb +57 -0
- data/lib/uploadcare/rails/active_record/mount_uploadcare_file.rb +62 -0
- data/lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb +58 -0
- data/lib/uploadcare/rails/api/rest/base.rb +14 -0
- data/lib/uploadcare/rails/api/rest/conversion_api.rb +42 -0
- data/lib/uploadcare/rails/api/rest/file_api.rb +69 -0
- data/lib/uploadcare/rails/api/rest/group_api.rb +48 -0
- data/lib/uploadcare/rails/api/rest/project_api.rb +27 -0
- data/lib/uploadcare/rails/api/rest/webhook_api.rb +45 -0
- data/lib/uploadcare/rails/api/upload/base.rb +13 -0
- data/lib/uploadcare/rails/api/upload/upload_api.rb +53 -0
- data/lib/uploadcare/rails/configuration.rb +57 -0
- data/lib/uploadcare/rails/engine.rb +13 -17
- data/lib/uploadcare/rails/jobs/delete_file_job.rb +14 -0
- data/lib/uploadcare/rails/jobs/store_file_job.rb +14 -0
- data/lib/uploadcare/rails/jobs/store_group_job.rb +14 -0
- data/lib/uploadcare/rails/objects/concerns/loadable.rb +46 -0
- data/lib/uploadcare/rails/objects/file.rb +40 -20
- data/lib/uploadcare/rails/objects/group.rb +51 -57
- data/lib/uploadcare/rails/services/files_count_extractor.rb +14 -0
- data/lib/uploadcare/rails/services/id_extractor.rb +15 -0
- data/lib/uploadcare/rails/transformations/image_transformations.rb +45 -0
- data/lib/uploadcare/rails/version.rb +3 -1
- data/lib/uploadcare/rails.rb +10 -0
- data/lib/uploadcare-rails.rb +27 -9
- data/spec/fixtures/kitten.jpeg +0 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +62 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +62 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +62 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +62 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +59 -0
- data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +59 -0
- data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +60 -0
- data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +58 -0
- data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +58 -0
- data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +58 -0
- data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +61 -0
- data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +57 -0
- data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +58 -0
- data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +57 -0
- data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +57 -0
- data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +52 -0
- data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +57 -0
- data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +57 -0
- data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +59 -0
- data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +55 -0
- data/spec/fixtures/vcr_cassettes/upload_upload_one_file.yml +105 -0
- data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +111 -0
- data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +59 -0
- data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +57 -0
- data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +59 -0
- data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +59 -0
- data/spec/generators/uploadcare_config_generator_spec.rb +18 -26
- data/spec/spec_helper.rb +17 -62
- data/spec/support/generators.rb +8 -5
- data/spec/support/vcr.rb +14 -0
- data/spec/tmp/config/initializers/uploadcare.rb +138 -0
- data/spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb +40 -0
- data/spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb +46 -0
- data/spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb +33 -0
- data/spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb +32 -0
- data/spec/uploadcare/rails/api/rest/conversion_api_spec.rb +110 -0
- data/spec/uploadcare/rails/api/rest/file_api_spec.rb +85 -0
- data/spec/uploadcare/rails/api/rest/group_api_spec.rb +61 -0
- data/spec/uploadcare/rails/api/rest/project_api_spec.rb +33 -0
- data/spec/uploadcare/rails/api/rest/webhook_api_spec.rb +59 -0
- data/spec/uploadcare/rails/api/upload/upload_api_spec.rb +82 -0
- data/spec/uploadcare/rails/jobs/delete_file_job_spec.rb +15 -0
- data/spec/uploadcare/rails/jobs/store_file_job_spec.rb +15 -0
- data/spec/uploadcare/rails/jobs/store_group_job_spec.rb +15 -0
- data/spec/uploadcare/rails/objects/file_spec.rb +77 -0
- data/spec/uploadcare/rails/objects/group_spec.rb +87 -0
- data/spec/uploadcare/rails/services/id_extractor_spec.rb +26 -0
- data/spec/uploadcare/rails/transformations/image_transformations_spec.rb +120 -0
- data/spec/uploadcare/rails_spec.rb +7 -0
- metadata +131 -346
- data/config/initializers/uploadcare.rb +0 -26
- data/config/uploadcare_defaults.yml +0 -12
- data/lib/generators/templates/uploadcare_config_template.yml +0 -71
- data/lib/tasks/uploadcare_rails_tasks.rake +0 -4
- data/lib/uploadcare/rails/action_view/include_tags.rb +0 -47
- data/lib/uploadcare/rails/action_view/uploader_tags.rb +0 -76
- data/lib/uploadcare/rails/active_record/has_file.rb +0 -89
- data/lib/uploadcare/rails/active_record/has_group.rb +0 -84
- data/lib/uploadcare/rails/active_record/has_object.rb +0 -9
- data/lib/uploadcare/rails/formtastic/formtastic.rb +0 -73
- data/lib/uploadcare/rails/operations.rb +0 -57
- data/lib/uploadcare/rails/settings.rb +0 -81
- data/lib/uploadcare/rails/simple_form/simple_form.rb +0 -63
- data/spec/caching/file_caching_spec.rb +0 -26
- data/spec/caching/group_caching_spec.rb +0 -40
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/app/assets/javascripts/post_with_collections.js +0 -2
- data/spec/dummy/app/assets/javascripts/posts.js +0 -2
- data/spec/dummy/app/assets/javascripts/posts_with_collection_and_files.js +0 -2
- data/spec/dummy/app/assets/javascripts/uploadcare-1.5.5.min.js +0 -16
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/assets/stylesheets/post_with_collections.css +0 -4
- data/spec/dummy/app/assets/stylesheets/posts.css +0 -4
- data/spec/dummy/app/assets/stylesheets/posts_with_collection_and_files.css +0 -4
- data/spec/dummy/app/assets/stylesheets/scaffold.css +0 -56
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/post_with_collections_controller.rb +0 -58
- data/spec/dummy/app/controllers/posts_controller.rb +0 -58
- data/spec/dummy/app/controllers/posts_with_collection_and_files_controller.rb +0 -58
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/helpers/post_with_collections_helper.rb +0 -2
- data/spec/dummy/app/helpers/posts_helper.rb +0 -2
- data/spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb +0 -2
- data/spec/dummy/app/models/post.rb +0 -3
- data/spec/dummy/app/models/post_with_collection.rb +0 -3
- data/spec/dummy/app/models/posts_with_collection_and_file.rb +0 -4
- data/spec/dummy/app/views/layouts/application.html.erb +0 -16
- data/spec/dummy/app/views/post_with_collections/_form.html.erb +0 -25
- data/spec/dummy/app/views/post_with_collections/edit.html.erb +0 -6
- data/spec/dummy/app/views/post_with_collections/index.html.erb +0 -29
- data/spec/dummy/app/views/post_with_collections/new.html.erb +0 -5
- data/spec/dummy/app/views/post_with_collections/show.html.erb +0 -14
- data/spec/dummy/app/views/post_with_collections/show.json.jbuilder +0 -1
- data/spec/dummy/app/views/posts/_form.html.erb +0 -31
- data/spec/dummy/app/views/posts/edit.html.erb +0 -6
- data/spec/dummy/app/views/posts/index.html.erb +0 -37
- data/spec/dummy/app/views/posts/new.html.erb +0 -5
- data/spec/dummy/app/views/posts/post.json.builder +0 -1
- data/spec/dummy/app/views/posts/show.html.erb +0 -15
- data/spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb +0 -27
- data/spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb +0 -6
- data/spec/dummy/app/views/posts_with_collection_and_files/index.html.erb +0 -25
- data/spec/dummy/app/views/posts_with_collection_and_files/new.html.erb +0 -5
- data/spec/dummy/app/views/posts_with_collection_and_files/show.html.erb +0 -4
- data/spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder +0 -1
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config/application.rb +0 -23
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/formtastic.rb +0 -111
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/simple_form.rb +0 -167
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/locales/simple_form.en.yml +0 -31
- data/spec/dummy/config/routes.rb +0 -63
- data/spec/dummy/config/uploadcare.yml +0 -68
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20171012001801_create_tables.rb +0 -27
- data/spec/dummy/db/schema.rb +0 -37
- data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +0 -13
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/form_helpers_has_file_spec.rb +0 -30
- data/spec/helpers/form_helpers_has_group_spec.rb +0 -30
- data/spec/helpers/form_helpers_spec.rb +0 -33
- data/spec/helpers/formtastic_spec.rb +0 -25
- data/spec/helpers/include_tags_spec.rb +0 -54
- data/spec/helpers/simple_form_spec.rb +0 -25
- data/spec/helpers/uploader_tags_spec.rb +0 -21
- data/spec/models/has_both_file_and_group_spec.rb +0 -43
- data/spec/models/has_file_spec.rb +0 -46
- data/spec/models/has_group_spec.rb +0 -57
- data/spec/objects/file_spec.rb +0 -27
- data/spec/objects/group_spec.rb +0 -51
- data/spec/operations_spec.rb +0 -28
- data/spec/uploadcare/rails/settings_spec.rb +0 -136
- data/spec/uploadcare_rails_settings_spec.rb +0 -50
- data/spec/view.png +0 -0
- data/spec/view2.jpg +0 -0
metadata
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadcare-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- "@
|
8
|
-
- "@dimituri (Dimitry Solovyov)"
|
9
|
-
- "@romanonthego (Roman Dubinin)"
|
7
|
+
- "@dmitrijivanchenko (Dmitrij Ivanchenko)"
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: rails
|
@@ -19,9 +17,6 @@ dependencies:
|
|
19
17
|
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '4'
|
22
|
-
- - "<"
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: '6'
|
25
20
|
type: :runtime
|
26
21
|
prerelease: false
|
27
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,59 +24,14 @@ dependencies:
|
|
29
24
|
- - ">="
|
30
25
|
- !ruby/object:Gem::Version
|
31
26
|
version: '4'
|
32
|
-
- - "<"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '6'
|
35
27
|
- !ruby/object:Gem::Dependency
|
36
28
|
name: uploadcare-ruby
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.0'
|
42
|
-
type: :runtime
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '1.0'
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: bundler
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '1.6'
|
56
|
-
type: :development
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '1.6'
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: rake
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: sqlite3
|
79
29
|
requirement: !ruby/object:Gem::Requirement
|
80
30
|
requirements:
|
81
31
|
- - ">="
|
82
32
|
- !ruby/object:Gem::Version
|
83
33
|
version: '0'
|
84
|
-
type: :
|
34
|
+
type: :runtime
|
85
35
|
prerelease: false
|
86
36
|
version_requirements: !ruby/object:Gem::Requirement
|
87
37
|
requirements:
|
@@ -117,77 +67,7 @@ dependencies:
|
|
117
67
|
- !ruby/object:Gem::Version
|
118
68
|
version: '0'
|
119
69
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
121
|
-
requirement: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
type: :development
|
127
|
-
prerelease: false
|
128
|
-
version_requirements: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: pry
|
135
|
-
requirement: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
|
-
type: :development
|
141
|
-
prerelease: false
|
142
|
-
version_requirements: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: pry-rails
|
149
|
-
requirement: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
type: :development
|
155
|
-
prerelease: false
|
156
|
-
version_requirements: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
- !ruby/object:Gem::Dependency
|
162
|
-
name: better_errors
|
163
|
-
requirement: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
|
-
type: :development
|
169
|
-
prerelease: false
|
170
|
-
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: '0'
|
175
|
-
- !ruby/object:Gem::Dependency
|
176
|
-
name: guard-rspec
|
177
|
-
requirement: !ruby/object:Gem::Requirement
|
178
|
-
requirements:
|
179
|
-
- - ">="
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
182
|
-
type: :development
|
183
|
-
prerelease: false
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '0'
|
189
|
-
- !ruby/object:Gem::Dependency
|
190
|
-
name: webmock
|
70
|
+
name: rubocop
|
191
71
|
requirement: !ruby/object:Gem::Requirement
|
192
72
|
requirements:
|
193
73
|
- - ">="
|
@@ -215,7 +95,7 @@ dependencies:
|
|
215
95
|
- !ruby/object:Gem::Version
|
216
96
|
version: '0'
|
217
97
|
- !ruby/object:Gem::Dependency
|
218
|
-
name:
|
98
|
+
name: webmock
|
219
99
|
requirement: !ruby/object:Gem::Requirement
|
220
100
|
requirements:
|
221
101
|
- - ">="
|
@@ -228,23 +108,9 @@ dependencies:
|
|
228
108
|
- - ">="
|
229
109
|
- !ruby/object:Gem::Version
|
230
110
|
version: '0'
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
requirements:
|
235
|
-
- - "~>"
|
236
|
-
- !ruby/object:Gem::Version
|
237
|
-
version: '3.0'
|
238
|
-
type: :development
|
239
|
-
prerelease: false
|
240
|
-
version_requirements: !ruby/object:Gem::Requirement
|
241
|
-
requirements:
|
242
|
-
- - "~>"
|
243
|
-
- !ruby/object:Gem::Version
|
244
|
-
version: '3.0'
|
245
|
-
description: |2
|
246
|
-
Rails wrapper for Uploadcare service.
|
247
|
-
Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
|
111
|
+
description: |
|
112
|
+
Rails wrapper for Uploadcare service.
|
113
|
+
Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
|
248
114
|
email:
|
249
115
|
- hello@uploadcare.com
|
250
116
|
executables: []
|
@@ -252,120 +118,85 @@ extensions: []
|
|
252
118
|
extra_rdoc_files: []
|
253
119
|
files:
|
254
120
|
- Rakefile
|
255
|
-
-
|
256
|
-
- config/uploadcare_defaults.yml
|
257
|
-
- lib/generators/templates/uploadcare_config_template.yml
|
121
|
+
- lib/generators/templates/uploadcare_config_template.erb
|
258
122
|
- lib/generators/uploadcare_config_generator.rb
|
259
|
-
- lib/tasks/uploadcare_rails_tasks.rake
|
260
123
|
- lib/uploadcare-rails.rb
|
261
|
-
- lib/uploadcare/
|
262
|
-
- lib/uploadcare/rails
|
263
|
-
- lib/uploadcare/rails/
|
264
|
-
- lib/uploadcare/rails/
|
265
|
-
- lib/uploadcare/rails/active_record/
|
124
|
+
- lib/uploadcare/errors/type_error.rb
|
125
|
+
- lib/uploadcare/rails.rb
|
126
|
+
- lib/uploadcare/rails/action_view/uploadcare_include_tags.rb
|
127
|
+
- lib/uploadcare/rails/action_view/uploadcare_uploader_tags.rb
|
128
|
+
- lib/uploadcare/rails/active_record/mount_uploadcare_file.rb
|
129
|
+
- lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb
|
130
|
+
- lib/uploadcare/rails/api/rest/base.rb
|
131
|
+
- lib/uploadcare/rails/api/rest/conversion_api.rb
|
132
|
+
- lib/uploadcare/rails/api/rest/file_api.rb
|
133
|
+
- lib/uploadcare/rails/api/rest/group_api.rb
|
134
|
+
- lib/uploadcare/rails/api/rest/project_api.rb
|
135
|
+
- lib/uploadcare/rails/api/rest/webhook_api.rb
|
136
|
+
- lib/uploadcare/rails/api/upload/base.rb
|
137
|
+
- lib/uploadcare/rails/api/upload/upload_api.rb
|
138
|
+
- lib/uploadcare/rails/configuration.rb
|
266
139
|
- lib/uploadcare/rails/engine.rb
|
267
|
-
- lib/uploadcare/rails/
|
140
|
+
- lib/uploadcare/rails/jobs/delete_file_job.rb
|
141
|
+
- lib/uploadcare/rails/jobs/store_file_job.rb
|
142
|
+
- lib/uploadcare/rails/jobs/store_group_job.rb
|
143
|
+
- lib/uploadcare/rails/objects/concerns/loadable.rb
|
268
144
|
- lib/uploadcare/rails/objects/file.rb
|
269
145
|
- lib/uploadcare/rails/objects/group.rb
|
270
|
-
- lib/uploadcare/rails/
|
271
|
-
- lib/uploadcare/rails/
|
272
|
-
- lib/uploadcare/rails/
|
146
|
+
- lib/uploadcare/rails/services/files_count_extractor.rb
|
147
|
+
- lib/uploadcare/rails/services/id_extractor.rb
|
148
|
+
- lib/uploadcare/rails/transformations/image_transformations.rb
|
273
149
|
- lib/uploadcare/rails/version.rb
|
274
|
-
- spec/
|
275
|
-
- spec/
|
276
|
-
- spec/
|
277
|
-
- spec/
|
278
|
-
- spec/
|
279
|
-
- spec/
|
280
|
-
- spec/
|
281
|
-
- spec/
|
282
|
-
- spec/
|
283
|
-
- spec/
|
284
|
-
- spec/
|
285
|
-
- spec/
|
286
|
-
- spec/
|
287
|
-
- spec/
|
288
|
-
- spec/
|
289
|
-
- spec/
|
290
|
-
- spec/
|
291
|
-
- spec/
|
292
|
-
- spec/
|
293
|
-
- spec/
|
294
|
-
- spec/
|
295
|
-
- spec/
|
296
|
-
- spec/
|
297
|
-
- spec/
|
298
|
-
- spec/
|
299
|
-
- spec/
|
300
|
-
- spec/
|
301
|
-
- spec/dummy/app/views/post_with_collections/edit.html.erb
|
302
|
-
- spec/dummy/app/views/post_with_collections/index.html.erb
|
303
|
-
- spec/dummy/app/views/post_with_collections/new.html.erb
|
304
|
-
- spec/dummy/app/views/post_with_collections/show.html.erb
|
305
|
-
- spec/dummy/app/views/post_with_collections/show.json.jbuilder
|
306
|
-
- spec/dummy/app/views/posts/_form.html.erb
|
307
|
-
- spec/dummy/app/views/posts/edit.html.erb
|
308
|
-
- spec/dummy/app/views/posts/index.html.erb
|
309
|
-
- spec/dummy/app/views/posts/new.html.erb
|
310
|
-
- spec/dummy/app/views/posts/post.json.builder
|
311
|
-
- spec/dummy/app/views/posts/show.html.erb
|
312
|
-
- spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb
|
313
|
-
- spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb
|
314
|
-
- spec/dummy/app/views/posts_with_collection_and_files/index.html.erb
|
315
|
-
- spec/dummy/app/views/posts_with_collection_and_files/new.html.erb
|
316
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.html.erb
|
317
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder
|
318
|
-
- spec/dummy/bin/bundle
|
319
|
-
- spec/dummy/bin/rails
|
320
|
-
- spec/dummy/bin/rake
|
321
|
-
- spec/dummy/config.ru
|
322
|
-
- spec/dummy/config/application.rb
|
323
|
-
- spec/dummy/config/boot.rb
|
324
|
-
- spec/dummy/config/database.yml
|
325
|
-
- spec/dummy/config/environment.rb
|
326
|
-
- spec/dummy/config/environments/development.rb
|
327
|
-
- spec/dummy/config/environments/production.rb
|
328
|
-
- spec/dummy/config/environments/test.rb
|
329
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
330
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
331
|
-
- spec/dummy/config/initializers/formtastic.rb
|
332
|
-
- spec/dummy/config/initializers/inflections.rb
|
333
|
-
- spec/dummy/config/initializers/mime_types.rb
|
334
|
-
- spec/dummy/config/initializers/secret_token.rb
|
335
|
-
- spec/dummy/config/initializers/session_store.rb
|
336
|
-
- spec/dummy/config/initializers/simple_form.rb
|
337
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
338
|
-
- spec/dummy/config/locales/en.yml
|
339
|
-
- spec/dummy/config/locales/simple_form.en.yml
|
340
|
-
- spec/dummy/config/routes.rb
|
341
|
-
- spec/dummy/config/uploadcare.yml
|
342
|
-
- spec/dummy/db/migrate/20171012001801_create_tables.rb
|
343
|
-
- spec/dummy/db/schema.rb
|
344
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
345
|
-
- spec/dummy/public/404.html
|
346
|
-
- spec/dummy/public/422.html
|
347
|
-
- spec/dummy/public/500.html
|
348
|
-
- spec/dummy/public/favicon.ico
|
150
|
+
- spec/fixtures/kitten.jpeg
|
151
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
|
152
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
|
153
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
|
154
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
|
155
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
|
156
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
|
157
|
+
- spec/fixtures/vcr_cassettes/file_api_copy_file.yml
|
158
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_file.yml
|
159
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_files.yml
|
160
|
+
- spec/fixtures/vcr_cassettes/file_api_get_file.yml
|
161
|
+
- spec/fixtures/vcr_cassettes/file_api_get_files.yml
|
162
|
+
- spec/fixtures/vcr_cassettes/file_api_load_file.yml
|
163
|
+
- spec/fixtures/vcr_cassettes/file_api_store_file.yml
|
164
|
+
- spec/fixtures/vcr_cassettes/file_api_store_files.yml
|
165
|
+
- spec/fixtures/vcr_cassettes/group_api_create_group.yml
|
166
|
+
- spec/fixtures/vcr_cassettes/group_api_get_group.yml
|
167
|
+
- spec/fixtures/vcr_cassettes/group_api_get_groups.yml
|
168
|
+
- spec/fixtures/vcr_cassettes/group_api_store_group.yml
|
169
|
+
- spec/fixtures/vcr_cassettes/project_api_get_project.yml
|
170
|
+
- spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
|
171
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
|
172
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
|
173
|
+
- spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
|
174
|
+
- spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
|
175
|
+
- spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
|
176
|
+
- spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
|
349
177
|
- spec/generators/uploadcare_config_generator_spec.rb
|
350
|
-
- spec/helpers/form_helpers_has_file_spec.rb
|
351
|
-
- spec/helpers/form_helpers_has_group_spec.rb
|
352
|
-
- spec/helpers/form_helpers_spec.rb
|
353
|
-
- spec/helpers/formtastic_spec.rb
|
354
|
-
- spec/helpers/include_tags_spec.rb
|
355
|
-
- spec/helpers/simple_form_spec.rb
|
356
|
-
- spec/helpers/uploader_tags_spec.rb
|
357
|
-
- spec/models/has_both_file_and_group_spec.rb
|
358
|
-
- spec/models/has_file_spec.rb
|
359
|
-
- spec/models/has_group_spec.rb
|
360
|
-
- spec/objects/file_spec.rb
|
361
|
-
- spec/objects/group_spec.rb
|
362
|
-
- spec/operations_spec.rb
|
363
178
|
- spec/spec_helper.rb
|
364
179
|
- spec/support/generators.rb
|
365
|
-
- spec/
|
366
|
-
- spec/
|
367
|
-
- spec/
|
368
|
-
- spec/
|
180
|
+
- spec/support/vcr.rb
|
181
|
+
- spec/tmp/config/initializers/uploadcare.rb
|
182
|
+
- spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
|
183
|
+
- spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
|
184
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
|
185
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
|
186
|
+
- spec/uploadcare/rails/api/rest/conversion_api_spec.rb
|
187
|
+
- spec/uploadcare/rails/api/rest/file_api_spec.rb
|
188
|
+
- spec/uploadcare/rails/api/rest/group_api_spec.rb
|
189
|
+
- spec/uploadcare/rails/api/rest/project_api_spec.rb
|
190
|
+
- spec/uploadcare/rails/api/rest/webhook_api_spec.rb
|
191
|
+
- spec/uploadcare/rails/api/upload/upload_api_spec.rb
|
192
|
+
- spec/uploadcare/rails/jobs/delete_file_job_spec.rb
|
193
|
+
- spec/uploadcare/rails/jobs/store_file_job_spec.rb
|
194
|
+
- spec/uploadcare/rails/jobs/store_group_job_spec.rb
|
195
|
+
- spec/uploadcare/rails/objects/file_spec.rb
|
196
|
+
- spec/uploadcare/rails/objects/group_spec.rb
|
197
|
+
- spec/uploadcare/rails/services/id_extractor_spec.rb
|
198
|
+
- spec/uploadcare/rails/transformations/image_transformations_spec.rb
|
199
|
+
- spec/uploadcare/rails_spec.rb
|
369
200
|
homepage: https://uploadcare.com/docs/libs/
|
370
201
|
licenses:
|
371
202
|
- MIT
|
@@ -380,111 +211,65 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
380
211
|
requirements:
|
381
212
|
- - ">="
|
382
213
|
- !ruby/object:Gem::Version
|
383
|
-
version:
|
214
|
+
version: 2.1.0
|
384
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
385
216
|
requirements:
|
386
|
-
- - "
|
217
|
+
- - ">="
|
387
218
|
- !ruby/object:Gem::Version
|
388
|
-
version:
|
219
|
+
version: '0'
|
389
220
|
requirements: []
|
390
|
-
|
391
|
-
rubygems_version: 2.5.2
|
221
|
+
rubygems_version: 3.2.22
|
392
222
|
signing_key:
|
393
223
|
specification_version: 4
|
394
224
|
summary: Rails gem for Uploadcare
|
395
225
|
test_files:
|
226
|
+
- spec/fixtures/kitten.jpeg
|
227
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
|
228
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
|
229
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
|
230
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
|
231
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
|
232
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
|
233
|
+
- spec/fixtures/vcr_cassettes/file_api_copy_file.yml
|
234
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_file.yml
|
235
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_files.yml
|
236
|
+
- spec/fixtures/vcr_cassettes/file_api_get_file.yml
|
237
|
+
- spec/fixtures/vcr_cassettes/file_api_get_files.yml
|
238
|
+
- spec/fixtures/vcr_cassettes/file_api_load_file.yml
|
239
|
+
- spec/fixtures/vcr_cassettes/file_api_store_file.yml
|
240
|
+
- spec/fixtures/vcr_cassettes/file_api_store_files.yml
|
241
|
+
- spec/fixtures/vcr_cassettes/group_api_create_group.yml
|
242
|
+
- spec/fixtures/vcr_cassettes/group_api_get_group.yml
|
243
|
+
- spec/fixtures/vcr_cassettes/group_api_get_groups.yml
|
244
|
+
- spec/fixtures/vcr_cassettes/group_api_store_group.yml
|
245
|
+
- spec/fixtures/vcr_cassettes/project_api_get_project.yml
|
246
|
+
- spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
|
247
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
|
248
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
|
249
|
+
- spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
|
250
|
+
- spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
|
251
|
+
- spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
|
252
|
+
- spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
|
253
|
+
- spec/generators/uploadcare_config_generator_spec.rb
|
396
254
|
- spec/spec_helper.rb
|
397
|
-
- spec/dummy/app/models/posts_with_collection_and_file.rb
|
398
|
-
- spec/dummy/app/models/post_with_collection.rb
|
399
|
-
- spec/dummy/app/models/post.rb
|
400
|
-
- spec/dummy/app/controllers/application_controller.rb
|
401
|
-
- spec/dummy/app/controllers/post_with_collections_controller.rb
|
402
|
-
- spec/dummy/app/controllers/posts_with_collection_and_files_controller.rb
|
403
|
-
- spec/dummy/app/controllers/posts_controller.rb
|
404
|
-
- spec/dummy/app/views/posts/index.html.erb
|
405
|
-
- spec/dummy/app/views/posts/post.json.builder
|
406
|
-
- spec/dummy/app/views/posts/edit.html.erb
|
407
|
-
- spec/dummy/app/views/posts/show.html.erb
|
408
|
-
- spec/dummy/app/views/posts/_form.html.erb
|
409
|
-
- spec/dummy/app/views/posts/new.html.erb
|
410
|
-
- spec/dummy/app/views/posts_with_collection_and_files/index.html.erb
|
411
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder
|
412
|
-
- spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb
|
413
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.html.erb
|
414
|
-
- spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb
|
415
|
-
- spec/dummy/app/views/posts_with_collection_and_files/new.html.erb
|
416
|
-
- spec/dummy/app/views/post_with_collections/index.html.erb
|
417
|
-
- spec/dummy/app/views/post_with_collections/show.json.jbuilder
|
418
|
-
- spec/dummy/app/views/post_with_collections/edit.html.erb
|
419
|
-
- spec/dummy/app/views/post_with_collections/show.html.erb
|
420
|
-
- spec/dummy/app/views/post_with_collections/_form.html.erb
|
421
|
-
- spec/dummy/app/views/post_with_collections/new.html.erb
|
422
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
423
|
-
- spec/dummy/app/assets/javascripts/post_with_collections.js
|
424
|
-
- spec/dummy/app/assets/javascripts/posts.js
|
425
|
-
- spec/dummy/app/assets/javascripts/uploadcare-1.5.5.min.js
|
426
|
-
- spec/dummy/app/assets/javascripts/posts_with_collection_and_files.js
|
427
|
-
- spec/dummy/app/assets/javascripts/application.js
|
428
|
-
- spec/dummy/app/assets/stylesheets/posts_with_collection_and_files.css
|
429
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
430
|
-
- spec/dummy/app/assets/stylesheets/scaffold.css
|
431
|
-
- spec/dummy/app/assets/stylesheets/post_with_collections.css
|
432
|
-
- spec/dummy/app/assets/stylesheets/posts.css
|
433
|
-
- spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb
|
434
|
-
- spec/dummy/app/helpers/posts_helper.rb
|
435
|
-
- spec/dummy/app/helpers/post_with_collections_helper.rb
|
436
|
-
- spec/dummy/app/helpers/application_helper.rb
|
437
|
-
- spec/dummy/bin/rake
|
438
|
-
- spec/dummy/bin/bundle
|
439
|
-
- spec/dummy/bin/rails
|
440
|
-
- spec/dummy/config/uploadcare.yml
|
441
|
-
- spec/dummy/config/routes.rb
|
442
|
-
- spec/dummy/config/locales/en.yml
|
443
|
-
- spec/dummy/config/locales/simple_form.en.yml
|
444
|
-
- spec/dummy/config/environments/production.rb
|
445
|
-
- spec/dummy/config/environments/development.rb
|
446
|
-
- spec/dummy/config/environments/test.rb
|
447
|
-
- spec/dummy/config/environment.rb
|
448
|
-
- spec/dummy/config/application.rb
|
449
|
-
- spec/dummy/config/database.yml
|
450
|
-
- spec/dummy/config/boot.rb
|
451
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
452
|
-
- spec/dummy/config/initializers/mime_types.rb
|
453
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
454
|
-
- spec/dummy/config/initializers/session_store.rb
|
455
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
456
|
-
- spec/dummy/config/initializers/simple_form.rb
|
457
|
-
- spec/dummy/config/initializers/formtastic.rb
|
458
|
-
- spec/dummy/config/initializers/secret_token.rb
|
459
|
-
- spec/dummy/config/initializers/inflections.rb
|
460
|
-
- spec/dummy/config.ru
|
461
|
-
- spec/dummy/Rakefile
|
462
|
-
- spec/dummy/public/favicon.ico
|
463
|
-
- spec/dummy/public/422.html
|
464
|
-
- spec/dummy/public/500.html
|
465
|
-
- spec/dummy/public/404.html
|
466
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
467
|
-
- spec/dummy/db/schema.rb
|
468
|
-
- spec/dummy/db/migrate/20171012001801_create_tables.rb
|
469
|
-
- spec/dummy/README.rdoc
|
470
|
-
- spec/operations_spec.rb
|
471
|
-
- spec/view2.jpg
|
472
|
-
- spec/objects/file_spec.rb
|
473
|
-
- spec/objects/group_spec.rb
|
474
|
-
- spec/models/has_file_spec.rb
|
475
|
-
- spec/models/has_group_spec.rb
|
476
|
-
- spec/models/has_both_file_and_group_spec.rb
|
477
255
|
- spec/support/generators.rb
|
478
|
-
- spec/
|
479
|
-
- spec/
|
480
|
-
- spec/
|
481
|
-
- spec/
|
482
|
-
- spec/
|
483
|
-
- spec/
|
484
|
-
- spec/
|
485
|
-
- spec/
|
486
|
-
- spec/
|
487
|
-
- spec/
|
488
|
-
- spec/
|
489
|
-
- spec/
|
490
|
-
- spec/uploadcare/rails/
|
256
|
+
- spec/support/vcr.rb
|
257
|
+
- spec/tmp/config/initializers/uploadcare.rb
|
258
|
+
- spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
|
259
|
+
- spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
|
260
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
|
261
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
|
262
|
+
- spec/uploadcare/rails/api/rest/conversion_api_spec.rb
|
263
|
+
- spec/uploadcare/rails/api/rest/file_api_spec.rb
|
264
|
+
- spec/uploadcare/rails/api/rest/group_api_spec.rb
|
265
|
+
- spec/uploadcare/rails/api/rest/project_api_spec.rb
|
266
|
+
- spec/uploadcare/rails/api/rest/webhook_api_spec.rb
|
267
|
+
- spec/uploadcare/rails/api/upload/upload_api_spec.rb
|
268
|
+
- spec/uploadcare/rails/jobs/delete_file_job_spec.rb
|
269
|
+
- spec/uploadcare/rails/jobs/store_file_job_spec.rb
|
270
|
+
- spec/uploadcare/rails/jobs/store_group_job_spec.rb
|
271
|
+
- spec/uploadcare/rails/objects/file_spec.rb
|
272
|
+
- spec/uploadcare/rails/objects/group_spec.rb
|
273
|
+
- spec/uploadcare/rails/services/id_extractor_spec.rb
|
274
|
+
- spec/uploadcare/rails/transformations/image_transformations_spec.rb
|
275
|
+
- spec/uploadcare/rails_spec.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
config_file = Rails.root.join('config', 'uploadcare.yml')
|
2
|
-
|
3
|
-
config =
|
4
|
-
if File.exist?(config_file)
|
5
|
-
YAML.load(ERB.new(File.new(config_file).read).result)
|
6
|
-
else
|
7
|
-
# output warning in red color
|
8
|
-
# use default settings just to boot up
|
9
|
-
puts <<-eos
|
10
|
-
\e[31mWarning: no uploadcare.yml config file found.\e[0m
|
11
|
-
\e[31mwhile we will use default settings please run\e[0m
|
12
|
-
\e[36mrails g uploadcare_config\e[0m
|
13
|
-
\e[31mto set up config file.\e[0m
|
14
|
-
eos
|
15
|
-
|
16
|
-
{
|
17
|
-
defaults: { public_key: 'demopublickey', private_key: 'demoprivatekey' },
|
18
|
-
development: { public_key: 'demopublickey', private_key: 'demoprivatekey' },
|
19
|
-
test: { public_key: 'demopublickey', private_key: 'demoprivatekey' },
|
20
|
-
production: { public_key: 'demopublickey', private_key: 'demoprivatekey' }
|
21
|
-
}
|
22
|
-
end
|
23
|
-
|
24
|
-
UPLOADCARE_SETTINGS = Uploadcare::Rails::Settings.new(config)
|
25
|
-
# shortcut for later usage
|
26
|
-
Rails.application.config.uploadcare = UPLOADCARE_SETTINGS
|
@@ -1,71 +0,0 @@
|
|
1
|
-
defaults: &defaults
|
2
|
-
public_key: "demopublickey" # replace it with your public key
|
3
|
-
private_key: "demoprivatekey" # replace it with your private key
|
4
|
-
|
5
|
-
# instances of widget initialized for you on page load
|
6
|
-
live: true
|
7
|
-
|
8
|
-
# cache files json dumps to prevent calling to server if it posible
|
9
|
-
cache_files: true
|
10
|
-
|
11
|
-
# cache groups json dumps to prevent calling to server if it posible
|
12
|
-
cache_groups: true
|
13
|
-
|
14
|
-
# store file or group after model is created or updated
|
15
|
-
store_after_save: true
|
16
|
-
|
17
|
-
# deletes file or group after model object is deleted
|
18
|
-
delete_after_destroy: true
|
19
|
-
|
20
|
-
# Avaliable options are listed at https://uploadcare.com/documentation/widget/#advanced-configuration
|
21
|
-
# please note, that for options marker as Global: N/A - there is no practical meaning
|
22
|
-
# of putting this option here, as it will not have any effect.
|
23
|
-
# But it also will not break anything.
|
24
|
-
|
25
|
-
# for preview step use:
|
26
|
-
# preview_step: false # true or false
|
27
|
-
|
28
|
-
# for clearable option (allows user to remove uploaded file from widget) use:
|
29
|
-
# clearable: false # true or false
|
30
|
-
|
31
|
-
# for setting tabs use tabs option:
|
32
|
-
# tabs: "url file facebook" # etc
|
33
|
-
# read more here: https://uploadcare.com/documentation/widget/#tabs
|
34
|
-
#
|
35
|
-
# Full list of tabs:
|
36
|
-
# |----------------------------------------|
|
37
|
-
# | Code | File Source | Default |
|
38
|
-
# |------------|-----------------|---------|
|
39
|
-
# | url | Any URL | On |
|
40
|
-
# | file | Local disk | On |
|
41
|
-
# | facebook | Facebook | On |
|
42
|
-
# | dropbox | Dropbox | Off |
|
43
|
-
# | gdrive | Google Drive | On |
|
44
|
-
# | box | Box | On |
|
45
|
-
# | skydrive | SkyDrive | On |
|
46
|
-
# | instagram | Instagram | On |
|
47
|
-
# | evernote | Evernote | On |
|
48
|
-
# | vk | VK | Off |
|
49
|
-
# |________________________________________|
|
50
|
-
|
51
|
-
# for locale option use:
|
52
|
-
# locale: "en"
|
53
|
-
|
54
|
-
# for autostore option use:
|
55
|
-
# autostore: true #true or false
|
56
|
-
|
57
|
-
# for manual start (which means you will need to initialize uploaders yourself) use:
|
58
|
-
# manual_start: false # true or false
|
59
|
-
|
60
|
-
# for path value use:
|
61
|
-
# path_value: true # true or false
|
62
|
-
# (important for input values - see https://uploadcare.com/documentation/widget/#input-value)
|
63
|
-
|
64
|
-
development:
|
65
|
-
<<: *defaults
|
66
|
-
|
67
|
-
test:
|
68
|
-
<<: *defaults
|
69
|
-
|
70
|
-
production:
|
71
|
-
<<: *defaults
|