cloudinary 1.12.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  4. data/CHANGELOG.md +62 -0
  5. data/cloudinary.gemspec +17 -4
  6. data/lib/active_storage/service/cloudinary_service.rb +58 -16
  7. data/lib/cloudinary.rb +22 -18
  8. data/lib/cloudinary/api.rb +3 -2
  9. data/lib/cloudinary/carrier_wave.rb +2 -1
  10. data/lib/cloudinary/carrier_wave/remote.rb +2 -2
  11. data/lib/cloudinary/cloudinary_controller.rb +2 -4
  12. data/lib/cloudinary/helper.rb +30 -3
  13. data/lib/cloudinary/railtie.rb +6 -2
  14. data/lib/cloudinary/uploader.rb +3 -2
  15. data/lib/cloudinary/utils.rb +12 -9
  16. data/lib/cloudinary/version.rb +1 -1
  17. data/vendor/assets/javascripts/cloudinary/jquery.cloudinary.js +2 -2
  18. metadata +12 -193
  19. data/spec/access_control_spec.rb +0 -102
  20. data/spec/active_storage/Gemfile +0 -12
  21. data/spec/active_storage/application_system_test_case.rb +0 -5
  22. data/spec/active_storage/database/create_users_migration.rb +0 -9
  23. data/spec/active_storage/database/setup.rb +0 -7
  24. data/spec/active_storage/dummy/Rakefile +0 -5
  25. data/spec/active_storage/dummy/app/assets/config/manifest.js +0 -3
  26. data/spec/active_storage/dummy/app/assets/javascripts/application.js +0 -13
  27. data/spec/active_storage/dummy/app/assets/stylesheets/application.css +0 -15
  28. data/spec/active_storage/dummy/app/controllers/application_controller.rb +0 -5
  29. data/spec/active_storage/dummy/app/helpers/application_helper.rb +0 -4
  30. data/spec/active_storage/dummy/app/jobs/application_job.rb +0 -4
  31. data/spec/active_storage/dummy/app/models/application_record.rb +0 -5
  32. data/spec/active_storage/dummy/app/views/layouts/application.html.erb +0 -14
  33. data/spec/active_storage/dummy/bin/bundle +0 -5
  34. data/spec/active_storage/dummy/bin/rails +0 -6
  35. data/spec/active_storage/dummy/bin/rake +0 -6
  36. data/spec/active_storage/dummy/bin/yarn +0 -11
  37. data/spec/active_storage/dummy/config.ru +0 -7
  38. data/spec/active_storage/dummy/config/application.rb +0 -22
  39. data/spec/active_storage/dummy/config/boot.rb +0 -7
  40. data/spec/active_storage/dummy/config/database.yml +0 -25
  41. data/spec/active_storage/dummy/config/environment.rb +0 -7
  42. data/spec/active_storage/dummy/config/environments/development.rb +0 -52
  43. data/spec/active_storage/dummy/config/environments/production.rb +0 -83
  44. data/spec/active_storage/dummy/config/environments/test.rb +0 -38
  45. data/spec/active_storage/dummy/config/initializers/application_controller_renderer.rb +0 -7
  46. data/spec/active_storage/dummy/config/initializers/assets.rb +0 -16
  47. data/spec/active_storage/dummy/config/initializers/backtrace_silencers.rb +0 -8
  48. data/spec/active_storage/dummy/config/initializers/cookies_serializer.rb +0 -7
  49. data/spec/active_storage/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  50. data/spec/active_storage/dummy/config/initializers/inflections.rb +0 -17
  51. data/spec/active_storage/dummy/config/initializers/mime_types.rb +0 -5
  52. data/spec/active_storage/dummy/config/initializers/wrap_parameters.rb +0 -16
  53. data/spec/active_storage/dummy/config/routes.rb +0 -4
  54. data/spec/active_storage/dummy/config/secrets.yml +0 -32
  55. data/spec/active_storage/dummy/config/spring.rb +0 -8
  56. data/spec/active_storage/dummy/config/storage.yml +0 -3
  57. data/spec/active_storage/dummy/config/webpacker.yml +0 -72
  58. data/spec/active_storage/dummy/package.json +0 -5
  59. data/spec/active_storage/dummy/public/404.html +0 -67
  60. data/spec/active_storage/dummy/public/422.html +0 -67
  61. data/spec/active_storage/dummy/public/500.html +0 -66
  62. data/spec/active_storage/dummy/public/apple-touch-icon-precomposed.png +0 -0
  63. data/spec/active_storage/dummy/public/apple-touch-icon.png +0 -0
  64. data/spec/active_storage/dummy/public/favicon.ico +0 -0
  65. data/spec/active_storage/fixtures/files/colors.bmp +0 -0
  66. data/spec/active_storage/fixtures/files/empty_file.txt +0 -0
  67. data/spec/active_storage/fixtures/files/favicon.ico +0 -0
  68. data/spec/active_storage/fixtures/files/icon.psd +0 -0
  69. data/spec/active_storage/fixtures/files/icon.svg +0 -13
  70. data/spec/active_storage/fixtures/files/image.gif +0 -0
  71. data/spec/active_storage/fixtures/files/racecar.jpg +0 -0
  72. data/spec/active_storage/fixtures/files/racecar.tif +0 -0
  73. data/spec/active_storage/fixtures/files/racecar_rotated.jpg +0 -0
  74. data/spec/active_storage/fixtures/files/report.pdf +0 -0
  75. data/spec/active_storage/fixtures/files/rotated_video.mp4 +0 -0
  76. data/spec/active_storage/fixtures/files/video.mp4 +0 -0
  77. data/spec/active_storage/fixtures/files/video_with_rectangular_samples.mp4 +0 -0
  78. data/spec/active_storage/fixtures/files/video_with_undefined_display_aspect_ratio.mp4 +0 -0
  79. data/spec/active_storage/fixtures/files/video_without_video_stream.mp4 +0 -0
  80. data/spec/active_storage/service/cloudinary_service_spec.rb +0 -92
  81. data/spec/active_storage/service/configurations.yml +0 -4
  82. data/spec/active_storage/test_helper.rb +0 -43
  83. data/spec/api_spec.rb +0 -623
  84. data/spec/archive_spec.rb +0 -145
  85. data/spec/auth_token_spec.rb +0 -77
  86. data/spec/cache_spec.rb +0 -109
  87. data/spec/cloudinary_helper_spec.rb +0 -327
  88. data/spec/cloudinary_spec.rb +0 -56
  89. data/spec/data/sync_static/app/assets/javascripts/1.coffee +0 -1
  90. data/spec/data/sync_static/app/assets/javascripts/1.js +0 -1
  91. data/spec/data/sync_static/app/assets/stylesheets/1.css +0 -3
  92. data/spec/docx.docx +0 -0
  93. data/spec/favicon.ico +0 -0
  94. data/spec/image_spec.rb +0 -107
  95. data/spec/logo.png +0 -0
  96. data/spec/movie.mp4 +0 -0
  97. data/spec/rake_spec.rb +0 -160
  98. data/spec/sample_asset_file.tsv +0 -4
  99. data/spec/search_spec.rb +0 -109
  100. data/spec/spec_helper.rb +0 -273
  101. data/spec/storage_spec.rb +0 -44
  102. data/spec/streaminig_profiles_api_spec.rb +0 -74
  103. data/spec/support/helpers/temp_file_helpers.rb +0 -22
  104. data/spec/support/shared_contexts/rake.rb +0 -19
  105. data/spec/uploader_spec.rb +0 -409
  106. data/spec/utils_methods_spec.rb +0 -81
  107. data/spec/utils_spec.rb +0 -1052
  108. data/spec/video_tag_spec.rb +0 -253
  109. data/spec/video_url_spec.rb +0 -185
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # The test environment is used exclusively to run your application's
7
- # test suite. You never need to work with it otherwise. Remember that
8
- # your test database is "scratch space" for the test suite and is wiped
9
- # and recreated between test runs. Don't rely on the data there!
10
- config.cache_classes = true
11
-
12
- # Do not eager load code on boot. This avoids loading your whole application
13
- # just for the purpose of running a single test. If you are using a tool that
14
- # preloads Rails for running tests, you may have to set it to true.
15
- config.eager_load = false
16
-
17
- # Configure public file server for tests with Cache-Control for performance.
18
- config.public_file_server.enabled = true
19
- config.public_file_server.headers = {
20
- "Cache-Control" => "public, max-age=#{1.hour.seconds.to_i}"
21
- }
22
-
23
- # Show full error reports and disable caching.
24
- config.consider_all_requests_local = true
25
- config.action_controller.perform_caching = false
26
-
27
- # Raise exceptions instead of rendering exception templates.
28
- config.action_dispatch.show_exceptions = false
29
-
30
- # Print deprecation notices to the stderr.
31
- config.active_support.deprecation = :stderr
32
-
33
- # Disable request forgery protection in test environment.
34
- config.action_controller.allow_forgery_protection = false
35
-
36
- # Raises error for missing translations
37
- # config.action_view.raise_on_missing_translations = true
38
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # ApplicationController.renderer.defaults.merge!(
5
- # http_host: 'example.org',
6
- # https: false
7
- # )
@@ -1,16 +0,0 @@
1
- # # frozen_string_literal: true
2
- #
3
- # # Be sure to restart your server when you modify this file.
4
- #
5
- # # Version of your assets, change this if you want to expire all your assets.
6
- # Rails.application.config.assets.version = "1.0"
7
- #
8
- # # Add additional assets to the asset load path.
9
- # # Rails.application.config.assets.paths << Emoji.images_path
10
- # # Add Yarn node_modules folder to the asset load path.
11
- # Rails.application.config.assets.paths << Rails.root.join("node_modules")
12
- #
13
- # # Precompile additional assets.
14
- # # application.js, application.css, and all non-JS/CSS in the app/assets
15
- # # folder are already added.
16
- # # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
5
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
6
-
7
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
8
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Specify a serializer for the signed and encrypted cookie jars.
6
- # Valid options are :json, :marshal, and :hybrid.
7
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Configure sensitive parameters which will be filtered from the log file.
6
- Rails.application.config.filter_parameters += [:password]
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Add new inflection rules using the following format. Inflections
5
- # are locale specific, and you may define rules for as many different
6
- # locales as you wish. All of these examples are active by default:
7
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
8
- # inflect.plural /^(ox)$/i, '\1en'
9
- # inflect.singular /^(ox)en/i, '\1'
10
- # inflect.irregular 'person', 'people'
11
- # inflect.uncountable %w( fish sheep )
12
- # end
13
-
14
- # These inflection rules are supported but not enabled by default:
15
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
16
- # inflect.acronym 'RESTful'
17
- # end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Add new mime types for use in respond_to blocks:
5
- # Mime::Type.register "text/richtext", :rtf
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # This file contains settings for ActionController::ParamsWrapper which
6
- # is enabled by default.
7
-
8
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
9
- ActiveSupport.on_load(:action_controller) do
10
- wrap_parameters format: [:json]
11
- end
12
-
13
- # To enable root element in JSON for ActiveRecord objects.
14
- # ActiveSupport.on_load(:active_record) do
15
- # self.include_root_in_json = true
16
- # end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Rails.application.routes.draw do
4
- end
@@ -1,32 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rails secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- # Shared secrets are available across all environments.
14
-
15
- # shared:
16
- # api_key: a1B2c3D4e5F6
17
-
18
- # Environmental secrets are only available for that specific environment.
19
-
20
- development:
21
- secret_key_base: e0ef5744b10d988669be6b2660c259749779964f3dcb487fd6199743b3558e2d89f7681d6a15d16d144e28979cbdae41885f4fb4c2cf56ff92ac22df282ffb66
22
-
23
- test:
24
- secret_key_base: 6fb1f3a828a8dcd6ac8dc07b43be4a5265ad64379120d417252a1578fe1f790e7b85ade4f95994de1ac8fb78581690de6e3a6ac4af36a0f0139667418c750d05
25
-
26
- # Do not keep production secrets in the unencrypted secrets file.
27
- # Instead, either read values from the environment.
28
- # Or, use `rails secrets:setup` to configure encrypted secrets
29
- # and move the `production:` environment over there.
30
-
31
- production:
32
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- %w(
4
- .ruby-version
5
- .rbenv-vars
6
- tmp/restart.txt
7
- tmp/caching-dev.txt
8
- ).each { |path| Spring.watch(path) }
@@ -1,3 +0,0 @@
1
- local:
2
- service: Disk
3
- root: <%= Rails.root.join("storage") %>
@@ -1,72 +0,0 @@
1
- # Note: You must restart bin/webpack-dev-server for changes to take effect
2
-
3
- default: &default
4
- source_path: app/javascript
5
- source_entry_path: packs
6
- public_output_path: packs
7
- cache_path: tmp/cache/webpacker
8
- check_yarn_integrity: false
9
-
10
- # Additional paths webpack should lookup modules
11
- # ['app/assets', 'engine/foo/app/assets']
12
- resolved_paths: []
13
-
14
- # Reload manifest.json on all requests so we reload latest compiled packs
15
- cache_manifest: false
16
-
17
- extensions:
18
- - .js
19
- - .sass
20
- - .scss
21
- - .css
22
- - .module.sass
23
- - .module.scss
24
- - .module.css
25
- - .png
26
- - .svg
27
- - .gif
28
- - .jpeg
29
- - .jpg
30
-
31
- development:
32
- <<: *default
33
- compile: true
34
-
35
- # Verifies that versions and hashed value of the package contents in the project's package.json
36
- check_yarn_integrity: true
37
-
38
- # Reference: https://webpack.js.org/configuration/dev-server/
39
- dev_server:
40
- https: false
41
- host: localhost
42
- port: 3035
43
- public: localhost:3035
44
- hmr: false
45
- # Inline should be set to true if using HMR
46
- inline: true
47
- overlay: true
48
- compress: true
49
- disable_host_check: true
50
- use_local_ip: false
51
- quiet: false
52
- headers:
53
- 'Access-Control-Allow-Origin': '*'
54
- watch_options:
55
- ignored: /node_modules/
56
-
57
-
58
- test:
59
- <<: *default
60
- compile: true
61
-
62
- # Compile test packs to a separate directory
63
- public_output_path: packs-test
64
-
65
- production:
66
- <<: *default
67
-
68
- # Production depends on precompilation of packs prior to booting for performance.
69
- compile: false
70
-
71
- # Cache manifest.json for performance
72
- cache_manifest: true
@@ -1,5 +0,0 @@
1
- {
2
- "name": "dummy",
3
- "private": true,
4
- "dependencies": {}
5
- }
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>