uploadcare-rails 1.2.0.pre.alpha3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 -62
- data/spec/support/generators.rb +8 -5
- data/spec/support/vcr.rb +14 -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 +67 -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 -393
- 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/cassettes/Uploadcare_Rails_File/should_load_itself.yml +0 -263
- data/spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml +0 -263
- data/spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml +0 -263
- data/spec/cassettes/group_cahsing_file_load.yml +0 -263
- data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml +0 -1763
- data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml +0 -543
- data/spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml +0 -679
- data/spec/cassettes/has_uploadcare_group_save.yml +0 -705
- data/spec/cassettes/load_group.yml +0 -263
- 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 -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/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +0 -13
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +0 -3276
- 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/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F +0 -0
- data/spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F +0 -0
- data/spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F +0 -0
- data/spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F +0 -0
- data/spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F +0 -0
- data/spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F +0 -0
- data/spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F +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/tmp/config/uploadcare.yml +0 -71
- 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: 1.
|
4
|
+
version: 2.1.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-11-25 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
|
-
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
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: sqlite3
|
80
29
|
requirement: !ruby/object:Gem::Requirement
|
81
30
|
requirements:
|
82
31
|
- - ">="
|
83
32
|
- !ruby/object:Gem::Version
|
84
33
|
version: '0'
|
85
|
-
type: :
|
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,143 +118,84 @@ 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/helpers/post_with_collections_helper.rb
|
303
|
-
- spec/dummy/app/helpers/posts_helper.rb
|
304
|
-
- spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb
|
305
|
-
- spec/dummy/app/models/post.rb
|
306
|
-
- spec/dummy/app/models/post_with_collection.rb
|
307
|
-
- spec/dummy/app/models/posts_with_collection_and_file.rb
|
308
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
309
|
-
- spec/dummy/app/views/post_with_collections/_form.html.erb
|
310
|
-
- spec/dummy/app/views/post_with_collections/edit.html.erb
|
311
|
-
- spec/dummy/app/views/post_with_collections/index.html.erb
|
312
|
-
- spec/dummy/app/views/post_with_collections/new.html.erb
|
313
|
-
- spec/dummy/app/views/post_with_collections/show.html.erb
|
314
|
-
- spec/dummy/app/views/post_with_collections/show.json.jbuilder
|
315
|
-
- spec/dummy/app/views/posts/_form.html.erb
|
316
|
-
- spec/dummy/app/views/posts/edit.html.erb
|
317
|
-
- spec/dummy/app/views/posts/index.html.erb
|
318
|
-
- spec/dummy/app/views/posts/new.html.erb
|
319
|
-
- spec/dummy/app/views/posts/post.json.builder
|
320
|
-
- spec/dummy/app/views/posts/show.html.erb
|
321
|
-
- spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb
|
322
|
-
- spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb
|
323
|
-
- spec/dummy/app/views/posts_with_collection_and_files/index.html.erb
|
324
|
-
- spec/dummy/app/views/posts_with_collection_and_files/new.html.erb
|
325
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.html.erb
|
326
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder
|
327
|
-
- spec/dummy/bin/bundle
|
328
|
-
- spec/dummy/bin/rails
|
329
|
-
- spec/dummy/bin/rake
|
330
|
-
- spec/dummy/config.ru
|
331
|
-
- spec/dummy/config/application.rb
|
332
|
-
- spec/dummy/config/boot.rb
|
333
|
-
- spec/dummy/config/database.yml
|
334
|
-
- spec/dummy/config/environment.rb
|
335
|
-
- spec/dummy/config/environments/development.rb
|
336
|
-
- spec/dummy/config/environments/production.rb
|
337
|
-
- spec/dummy/config/environments/test.rb
|
338
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
339
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
340
|
-
- spec/dummy/config/initializers/formtastic.rb
|
341
|
-
- spec/dummy/config/initializers/inflections.rb
|
342
|
-
- spec/dummy/config/initializers/mime_types.rb
|
343
|
-
- spec/dummy/config/initializers/secret_token.rb
|
344
|
-
- spec/dummy/config/initializers/session_store.rb
|
345
|
-
- spec/dummy/config/initializers/simple_form.rb
|
346
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
347
|
-
- spec/dummy/config/locales/en.yml
|
348
|
-
- spec/dummy/config/locales/simple_form.en.yml
|
349
|
-
- spec/dummy/config/routes.rb
|
350
|
-
- spec/dummy/config/uploadcare.yml
|
351
|
-
- spec/dummy/db/migrate/20171012001801_create_tables.rb
|
352
|
-
- spec/dummy/db/schema.rb
|
353
|
-
- spec/dummy/db/test.sqlite3
|
354
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
355
|
-
- spec/dummy/log/development.log
|
356
|
-
- spec/dummy/log/test.log
|
357
|
-
- spec/dummy/public/404.html
|
358
|
-
- spec/dummy/public/422.html
|
359
|
-
- spec/dummy/public/500.html
|
360
|
-
- spec/dummy/public/favicon.ico
|
361
|
-
- spec/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F
|
362
|
-
- spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F
|
363
|
-
- spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F
|
364
|
-
- spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F
|
365
|
-
- spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F
|
366
|
-
- spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F
|
367
|
-
- spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F
|
368
|
-
- spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F
|
369
|
-
- spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F
|
370
|
-
- spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F
|
371
|
-
- spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F
|
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
|
372
177
|
- spec/generators/uploadcare_config_generator_spec.rb
|
373
|
-
- spec/helpers/form_helpers_has_file_spec.rb
|
374
|
-
- spec/helpers/form_helpers_has_group_spec.rb
|
375
|
-
- spec/helpers/form_helpers_spec.rb
|
376
|
-
- spec/helpers/formtastic_spec.rb
|
377
|
-
- spec/helpers/include_tags_spec.rb
|
378
|
-
- spec/helpers/simple_form_spec.rb
|
379
|
-
- spec/helpers/uploader_tags_spec.rb
|
380
|
-
- spec/models/has_both_file_and_group_spec.rb
|
381
|
-
- spec/models/has_file_spec.rb
|
382
|
-
- spec/models/has_group_spec.rb
|
383
|
-
- spec/objects/file_spec.rb
|
384
|
-
- spec/objects/group_spec.rb
|
385
|
-
- spec/operations_spec.rb
|
386
178
|
- spec/spec_helper.rb
|
387
179
|
- spec/support/generators.rb
|
388
|
-
- spec/
|
389
|
-
- spec/uploadcare/rails/
|
390
|
-
- spec/
|
391
|
-
- spec/
|
392
|
-
- spec/
|
180
|
+
- spec/support/vcr.rb
|
181
|
+
- spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
|
182
|
+
- spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
|
183
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
|
184
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
|
185
|
+
- spec/uploadcare/rails/api/rest/conversion_api_spec.rb
|
186
|
+
- spec/uploadcare/rails/api/rest/file_api_spec.rb
|
187
|
+
- spec/uploadcare/rails/api/rest/group_api_spec.rb
|
188
|
+
- spec/uploadcare/rails/api/rest/project_api_spec.rb
|
189
|
+
- spec/uploadcare/rails/api/rest/webhook_api_spec.rb
|
190
|
+
- spec/uploadcare/rails/api/upload/upload_api_spec.rb
|
191
|
+
- spec/uploadcare/rails/jobs/delete_file_job_spec.rb
|
192
|
+
- spec/uploadcare/rails/jobs/store_file_job_spec.rb
|
193
|
+
- spec/uploadcare/rails/jobs/store_group_job_spec.rb
|
194
|
+
- spec/uploadcare/rails/objects/file_spec.rb
|
195
|
+
- spec/uploadcare/rails/objects/group_spec.rb
|
196
|
+
- spec/uploadcare/rails/services/id_extractor_spec.rb
|
197
|
+
- spec/uploadcare/rails/transformations/image_transformations_spec.rb
|
198
|
+
- spec/uploadcare/rails_spec.rb
|
393
199
|
homepage: https://uploadcare.com/docs/libs/
|
394
200
|
licenses:
|
395
201
|
- MIT
|
@@ -404,134 +210,64 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
404
210
|
requirements:
|
405
211
|
- - ">="
|
406
212
|
- !ruby/object:Gem::Version
|
407
|
-
version:
|
213
|
+
version: 2.1.0
|
408
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
409
215
|
requirements:
|
410
|
-
- - "
|
216
|
+
- - ">="
|
411
217
|
- !ruby/object:Gem::Version
|
412
|
-
version:
|
218
|
+
version: '0'
|
413
219
|
requirements: []
|
414
|
-
|
415
|
-
rubygems_version: 2.7.7
|
220
|
+
rubygems_version: 3.0.1
|
416
221
|
signing_key:
|
417
222
|
specification_version: 4
|
418
223
|
summary: Rails gem for Uploadcare
|
419
224
|
test_files:
|
420
|
-
- spec/helpers/simple_form_spec.rb
|
421
|
-
- spec/helpers/form_helpers_has_group_spec.rb
|
422
|
-
- spec/helpers/include_tags_spec.rb
|
423
|
-
- spec/helpers/uploader_tags_spec.rb
|
424
|
-
- spec/helpers/form_helpers_spec.rb
|
425
|
-
- spec/helpers/form_helpers_has_file_spec.rb
|
426
|
-
- spec/helpers/formtastic_spec.rb
|
427
|
-
- spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml
|
428
|
-
- spec/cassettes/has_uploadcare_group_save.yml
|
429
|
-
- spec/cassettes/group_cahsing_file_load.yml
|
430
|
-
- spec/cassettes/Uploadcare_Rails_File/should_load_itself.yml
|
431
|
-
- spec/cassettes/load_group.yml
|
432
|
-
- spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml
|
433
|
-
- spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml
|
434
|
-
- spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml
|
435
|
-
- spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml
|
436
|
-
- spec/objects/file_spec.rb
|
437
|
-
- spec/objects/group_spec.rb
|
438
|
-
- spec/uploadcare/rails/settings_spec.rb
|
439
|
-
- spec/dummy/log/test.log
|
440
|
-
- spec/dummy/log/development.log
|
441
|
-
- spec/dummy/public/404.html
|
442
|
-
- spec/dummy/public/422.html
|
443
|
-
- spec/dummy/public/favicon.ico
|
444
|
-
- spec/dummy/public/500.html
|
445
|
-
- spec/dummy/config/routes.rb
|
446
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
447
|
-
- spec/dummy/config/initializers/formtastic.rb
|
448
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
449
|
-
- spec/dummy/config/initializers/session_store.rb
|
450
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
451
|
-
- spec/dummy/config/initializers/simple_form.rb
|
452
|
-
- spec/dummy/config/initializers/inflections.rb
|
453
|
-
- spec/dummy/config/initializers/secret_token.rb
|
454
|
-
- spec/dummy/config/initializers/mime_types.rb
|
455
|
-
- spec/dummy/config/uploadcare.yml
|
456
|
-
- spec/dummy/config/environment.rb
|
457
|
-
- spec/dummy/config/application.rb
|
458
|
-
- spec/dummy/config/database.yml
|
459
|
-
- spec/dummy/config/locales/en.yml
|
460
|
-
- spec/dummy/config/locales/simple_form.en.yml
|
461
|
-
- spec/dummy/config/environments/test.rb
|
462
|
-
- spec/dummy/config/environments/development.rb
|
463
|
-
- spec/dummy/config/environments/production.rb
|
464
|
-
- spec/dummy/config/boot.rb
|
465
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
466
|
-
- spec/dummy/app/views/posts/new.html.erb
|
467
|
-
- spec/dummy/app/views/posts/show.html.erb
|
468
|
-
- spec/dummy/app/views/posts/edit.html.erb
|
469
|
-
- spec/dummy/app/views/posts/_form.html.erb
|
470
|
-
- spec/dummy/app/views/posts/index.html.erb
|
471
|
-
- spec/dummy/app/views/posts/post.json.builder
|
472
|
-
- spec/dummy/app/views/post_with_collections/new.html.erb
|
473
|
-
- spec/dummy/app/views/post_with_collections/show.html.erb
|
474
|
-
- spec/dummy/app/views/post_with_collections/edit.html.erb
|
475
|
-
- spec/dummy/app/views/post_with_collections/_form.html.erb
|
476
|
-
- spec/dummy/app/views/post_with_collections/index.html.erb
|
477
|
-
- spec/dummy/app/views/post_with_collections/show.json.jbuilder
|
478
|
-
- spec/dummy/app/views/posts_with_collection_and_files/new.html.erb
|
479
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.html.erb
|
480
|
-
- spec/dummy/app/views/posts_with_collection_and_files/edit.html.erb
|
481
|
-
- spec/dummy/app/views/posts_with_collection_and_files/_form.html.erb
|
482
|
-
- spec/dummy/app/views/posts_with_collection_and_files/index.html.erb
|
483
|
-
- spec/dummy/app/views/posts_with_collection_and_files/show.json.jbuilder
|
484
|
-
- spec/dummy/app/helpers/posts_helper.rb
|
485
|
-
- spec/dummy/app/helpers/application_helper.rb
|
486
|
-
- spec/dummy/app/helpers/post_with_collections_helper.rb
|
487
|
-
- spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb
|
488
|
-
- spec/dummy/app/assets/javascripts/application.js
|
489
|
-
- spec/dummy/app/assets/javascripts/post_with_collections.js
|
490
|
-
- spec/dummy/app/assets/javascripts/posts_with_collection_and_files.js
|
491
|
-
- spec/dummy/app/assets/javascripts/posts.js
|
492
|
-
- spec/dummy/app/assets/stylesheets/posts.css
|
493
|
-
- spec/dummy/app/assets/stylesheets/scaffold.css
|
494
|
-
- spec/dummy/app/assets/stylesheets/post_with_collections.css
|
495
|
-
- spec/dummy/app/assets/stylesheets/posts_with_collection_and_files.css
|
496
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
497
|
-
- spec/dummy/app/models/post.rb
|
498
|
-
- spec/dummy/app/models/post_with_collection.rb
|
499
|
-
- spec/dummy/app/models/posts_with_collection_and_file.rb
|
500
|
-
- spec/dummy/app/controllers/posts_controller.rb
|
501
|
-
- spec/dummy/app/controllers/post_with_collections_controller.rb
|
502
|
-
- spec/dummy/app/controllers/posts_with_collection_and_files_controller.rb
|
503
|
-
- spec/dummy/app/controllers/application_controller.rb
|
504
|
-
- spec/dummy/README.rdoc
|
505
|
-
- spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F
|
506
|
-
- spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F
|
507
|
-
- spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F
|
508
|
-
- spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F
|
509
|
-
- spec/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F
|
510
|
-
- spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F
|
511
|
-
- spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F
|
512
|
-
- spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F
|
513
|
-
- spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F
|
514
|
-
- spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F
|
515
|
-
- spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F
|
516
|
-
- spec/dummy/config.ru
|
517
|
-
- spec/dummy/lib/templates/erb/scaffold/_form.html.erb
|
518
|
-
- spec/dummy/Rakefile
|
519
|
-
- spec/dummy/db/migrate/20171012001801_create_tables.rb
|
520
|
-
- spec/dummy/db/test.sqlite3
|
521
|
-
- spec/dummy/db/schema.rb
|
522
|
-
- spec/dummy/bin/bundle
|
523
|
-
- spec/dummy/bin/rake
|
524
|
-
- spec/dummy/bin/rails
|
525
|
-
- spec/models/has_group_spec.rb
|
526
|
-
- spec/models/has_both_file_and_group_spec.rb
|
527
|
-
- spec/models/has_file_spec.rb
|
528
|
-
- spec/operations_spec.rb
|
529
|
-
- spec/generators/uploadcare_config_generator_spec.rb
|
530
225
|
- spec/spec_helper.rb
|
531
|
-
- spec/
|
532
|
-
- spec/
|
226
|
+
- spec/generators/uploadcare_config_generator_spec.rb
|
227
|
+
- spec/uploadcare/rails/api/rest/file_api_spec.rb
|
228
|
+
- spec/uploadcare/rails/api/rest/project_api_spec.rb
|
229
|
+
- spec/uploadcare/rails/api/rest/webhook_api_spec.rb
|
230
|
+
- spec/uploadcare/rails/api/rest/group_api_spec.rb
|
231
|
+
- spec/uploadcare/rails/api/rest/conversion_api_spec.rb
|
232
|
+
- spec/uploadcare/rails/api/upload/upload_api_spec.rb
|
233
|
+
- spec/uploadcare/rails/objects/group_spec.rb
|
234
|
+
- spec/uploadcare/rails/objects/file_spec.rb
|
235
|
+
- spec/uploadcare/rails/jobs/delete_file_job_spec.rb
|
236
|
+
- spec/uploadcare/rails/jobs/store_file_job_spec.rb
|
237
|
+
- spec/uploadcare/rails/jobs/store_group_job_spec.rb
|
238
|
+
- spec/uploadcare/rails/transformations/image_transformations_spec.rb
|
239
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
|
240
|
+
- spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
|
241
|
+
- spec/uploadcare/rails/services/id_extractor_spec.rb
|
242
|
+
- spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
|
243
|
+
- spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
|
244
|
+
- spec/uploadcare/rails_spec.rb
|
533
245
|
- spec/support/generators.rb
|
534
|
-
- spec/
|
535
|
-
- spec/
|
536
|
-
- spec/
|
537
|
-
- spec/
|
246
|
+
- spec/support/vcr.rb
|
247
|
+
- spec/fixtures/vcr_cassettes/group_api_store_group.yml
|
248
|
+
- spec/fixtures/vcr_cassettes/file_api_store_file.yml
|
249
|
+
- spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
|
250
|
+
- spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
|
251
|
+
- spec/fixtures/vcr_cassettes/group_api_get_group.yml
|
252
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_file.yml
|
253
|
+
- spec/fixtures/vcr_cassettes/file_api_delete_files.yml
|
254
|
+
- spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
|
255
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
|
256
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
|
257
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
|
258
|
+
- spec/fixtures/vcr_cassettes/file_api_copy_file.yml
|
259
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
|
260
|
+
- spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
|
261
|
+
- spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
|
262
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
|
263
|
+
- spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
|
264
|
+
- spec/fixtures/vcr_cassettes/file_api_get_file.yml
|
265
|
+
- spec/fixtures/vcr_cassettes/group_api_create_group.yml
|
266
|
+
- spec/fixtures/vcr_cassettes/file_api_load_file.yml
|
267
|
+
- spec/fixtures/vcr_cassettes/project_api_get_project.yml
|
268
|
+
- spec/fixtures/vcr_cassettes/file_api_store_files.yml
|
269
|
+
- spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
|
270
|
+
- spec/fixtures/vcr_cassettes/file_api_get_files.yml
|
271
|
+
- spec/fixtures/vcr_cassettes/group_api_get_groups.yml
|
272
|
+
- spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
|
273
|
+
- spec/fixtures/kitten.jpeg
|
@@ -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
|