promethee 4.1.20 → 4.1.25

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: 2a1485ebe57d3b81f169f635cb3a0569be9c2a2019de7c3463ea3301c068f0c7
4
- data.tar.gz: e4fb804c1f8d0454fcfbe522ba08854bd63339a0e2043e3702f3cca8b61ad8e5
3
+ metadata.gz: b5b3c7e537b1443c1ec974382985194710e21bf9b385b8f7f4194298fe9f57fb
4
+ data.tar.gz: ce6ccd967d3259aef3331fa1e112ec87b9c533cfec8fac8254388427d552d26b
5
5
  SHA512:
6
- metadata.gz: d5c4c3973feac73e2f5dbd889014ea4d9c24df34e3b11fdcbc6f5a231b55bb4f2d23ef0b537628ab80335b06690b6bba2a17fe27009c5691394e25a5ac553b69
7
- data.tar.gz: f3a1b44925ef8e70f55a6661d47b06056a581a5b1bd1faaa2b8bda05e792f7738af4a65d99d53007ce66c5efd1da4c2c970fe3141e18b02798234c00b64e99e2
6
+ metadata.gz: 671e7a03beb11f59003c8798822f5e80ebef4407f7f0c797f96e53b5f603111ba79b398c2082455ed1cefabc31c691360a024a0133dbf977b6048358208a546f
7
+ data.tar.gz: e7e566247e22cff58ac2954475f1809a8a1d76dfcabd4813363a2904d69082cda4ad3f86dd8f0e5ccc539a33a5c7ec8375aa3c35a25a7a3787a18e89414c7124
@@ -213,14 +213,16 @@
213
213
  padding-right: 10px
214
214
  &-header
215
215
  padding-left: 10px
216
-
216
+ &-content
217
+ display: flex
218
+ flex-wrap: wrap
217
219
  &__item-container, &__item
218
220
  display: inline-block
219
221
  &__item
220
222
  background-color: #253742
221
223
  color: white
222
224
  height: 100px
223
- margin: 0 10px 20px
225
+ margin: 0 9px 18px
224
226
  max-width: 100px
225
227
  min-width: 100px
226
228
  padding: 10px 5px 0 5px
@@ -63,14 +63,15 @@ $black: #000000 !default
63
63
 
64
64
  &__collection
65
65
  margin-bottom: $grid-gutter-width
66
- > div
66
+ [class*="col-"]
67
67
  margin-bottom: $grid-gutter-width
68
68
  .collection-item__content
69
69
  &:not(:last-of-type)
70
70
  margin-bottom: $grid-gutter-width
71
- a + p
72
- margin-bottom: 0
71
+ &__caption
73
72
  margin-top: 10px
73
+ p:last-of-type
74
+ margin-bottom: 0
74
75
 
75
76
  &__cover
76
77
  background-position: center center
@@ -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
@@ -12,20 +12,22 @@
12
12
  end
13
13
  %>
14
14
 
15
- <div class="row <%= promethee_class_for component %>"
15
+ <div class="<%= promethee_class_for component %>"
16
16
  id="<%= promethee_id_for component %>">
17
17
  <% component[:children].each.with_index do |child, n| %>
18
- <div class="<%= col_classes %>">
19
- <%= render 'promethee/show/component', component: child %>
20
- </div>
21
- <% if n%items_per_line === items_per_line - 1 %>
22
- <div class="clearfix hidden-sm hidden-xs d-none d-md-block"></div>
18
+ <div class="row promethee__component__row">
19
+ <div class="<%= col_classes %>">
20
+ <%= render 'promethee/show/component', component: child %>
21
+ </div>
22
+ <% if n%items_per_line === items_per_line - 1 %>
23
+ <div class="clearfix hidden-sm hidden-xs d-none d-md-block"></div>
24
+ <% end %>
25
+ <% if items_per_line >= 4 && n.odd? %>
26
+ <div class="clearfix visible-xs-block d-block <%= items_per_line === 4 ? 'visible-sm-block d-md-none' : 'd-sm-none' %>"></div>
27
+ <% end %>
28
+ <% if items_per_line == 6 && n%3 == 2 %>
29
+ <div class="clearfix visible-sm-block .d-none .d-sm-block .d-md-none"></div>
30
+ <% end %>
23
31
  <% end %>
24
- <% if items_per_line >= 4 && n.odd? %>
25
- <div class="clearfix visible-xs-block d-block <%= items_per_line === 4 ? 'visible-sm-block d-md-none' : 'd-sm-none' %>"></div>
26
- <% end %>
27
- <% if items_per_line == 6 && n%3 == 2 %>
28
- <div class="clearfix visible-sm-block .d-none .d-sm-block .d-md-none"></div>
29
- <% end %>
30
- <% end %>
32
+ </div>
31
33
  </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.20'
3
+ VERSION = '4.1.25'
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.20
4
+ version: 4.1.25
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: 2020-11-15 00:00:00.000000000 Z
17
+ date: 2021-01-06 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
@@ -504,7 +504,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
504
  - !ruby/object:Gem::Version
505
505
  version: '0'
506
506
  requirements: []
507
- rubygems_version: 3.1.2
507
+ rubygems_version: 3.1.4
508
508
  signing_key:
509
509
  specification_version: 4
510
510
  summary: Bring fire to your page