uploadcare-rails 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uploadcare/rails/version.rb +1 -1
- data/lib/uploadcare-rails.rb +9 -0
- metadata +4 -3
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
|
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,7 +1,7 @@
|
|
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)"
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -155,7 +155,8 @@ licenses:
|
|
155
155
|
- MIT
|
156
156
|
metadata:
|
157
157
|
github: https://github.com/uploadcare/uploadcare-rails
|
158
|
-
|
158
|
+
bug_tracker_uri: https://github.com/uploadcare/uploadcare-rails/issues
|
159
|
+
changelog_uri: https://github.com/uploadcare/uploadcare-rails/blob/main/CHANGELOG.md
|
159
160
|
rubygems_mfa_required: 'true'
|
160
161
|
post_install_message:
|
161
162
|
rdoc_options: []
|