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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b5212ac5a85f857b3e200796350a52c8c2c8720c75d4e7cb085cf8e9961dc99
4
- data.tar.gz: d1a9cd9844d7e2f8aa5fbd69116453b5d53a6a20f3af49f05b9a6739c5b983d2
3
+ metadata.gz: 225f89d33b93878d70c384b7c91f5397851cffa60259fb9cb4cb379f7ee97d16
4
+ data.tar.gz: c5c5069a828b241971809cfb3c84cf305bbff7e8fc8847afd9afb79f6c7973b8
5
5
  SHA512:
6
- metadata.gz: 1c9db04be04cdb655ca8d10c95c91f1c2cc25a34069eb56f6bc68c757d66e603915cf5ed2baa26872d61b476435987404d8caf54315642b166b6c595f87ee943
7
- data.tar.gz: 2c877fe4e2679e53de8385aa39f235c459833db1e5ddb82e63b5c91b12e75aef556682f17d13247ae3024654ddf6ba26d31a2f34031b24e3e09667c9e2d25970
6
+ metadata.gz: ee85739c5ed15ae4f447e4ff75da6f3aaa07be87a378d513cb3b34231d2f48b03b61f0b46a64d06d4efc97e65b54303ce1e147246cc47571035eff23a67a046d
7
+ data.tar.gz: c284143183caedd74fec7fcc693d8223707b94933df3ac9c581033de785cbaa533cdff8dba36ccfe9418a9d2e83a88b252298eb4c1b0c0914ca8f45d37dbb44e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uploadcare
4
4
  module Rails
5
- VERSION = '3.3.1'
5
+ VERSION = '3.3.2'
6
6
  end
7
7
  end
@@ -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.1
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-20 00:00:00.000000000 Z
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
- issue_tracker: https://github.com/uploadcare/uploadcare-rails/issues
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: []