promethee 4.1.23 → 4.1.28

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: 9a7469af95ebb0c9129cefcbf1f1725ea643f94d190e4dadd1f112a958c8f19b
4
- data.tar.gz: 3392581a1d79870cfdf2898594eac571a905182af47e19ddbd744f692d15a4fa
3
+ metadata.gz: fc61aa6d8dcd8e3718c08e592951ec341b36a0711a8e0d94c67604bd58e8db33
4
+ data.tar.gz: b8573d32516ef6fbb7e5b3ae298d1fb3d403f3ec00128978dd93e73038a18268
5
5
  SHA512:
6
- metadata.gz: 2abb01f521e591562786be98c8a7a01217a06dff3866ceb405c60443da59d0fd54b2e53fe8e248d86e63d461912eb133402df416b864662399ce5b45fd0dcdf0
7
- data.tar.gz: 2217be85a45d4fb947fdc5b48d19e772ae0f2044c84474e70e98cb879ca435f859acab06948a88c5e7ff5b13d65b08ca5be2475cb3fba080508f0d5c027b1b6a
6
+ metadata.gz: 9041ebe7b6857c7f77b9ad6b9d112073d12fdf620f338b4a75adc701420f602a1e7dbd2a6b73e00d946760e33f4aebc941b611018b16b22a1d9c473b5ff760e2
7
+ data.tar.gz: ec4902d36afb6802d50fff4863394127037ec4f5aa21d6620f81f974a06bbb965452f4a99e8e8fa2df2cd6363f5e39baa5d8df978e628bac1c337802cb1ebd73
@@ -126,6 +126,7 @@
126
126
  z-index: 10
127
127
 
128
128
  &__cover-content
129
+ background-color: rgba(0,0,0,.3)
129
130
  background-position: center
130
131
  background-repeat: no-repeat
131
132
  background-size: cover
@@ -18,7 +18,8 @@ class PrometheeController < ApplicationController
18
18
  def blob_show
19
19
  # as this is called only from promethee preview it sends an image resized to 720
20
20
  begin
21
- blob = ActiveStorage::Blob.find_signed(params[:id])
21
+ blob_find_method = ActiveStorage::Blob.respond_to?(:find_signed!) ? :find_signed! : :find_signed
22
+ blob = ActiveStorage::Blob.public_send(blob_find_method, params[:id])
22
23
  rescue
23
24
  raise ActiveRecord::RecordNotFound
24
25
  end
@@ -37,7 +37,8 @@ module PrometheeData
37
37
  end
38
38
 
39
39
  def promethee_data_page_thumbnail
40
- ActiveStorage::Blob.find_signed(data['attributes']['thumbnail']['value']['id'])
40
+ blob_find_method = ActiveStorage::Blob.respond_to?(:find_signed!) ? :find_signed! : :find_signed
41
+ ActiveStorage::Blob.public_send blob_find_method, data['attributes']['thumbnail']['value']['id']
41
42
  rescue
42
43
  nil
43
44
  end
@@ -14,10 +14,10 @@
14
14
 
15
15
  <div class="<%= promethee_class_for component %>"
16
16
  id="<%= promethee_id_for component %>">
17
- <% component[:children].each.with_index do |child, n| %>
18
- <div class="row promethee__component__row">
17
+ <div class="row promethee__component__row">
18
+ <% component[:children].each.with_index do |child, n| %>
19
19
  <div class="<%= col_classes %>">
20
- <%= render 'promethee/show/component', component: child %>
20
+ <%= render 'promethee/show/component', component: child %>
21
21
  </div>
22
22
  <% if n%items_per_line === items_per_line - 1 %>
23
23
  <div class="clearfix hidden-sm hidden-xs d-none d-md-block"></div>
@@ -48,7 +48,10 @@ module Promethee::Rails::Helper
48
48
 
49
49
  def blob_from_data(blob_data = {})
50
50
  return unless blob_data&.has_key? :id
51
- ActiveStorage::Blob.find_signed(blob_data[:id]) rescue nil
51
+ blob_find_method = ActiveStorage::Blob.respond_to?(:find_signed!) ? :find_signed! : :find_signed
52
+ ActiveStorage::Blob.public_send blob_find_method, blob_data[:id]
53
+ rescue
54
+ nil
52
55
  end
53
56
 
54
57
  # promethee_bem_classes 'promethee-edit__move__droppable', '--{{type}}', '--first'
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '4.1.23'
3
+ VERSION = '4.1.28'
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: 4.1.23
4
+ version: 4.1.28
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: 2021-01-04 00:00:00.000000000 Z
17
+ date: 2021-02-03 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -25,7 +25,7 @@ dependencies:
25
25
  version: 5.2.0
26
26
  - - "<"
27
27
  - !ruby/object:Gem::Version
28
- version: '6.1'
28
+ version: '7'
29
29
  type: :runtime
30
30
  prerelease: false
31
31
  version_requirements: !ruby/object:Gem::Requirement
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: 5.2.0
36
36
  - - "<"
37
37
  - !ruby/object:Gem::Version
38
- version: '6.1'
38
+ version: '7'
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: angularjs-rails
41
41
  requirement: !ruby/object:Gem::Requirement