cmor_carousels 0.0.36.pre → 0.0.37.pre

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: ff5826f7d58ee8f3e5bdd0aef8f9a510512df1d9acbefdfa590ba2d9dc01725a
4
- data.tar.gz: 7f698226ec278179d14b50e170158e90ce0679927aa0bec26131c9b2059aa51f
3
+ metadata.gz: d842504c57a928c910705f9ffdac9edb28c804f68ffd3995f5d81c29171acd41
4
+ data.tar.gz: 3836b1039032e3f404f75f2a26816850f268c4d03987726b07fbba4713cc1807
5
5
  SHA512:
6
- metadata.gz: a5dee103e080cfb9b66a1b41cd52d36c88dd05e8cae50abd127722da37d018208f60b0553e9299d8bf7af304247aa196661ced1cf9cdd6b964b37afbab1d1a80
7
- data.tar.gz: bf1a84456bb351f3097b64d6015a05484886ca99eca86f4dc98e150507614188589a48edb3acf76df8e233c5a86948ba47e1382ae0cc2497fc1499740427b072
6
+ metadata.gz: d658aecee5e449a7e496363d9d96a265bbe5a934a882812f2fe07a8e4ea594b8e2b9f79e8777492e86f8ee03483e224be7a71911ed7adddd9adddefb71aaa616
7
+ data.tar.gz: 29d48e927270121c07222daca658fbd2cd3257f3669a785c0f43f4668a7ad4875b08fe1b82743310e32b67e711461d91b74481f86262eb5fd190e0b092673e6c
@@ -14,8 +14,9 @@ module Cmor
14
14
  # = carousels_helper(self).render_carousel(:main, autostart: true, interval: 5.0, variant_options: { resize: "1920x1080" })
15
15
  #
16
16
  def render_carousel(identifier, options = {})
17
- options.reverse_merge!(autostart: true, interval: 5.0, keyboard: true, pause: :hover, ride: false, wrap: true, controls: true, indicators: true)
17
+ options.reverse_merge!(autostart: true, interval: 5.0, keyboard: true, pause: :hover, ride: false, wrap: true, controls: true, indicators: true, video_html_options: {})
18
18
  carousel_options = options.slice(:autostart, :interval, :pause, :ride, :wrap)
19
+ video_html_options = options.delete(:video_html_options).reverse_merge!(autoplay: true, muted: true)
19
20
  data_attributes = carousel_options_to_data_attributes(carousel_options)
20
21
 
21
22
  carousel = Cmor::Carousels::Carousel.where(identifier: identifier.to_s).for_locale(I18n.locale).first
@@ -24,7 +25,7 @@ module Cmor
24
25
  return I18n.t('cmor.carousels.carousel.warnings.not_found', identifier: identifier)
25
26
  else
26
27
  variant_options = options.delete(:variant_options) || carousel.variant_options
27
- render carousel: carousel, options: options, data_attributes: data_attributes, variant_options: variant_options
28
+ render carousel: carousel, options: options, data_attributes: data_attributes, variant_options: variant_options, video_html_options: video_html_options
28
29
  end
29
30
  end
30
31
 
@@ -15,7 +15,7 @@
15
15
  - elsif item_detail.video?
16
16
  .carousel-video
17
17
  -# %video#foo.w-100{ autoplay: "", loop: "", muted: ""}
18
- %video.w-100{ id: "#{dom_id(item_detail)}-video", autoplay: "", muted: ""}
18
+ %video.w-100{ video_html_options.reverse_merge(id: "#{dom_id(item_detail)}-video") }
19
19
  %source{ src: main_app.url_for(item_detail.asset), type: "video/mp4" }
20
20
  .video-overlay.h-100
21
21
  .container.content
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_carousels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36.pre
4
+ version: 0.0.37.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-10 00:00:00.000000000 Z
11
+ date: 2019-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.36.pre
33
+ version: 0.0.37.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.36.pre
40
+ version: 0.0.37.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_frontend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.36.pre
47
+ version: 0.0.37.pre
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.36.pre
54
+ version: 0.0.37.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -4435,7 +4435,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4435
4435
  - !ruby/object:Gem::Version
4436
4436
  version: 1.3.1
4437
4437
  requirements: []
4438
- rubygems_version: 3.0.4
4438
+ rubygems_version: 3.0.6
4439
4439
  signing_key:
4440
4440
  specification_version: 4
4441
4441
  summary: CMOR Module Template.