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: 8244c46a6ef52e75965e01f0cfe4471c998e57b6243d220ee2a20ea4a2c088fb
4
- data.tar.gz: bc192f9e03115994b300f32a7de2fe31e033efc5b04df3de54f0efc8d4790775
3
+ metadata.gz: 225f89d33b93878d70c384b7c91f5397851cffa60259fb9cb4cb379f7ee97d16
4
+ data.tar.gz: c5c5069a828b241971809cfb3c84cf305bbff7e8fc8847afd9afb79f6c7973b8
5
5
  SHA512:
6
- metadata.gz: 0a717bf7a7f5ca9f0a9ca683583fa554e0d25145e35dc994520be5e290247a13e4eec22faf19ab2a1883a3fd7c01df0624256889d0ef1af3583d616a303134bb
7
- data.tar.gz: 30ceb8ee793d456914cb051ffc907bd18639bdf44d06ac9456ee8a2fe05de45054215db6899db6e46a8d8a3a13b29f4ede28de93d14e6e1e92562df73090cb1f
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.merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
31
+ options.reverse_merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
32
32
  )
33
33
  )
34
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uploadcare
4
4
  module Rails
5
- VERSION = '3.3.0'
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,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.0
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-16 00:00:00.000000000 Z
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 wrapper for Uploadcare service.
113
- Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
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://uploadcare.com/docs/integrations/
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
- 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
158
160
  rubygems_mfa_required: 'true'
159
161
  post_install_message:
160
162
  rdoc_options: []