effective_pages 3.4.5 → 3.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 143b20b65614fd20a0c299cc890cf54936575ab5154c2ac734a553b929540d01
4
- data.tar.gz: 39b8e1470b991766030c382e0d2f3a676430ee66507c0e2e7baf72c7536fe274
3
+ metadata.gz: 2a9efbc081313d362ec734f36ce3595c70c27699a2a2317da005f810d868f556
4
+ data.tar.gz: e6236aa5edd590a11e82e2c8aa82c6a7bd95dfe7a6004f8e84d29a749f7fb188
5
5
  SHA512:
6
- metadata.gz: b1ad315f178db54aac8badcafc442e9bd760d07a465adf47fa6a2089d2fff2189b98c4527c24b1438070e1a2da6c60b4de4ef973b1cfdcb33c320aaee84a2c91
7
- data.tar.gz: bef6a8b78ad3058e0a06bec833a6556045607a5b33ad21c095ccf1e9e40b804d560c5733c11be6816f02507d79060b4da0d803bebbc6e6bb027e631860257e55
6
+ metadata.gz: 92b7210598bca62d3c2f5357beef37c5fd7e941695af2982fd391f565e7de94aaf69e11525f997c75881272a0fc5b377fbafda12890a54a8c59b907576695f80
7
+ data.tar.gz: 64c58b1665c07297892b768ef56156b7ef254ca91ac4ad967528d9a661de04fbc42e3f461261f33a6382cd8ebfc891575a8278b1a2710a8c8333ccc5831be3cb
@@ -3,25 +3,25 @@
3
3
 
4
4
  - raise('expected one or more carousel items') unless carousel_items.present?
5
5
 
6
- %div.carousel.slide{id: uid, 'data-ride': 'carousel', **options}
6
+ .carousel.slide{id: uid, 'data-ride': 'carousel', **options}
7
7
  %ol.carousel-indicators
8
8
  - carousel_items.each_with_index do |item, index|
9
9
  %li{'data-target': '#' + uid, 'data-slide-to': index, class: ('active' if index == 0)}
10
10
 
11
- %div.carousel-inner
11
+ .carousel-inner
12
12
  - carousel_items.each_with_index do |item, index|
13
- %div.carousel-item{class: ('active' if index == 0)}
13
+ .carousel-item{class: ('active' if index == 0)}
14
14
  - if item.caption.blank?
15
15
  = image_tag(item.file, class: 'd-block w-100', alt: "Slide #{index+1}")
16
16
  - else
17
17
  = image_tag(item.file, alt: item.caption)
18
- %div.carousel-caption.d-none.d-md-block
18
+ .carousel-caption.d-none.d-md-block
19
19
  %p= item.caption
20
20
 
21
- %a.carousel-control-prev{href: '#' + uid, role: 'button', 'data-slide': 'prev'}
21
+ %button.carousel-control-prev{'data-target': '#' + uid, type: 'button', 'data-slide': 'prev'}
22
22
  %span.carousel-control-prev-icon{'aria-hidden': true}
23
23
  %span.sr-only Previous
24
24
 
25
- %a.carousel-control-next{href: '#' + uid, role: 'button', 'data-slide': 'next'}
25
+ %button.carousel-control-next{'data-target': '#' + uid, type: 'button', 'data-slide': 'next'}
26
26
  %span.carousel-control-next-icon{'aria-hidden': true}
27
27
  %span.sr-only Next
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.4.5'.freeze
2
+ VERSION = '3.4.6'.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.5
4
+ version: 3.4.6
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-11-29 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails