uploadcare-rails 3.3.0 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 225f89d33b93878d70c384b7c91f5397851cffa60259fb9cb4cb379f7ee97d16
|
4
|
+
data.tar.gz: c5c5069a828b241971809cfb3c84cf305bbff7e8fc8847afd9afb79f6c7973b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee85739c5ed15ae4f447e4ff75da6f3aaa07be87a378d513cb3b34231d2f48b03b61f0b46a64d06d4efc97e65b54303ce1e147246cc47571035eff23a67a046d
|
7
|
+
data.tar.gz: c284143183caedd74fec7fcc693d8223707b94933df3ac9c581033de785cbaa533cdff8dba36ccfe9418a9d2e83a88b252298eb4c1b0c0914ca8f45d37dbb44e
|
@@ -28,7 +28,7 @@ module Uploadcare
|
|
28
28
|
object_name,
|
29
29
|
method_name,
|
30
30
|
uploadcare_uploader_options(
|
31
|
-
options.
|
31
|
+
options.reverse_merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
|
32
32
|
)
|
33
33
|
)
|
34
34
|
end
|
data/lib/uploadcare-rails.rb
CHANGED
@@ -20,6 +20,15 @@ module Uploadcare
|
|
20
20
|
|
21
21
|
def configure
|
22
22
|
yield configuration
|
23
|
+
overwrite_ruby_config
|
24
|
+
end
|
25
|
+
|
26
|
+
def overwrite_ruby_config
|
27
|
+
# copy Rails config to Ruby config
|
28
|
+
%i[public_key secret_key].each do |param_name|
|
29
|
+
value = configuration.public_send(param_name)
|
30
|
+
Uploadcare.config[param_name] = value unless value.nil?
|
31
|
+
end
|
23
32
|
end
|
24
33
|
|
25
34
|
def configuration
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadcare-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
|
8
|
+
- kraft001 (Konstantin Rafalskii)
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-26 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
@@ -109,8 +110,8 @@ dependencies:
|
|
109
110
|
- !ruby/object:Gem::Version
|
110
111
|
version: '3.18'
|
111
112
|
description: |
|
112
|
-
Rails
|
113
|
-
|
113
|
+
Rails API client (based on uploadcare-ruby) that handles uploads
|
114
|
+
and further operations with files by wrapping Uploadcare Upload and REST APIs.
|
114
115
|
email:
|
115
116
|
- hello@uploadcare.com
|
116
117
|
executables: []
|
@@ -149,12 +150,13 @@ files:
|
|
149
150
|
- lib/uploadcare/rails/services/id_extractor.rb
|
150
151
|
- lib/uploadcare/rails/transformations/image_transformations.rb
|
151
152
|
- lib/uploadcare/rails/version.rb
|
152
|
-
homepage: https://
|
153
|
+
homepage: https://github.com/uploadcare/uploadcare-rails
|
153
154
|
licenses:
|
154
155
|
- MIT
|
155
156
|
metadata:
|
156
157
|
github: https://github.com/uploadcare/uploadcare-rails
|
157
|
-
|
158
|
+
bug_tracker_uri: https://github.com/uploadcare/uploadcare-rails/issues
|
159
|
+
changelog_uri: https://github.com/uploadcare/uploadcare-rails/blob/main/CHANGELOG.md
|
158
160
|
rubygems_mfa_required: 'true'
|
159
161
|
post_install_message:
|
160
162
|
rdoc_options: []
|