uploadcare-rails 1.2.1 → 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 -16
- 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 -69
- 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 +129 -351
- data/config/initializers/uploadcare.rb +0 -26
- data/config/uploadcare_defaults.yml +0 -12
- data/lib/generators/templates/uploadcare_config_template.yml +0 -67
- 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 -92
- data/lib/uploadcare/rails/active_record/has_group.rb +0 -89
- 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/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 -4
- data/spec/dummy/app/models/post_with_collection.rb +0 -4
- 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 -4
- 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 -64
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20171012001801_create_tables.rb +0 -27
- data/spec/dummy/db/migrate/20181001132710_add_other_file_to_post.rb +0 -8
- data/spec/dummy/db/migrate/20181001141434_add_other_file_to_post_with_collections.rb +0 -8
- data/spec/dummy/db/schema.rb +0 -39
- 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/models/has_several_files_spec.rb +0 -55
- data/spec/models/has_several_groups_spec.rb +0 -62
- 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 -56
- data/spec/view.png +0 -0
- data/spec/view2.jpg +0 -0
metadata
CHANGED
@@ -1,17 +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)"
|
10
|
-
- "@vizvamitra (Dmitrii Krasnov)"
|
7
|
+
- "@dmitrijivanchenko (Dmitrij Ivanchenko)"
|
11
8
|
autorequire:
|
12
9
|
bindir: bin
|
13
10
|
cert_chain: []
|
14
|
-
date:
|
11
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
15
12
|
dependencies:
|
16
13
|
- !ruby/object:Gem::Dependency
|
17
14
|
name: rails
|
@@ -20,9 +17,6 @@ dependencies:
|
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '4'
|
23
|
-
- - "<"
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: '6'
|
26
20
|
type: :runtime
|
27
21
|
prerelease: false
|
28
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,59 +24,14 @@ dependencies:
|
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
26
|
version: '4'
|
33
|
-
- - "<"
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '6'
|
36
27
|
- !ruby/object:Gem::Dependency
|
37
28
|
name: uploadcare-ruby
|
38
29
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - "~>"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '1.2'
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.2'
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: bundler
|
52
|
-
requirement: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - "~>"
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '1.6'
|
57
|
-
type: :development
|
58
|
-
prerelease: false
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - "~>"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '1.6'
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: rake
|
66
|
-
requirement: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
71
|
-
type: :development
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
30
|
requirements:
|
75
31
|
- - ">="
|
76
32
|
- !ruby/object:Gem::Version
|
77
33
|
version: '0'
|
78
|
-
|
79
|
-
name: sqlite3
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '0'
|
85
|
-
type: :development
|
34
|
+
type: :runtime
|
86
35
|
prerelease: false
|
87
36
|
version_requirements: !ruby/object:Gem::Requirement
|
88
37
|
requirements:
|
@@ -118,77 +67,7 @@ dependencies:
|
|
118
67
|
- !ruby/object:Gem::Version
|
119
68
|
version: '0'
|
120
69
|
- !ruby/object:Gem::Dependency
|
121
|
-
name:
|
122
|
-
requirement: !ruby/object:Gem::Requirement
|
123
|
-
requirements:
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: '0'
|
127
|
-
type: :development
|
128
|
-
prerelease: false
|
129
|
-
version_requirements: !ruby/object:Gem::Requirement
|
130
|
-
requirements:
|
131
|
-
- - ">="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
134
|
-
- !ruby/object:Gem::Dependency
|
135
|
-
name: pry
|
136
|
-
requirement: !ruby/object:Gem::Requirement
|
137
|
-
requirements:
|
138
|
-
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
version: '0'
|
141
|
-
type: :development
|
142
|
-
prerelease: false
|
143
|
-
version_requirements: !ruby/object:Gem::Requirement
|
144
|
-
requirements:
|
145
|
-
- - ">="
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: '0'
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
|
-
name: pry-rails
|
150
|
-
requirement: !ruby/object:Gem::Requirement
|
151
|
-
requirements:
|
152
|
-
- - ">="
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: '0'
|
155
|
-
type: :development
|
156
|
-
prerelease: false
|
157
|
-
version_requirements: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - ">="
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '0'
|
162
|
-
- !ruby/object:Gem::Dependency
|
163
|
-
name: better_errors
|
164
|
-
requirement: !ruby/object:Gem::Requirement
|
165
|
-
requirements:
|
166
|
-
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '0'
|
169
|
-
type: :development
|
170
|
-
prerelease: false
|
171
|
-
version_requirements: !ruby/object:Gem::Requirement
|
172
|
-
requirements:
|
173
|
-
- - ">="
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: '0'
|
176
|
-
- !ruby/object:Gem::Dependency
|
177
|
-
name: guard-rspec
|
178
|
-
requirement: !ruby/object:Gem::Requirement
|
179
|
-
requirements:
|
180
|
-
- - ">="
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: '0'
|
183
|
-
type: :development
|
184
|
-
prerelease: false
|
185
|
-
version_requirements: !ruby/object:Gem::Requirement
|
186
|
-
requirements:
|
187
|
-
- - ">="
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '0'
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
name: webmock
|
70
|
+
name: rubocop
|
192
71
|
requirement: !ruby/object:Gem::Requirement
|
193
72
|
requirements:
|
194
73
|
- - ">="
|
@@ -216,7 +95,7 @@ dependencies:
|
|
216
95
|
- !ruby/object:Gem::Version
|
217
96
|
version: '0'
|
218
97
|
- !ruby/object:Gem::Dependency
|
219
|
-
name:
|
98
|
+
name: webmock
|
220
99
|
requirement: !ruby/object:Gem::Requirement
|
221
100
|
requirements:
|
222
101
|
- - ">="
|
@@ -229,23 +108,9 @@ dependencies:
|
|
229
108
|
- - ">="
|
230
109
|
- !ruby/object:Gem::Version
|
231
110
|
version: '0'
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
requirements:
|
236
|
-
- - "~>"
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
version: '3.0'
|
239
|
-
type: :development
|
240
|
-
prerelease: false
|
241
|
-
version_requirements: !ruby/object:Gem::Requirement
|
242
|
-
requirements:
|
243
|
-
- - "~>"
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
version: '3.0'
|
246
|
-
description: |2
|
247
|
-
Rails wrapper for Uploadcare service.
|
248
|
-
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)
|
249
114
|
email:
|
250
115
|
- hello@uploadcare.com
|
251
116
|
executables: []
|
@@ -253,123 +118,85 @@ extensions: []
|
|
253
118
|
extra_rdoc_files: []
|
254
119
|
files:
|
255
120
|
- Rakefile
|
256
|
-
-
|
257
|
-
- config/uploadcare_defaults.yml
|
258
|
-
- lib/generators/templates/uploadcare_config_template.yml
|
121
|
+
- lib/generators/templates/uploadcare_config_template.erb
|
259
122
|
- lib/generators/uploadcare_config_generator.rb
|
260
|
-
- lib/tasks/uploadcare_rails_tasks.rake
|
261
123
|
- lib/uploadcare-rails.rb
|
262
|
-
- lib/uploadcare/
|
263
|
-
- lib/uploadcare/rails
|
264
|
-
- lib/uploadcare/rails/
|
265
|
-
- lib/uploadcare/rails/
|
266
|
-
- 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
|
267
139
|
- lib/uploadcare/rails/engine.rb
|
268
|
-
- 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
|
269
144
|
- lib/uploadcare/rails/objects/file.rb
|
270
145
|
- lib/uploadcare/rails/objects/group.rb
|
271
|
-
- lib/uploadcare/rails/
|
272
|
-
- lib/uploadcare/rails/
|
273
|
-
- 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
|
274
149
|
- lib/uploadcare/rails/version.rb
|
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/
|
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/migrate/20181001132710_add_other_file_to_post.rb
|
344
|
-
- spec/dummy/db/migrate/20181001141434_add_other_file_to_post_with_collections.rb
|
345
|
-
- spec/dummy/db/schema.rb
|
346
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
347
|
-
- spec/dummy/public/404.html
|
348
|
-
- spec/dummy/public/422.html
|
349
|
-
- spec/dummy/public/500.html
|
350
|
-
- 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
|
351
177
|
- spec/generators/uploadcare_config_generator_spec.rb
|
352
|
-
- spec/helpers/form_helpers_has_file_spec.rb
|
353
|
-
- spec/helpers/form_helpers_has_group_spec.rb
|
354
|
-
- spec/helpers/form_helpers_spec.rb
|
355
|
-
- spec/helpers/formtastic_spec.rb
|
356
|
-
- spec/helpers/include_tags_spec.rb
|
357
|
-
- spec/helpers/simple_form_spec.rb
|
358
|
-
- spec/helpers/uploader_tags_spec.rb
|
359
|
-
- spec/models/has_both_file_and_group_spec.rb
|
360
|
-
- spec/models/has_file_spec.rb
|
361
|
-
- spec/models/has_group_spec.rb
|
362
|
-
- spec/models/has_several_files_spec.rb
|
363
|
-
- spec/models/has_several_groups_spec.rb
|
364
|
-
- spec/objects/file_spec.rb
|
365
|
-
- spec/objects/group_spec.rb
|
366
|
-
- spec/operations_spec.rb
|
367
178
|
- spec/spec_helper.rb
|
368
179
|
- spec/support/generators.rb
|
369
|
-
- spec/
|
370
|
-
- spec/
|
371
|
-
- spec/
|
372
|
-
- 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
|
373
200
|
homepage: https://uploadcare.com/docs/libs/
|
374
201
|
licenses:
|
375
202
|
- MIT
|
@@ -384,114 +211,65 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
384
211
|
requirements:
|
385
212
|
- - ">="
|
386
213
|
- !ruby/object:Gem::Version
|
387
|
-
version:
|
214
|
+
version: 2.1.0
|
388
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
389
216
|
requirements:
|
390
217
|
- - ">="
|
391
218
|
- !ruby/object:Gem::Version
|
392
219
|
version: '0'
|
393
220
|
requirements: []
|
394
|
-
|
395
|
-
rubygems_version: 2.5.2.3
|
221
|
+
rubygems_version: 3.2.22
|
396
222
|
signing_key:
|
397
223
|
specification_version: 4
|
398
224
|
summary: Rails gem for Uploadcare
|
399
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
|
400
254
|
- spec/spec_helper.rb
|
401
|
-
- spec/dummy/app/models/posts_with_collection_and_file.rb
|
402
|
-
- spec/dummy/app/models/post_with_collection.rb
|
403
|
-
- spec/dummy/app/models/post.rb
|
404
|
-
- spec/dummy/app/controllers/application_controller.rb
|
405
|
-
- spec/dummy/app/controllers/post_with_collections_controller.rb
|
406
|
-
- spec/dummy/app/controllers/posts_with_collection_and_files_controller.rb
|
407
|
-
- spec/dummy/app/controllers/posts_controller.rb
|
408
|
-
- spec/dummy/app/views/posts/index.html.erb
|
409
|
-
- spec/dummy/app/views/posts/post.json.builder
|
410
|
-
- spec/dummy/app/views/posts/edit.html.erb
|
411
|
-
- spec/dummy/app/views/posts/show.html.erb
|
412
|
-
- spec/dummy/app/views/posts/_form.html.erb
|
413
|
-
- spec/dummy/app/views/posts/new.html.erb
|
414
|
-
- spec/dummy/app/views/posts_with_collection_and_files/index.html.erb
|
415
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder
|
416
|
-
- spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb
|
417
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.html.erb
|
418
|
-
- spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb
|
419
|
-
- spec/dummy/app/views/posts_with_collection_and_files/new.html.erb
|
420
|
-
- spec/dummy/app/views/post_with_collections/index.html.erb
|
421
|
-
- spec/dummy/app/views/post_with_collections/show.json.jbuilder
|
422
|
-
- spec/dummy/app/views/post_with_collections/edit.html.erb
|
423
|
-
- spec/dummy/app/views/post_with_collections/show.html.erb
|
424
|
-
- spec/dummy/app/views/post_with_collections/_form.html.erb
|
425
|
-
- spec/dummy/app/views/post_with_collections/new.html.erb
|
426
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
427
|
-
- spec/dummy/app/assets/javascripts/post_with_collections.js
|
428
|
-
- spec/dummy/app/assets/javascripts/posts.js
|
429
|
-
- spec/dummy/app/assets/javascripts/posts_with_collection_and_files.js
|
430
|
-
- spec/dummy/app/assets/javascripts/application.js
|
431
|
-
- spec/dummy/app/assets/stylesheets/posts_with_collection_and_files.css
|
432
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
433
|
-
- spec/dummy/app/assets/stylesheets/scaffold.css
|
434
|
-
- spec/dummy/app/assets/stylesheets/post_with_collections.css
|
435
|
-
- spec/dummy/app/assets/stylesheets/posts.css
|
436
|
-
- spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb
|
437
|
-
- spec/dummy/app/helpers/posts_helper.rb
|
438
|
-
- spec/dummy/app/helpers/post_with_collections_helper.rb
|
439
|
-
- spec/dummy/app/helpers/application_helper.rb
|
440
|
-
- spec/dummy/bin/rake
|
441
|
-
- spec/dummy/bin/bundle
|
442
|
-
- spec/dummy/bin/rails
|
443
|
-
- spec/dummy/config/uploadcare.yml
|
444
|
-
- spec/dummy/config/routes.rb
|
445
|
-
- spec/dummy/config/locales/en.yml
|
446
|
-
- spec/dummy/config/locales/simple_form.en.yml
|
447
|
-
- spec/dummy/config/environments/production.rb
|
448
|
-
- spec/dummy/config/environments/development.rb
|
449
|
-
- spec/dummy/config/environments/test.rb
|
450
|
-
- spec/dummy/config/environment.rb
|
451
|
-
- spec/dummy/config/application.rb
|
452
|
-
- spec/dummy/config/database.yml
|
453
|
-
- spec/dummy/config/boot.rb
|
454
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
455
|
-
- spec/dummy/config/initializers/mime_types.rb
|
456
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
457
|
-
- spec/dummy/config/initializers/session_store.rb
|
458
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
459
|
-
- spec/dummy/config/initializers/simple_form.rb
|
460
|
-
- spec/dummy/config/initializers/formtastic.rb
|
461
|
-
- spec/dummy/config/initializers/secret_token.rb
|
462
|
-
- spec/dummy/config/initializers/inflections.rb
|
463
|
-
- spec/dummy/config.ru
|
464
|
-
- spec/dummy/Rakefile
|
465
|
-
- spec/dummy/public/favicon.ico
|
466
|
-
- spec/dummy/public/422.html
|
467
|
-
- spec/dummy/public/500.html
|
468
|
-
- spec/dummy/public/404.html
|
469
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
470
|
-
- spec/dummy/db/schema.rb
|
471
|
-
- spec/dummy/db/migrate/20171012001801_create_tables.rb
|
472
|
-
- spec/dummy/db/migrate/20181001132710_add_other_file_to_post.rb
|
473
|
-
- spec/dummy/db/migrate/20181001141434_add_other_file_to_post_with_collections.rb
|
474
|
-
- spec/dummy/README.rdoc
|
475
|
-
- spec/operations_spec.rb
|
476
|
-
- spec/view2.jpg
|
477
|
-
- spec/objects/file_spec.rb
|
478
|
-
- spec/objects/group_spec.rb
|
479
|
-
- spec/models/has_file_spec.rb
|
480
|
-
- spec/models/has_several_files_spec.rb
|
481
|
-
- spec/models/has_several_groups_spec.rb
|
482
|
-
- spec/models/has_group_spec.rb
|
483
|
-
- spec/models/has_both_file_and_group_spec.rb
|
484
255
|
- spec/support/generators.rb
|
485
|
-
- spec/
|
486
|
-
- spec/
|
487
|
-
- spec/
|
488
|
-
- spec/
|
489
|
-
- spec/
|
490
|
-
- spec/
|
491
|
-
- spec/
|
492
|
-
- spec/
|
493
|
-
- spec/
|
494
|
-
- spec/
|
495
|
-
- spec/
|
496
|
-
- spec/
|
497
|
-
- 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
|