promethee 5.1.0 → 5.1.1

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: 6d7f8e41a3f9f4d97f10f4916e5342f235cc6b01ab86e249a67a9c806f27dda4
4
- data.tar.gz: dd0d538434b08dce1dd22f0caf6a61ca778feb01c82f8f2640688357d32ade30
3
+ metadata.gz: 3bb39cdccf78e1bfc3dbf89569ef1bc0bc23c17c4deecb948de0239412c33213
4
+ data.tar.gz: 62328148ed43a02361b7389b0b38e33c14f32283b80682c7ac315483e8efe172
5
5
  SHA512:
6
- metadata.gz: 0dc6b2d1305f0cf9d62b85185aab3ea9dbc97b4cff5b014bffb5aa9eb7f133ad288035c4c0521d0d7e82c0520138100ae9c7473b711aa3ea22bfe8ecdf369e26
7
- data.tar.gz: 0df8196e97b3a814d6e32d9208104d9708cb7a599465b633125d926e324418591bc50d58d70971ea508f676b45ca82058c40103de52d4b7158abb84013f0d4b9
6
+ metadata.gz: 134e927dd369c0e65cbffdd8997ac4306a16e6d6bab1957eba24b2f22b8e9f23be17f8df871435fc6b7d459156dedc60c79a1f6883c3ad286755c6beab1750f3
7
+ data.tar.gz: 9d56871ec6891dc456a6074309f6bd8adacc6f3cc106755ed451ce1be177f2e2f23ad9c0c3ec9f1dd55b015a486f31713aad801145e402358148d12975e3af04
@@ -11,7 +11,8 @@ class PrometheeController < ApplicationController
11
11
  io = params[:file].to_io
12
12
  filename = params[:file].original_filename
13
13
  content_type = params[:file].content_type
14
- blob = ActiveStorage::Blob.create_after_upload! io: io, filename: filename, content_type: content_type
14
+ blob_create_method = ActiveStorage::Blob.respond_to?(:create_and_upload!) ? :create_and_upload! : :create_after_upload!
15
+ blob = ActiveStorage::Blob.public_send(blob_create_method, io: io, filename: filename, content_type: content_type)
15
16
  render json: { id: blob.signed_id, name: filename }
16
17
  end
17
18
 
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '5.1.0'
3
+ VERSION = '5.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2024-10-19 00:00:00.000000000 Z
17
+ date: 2024-10-21 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
498
  - !ruby/object:Gem::Version
499
499
  version: '0'
500
500
  requirements: []
501
- rubygems_version: 3.5.16
501
+ rubygems_version: 3.5.22
502
502
  signing_key:
503
503
  specification_version: 4
504
504
  summary: Bring fire to your page