effective_pages 3.4.2 → 3.4.3

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: 9e671281634ffe553daa9e05de8737783dd3e75797e8f6cc8351c033195a3225
4
- data.tar.gz: '03329baf24496ed2a2e1a6b2ec2a832ee6ca17b61be20f8ba22ce225d569262b'
3
+ metadata.gz: f5f3b0de9a5ca3fe12873d09d559072e5f29eab0857753c9fa7a16d91a4bdeea
4
+ data.tar.gz: dd73a0fedf8b38bc4f26b08dbad06b0e47a6cc7f073fc56e2574a31d074a374f
5
5
  SHA512:
6
- metadata.gz: e7c5fd0aed362d4734239243c1858c55be641c4bef6793d92ca629e78f60fc7a3f2db81c22f7a13f3c3e064a103e8ea93dc50a878879a7b3705227f5fc9c055e
7
- data.tar.gz: 80995b8e52e82f1d6fb13942e8395e74ea523b351d116ecde7ccf96e6be100df79d6e39c9bf458a4b8d5591392e4c77b605b598e394b394f7364fc8ccc485af0
6
+ metadata.gz: 564e7333cc97ad0810faa5ef6ceeda0ab36d83f80ad79856a89191e47a223d52d5be0068f0dc85705b1be27c8e6d54f3e3c409f6c6f4cd9b06756a32bdc688a0
7
+ data.tar.gz: 8c87830c81761b1449c4ff8e611d569edb12264d5caae05a213aa0c306638b8491d9f126f339dba6c96b0893976f89a297e1210a3d580e85bfc76dd23fd9a97b
@@ -12,7 +12,7 @@ module EffectivePageBannersHelper
12
12
  page_banner ||= page.page_banner if page.banner? && page.page_banner.present?
13
13
  page_banner ||= Effective::PageBanner.random.first if page.banner? && page.banner_random?
14
14
 
15
- raise("unable to find page banner for page #{page}") unless page_banner.present?
15
+ return if page_banner.blank?
16
16
 
17
17
  if block_given?
18
18
  yield(page_banner); nil
@@ -12,7 +12,7 @@ module EffectivePageSectionsHelper
12
12
  name = name.to_s
13
13
 
14
14
  page_section = effective_page_sections.find { |ps| ps.name == name }
15
- raise("unable to find page section with name #{name}") unless page_section.present?
15
+ return if page_section.blank?
16
16
 
17
17
  if block_given?
18
18
  yield(page_section); nil
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.4.2'.freeze
2
+ VERSION = '3.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails