vime_view_components 5.0.0 → 5.0.1

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: f7ac352241cd826bb3414c177a7123dda84c8dcf7f6b5b527b098913b28d2ee0
4
- data.tar.gz: e8f897ae64ede55f8113e28bd51d3549ec329cdf9c74b31b6a0b2afe7260180c
3
+ metadata.gz: 69a869dca430a5c3fbe7202c19d6cf548395db7aa680beb38d58767972b3fe60
4
+ data.tar.gz: 49f1524184c9914208e2c5e2db79e1defe2e593241d06900323aed4e0c932569
5
5
  SHA512:
6
- metadata.gz: 2443de93a58b00da41814dd4d60c363b564f43b648aed52f85f351972e55d9c46bc994d7cbfd9444677757932c12781325cb5470ccbc0888ad34c988b5fc50b9
7
- data.tar.gz: 6d36599a1247755b214ba812643de606f26a627ee58d4605dc8a96bd8cb5e6dd65e426a4ff1be0e27ad9df619f7dfc4f033c5d29807f9ee312795d5195af448d
6
+ metadata.gz: c0762296a3631e397fa138339b0b252fdc24cb4ae95dbe4bb1d0aa133ea6b222fd0b1ae341c939919538f65857bab5a34cf1e383ddd06ca0111c9b1b3d2d7fa9
7
+ data.tar.gz: f309f10152d4c93827e2f40a9dfcebf6e3ac82f2f429ac456557adc403b32a13508be8197093d1e66c02d641c37384a761804c97c8a76c60fadb656121588142
@@ -30,9 +30,9 @@ module Vime
30
30
  private
31
31
  def process_attrs(attrs)
32
32
  attrs
33
- .deep_transform_keys(&:to_s)
34
- .deep_transform_keys(&:dasherize)
35
- .reject { |_, v| v.nil? }
33
+ .deep_transform_keys(&:to_s)
34
+ .deep_transform_keys(&:dasherize)
35
+ .reject { |_, v| v.nil? || v == false }
36
36
  end
37
37
  end
38
38
  end
@@ -16,7 +16,7 @@ module Vime
16
16
  option :video_id, type: Types::String
17
17
 
18
18
  def call
19
- tag "vm-dailymotion", process_attrs(dom_attrs)
19
+ content_tag "vm-dailymotion", nil, process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :video_id, type: Types::String
14
14
 
15
15
  def call
16
- tag "vm-vimeo", process_attrs(dom_attrs)
16
+ content_tag "vm-vimeo", nil, process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :video_id, type: Types::String
12
12
 
13
13
  def call
14
- tag "vm-youtube", process_attrs(dom_attrs)
14
+ content_tag "vm-youtube", nil, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :hidden, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vm-captions", process_attrs(dom_attrs)
12
+ content_tag "vm-captions", nil, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :use_on_mobile, type: Types::Bool, default: -> { false }
9
9
 
10
10
  def call
11
- tag "vm-click-to-play", process_attrs(dom_attrs)
11
+ content_tag "vm-click-to-play", nil, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vm-caption-control", process_attrs(dom_attrs)
17
+ content_tag "vm-caption-control", nil, process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -7,7 +7,7 @@ module Vime
7
7
  module Controls
8
8
  class ControlSpacer < Component
9
9
  def call
10
- tag "vm-control-spacer", process_attrs(dom_attrs)
10
+ content_tag "vm-control-spacer", nil, process_attrs(dom_attrs)
11
11
  end
12
12
  end
13
13
  end
@@ -12,7 +12,7 @@ module Vime
12
12
  option :wait_for_playback_start, type: Types::Bool, default: -> { false }
13
13
 
14
14
  def call
15
- tag "vm-default-controls", process_attrs(dom_attrs)
15
+ content_tag "vm-default-controls", nil, process_attrs(dom_attrs)
16
16
  end
17
17
 
18
18
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vm-fullscreen-control", process_attrs(dom_attrs)
17
+ content_tag "vm-fullscreen-control", nil, process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -15,7 +15,7 @@ module Vime
15
15
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
16
16
 
17
17
  def call
18
- tag "vm-mute-control", process_attrs(dom_attrs)
18
+ content_tag "vm-mute-control", nil, process_attrs(dom_attrs)
19
19
  end
20
20
 
21
21
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vm-pip-control", process_attrs(dom_attrs)
17
+ content_tag "vm-pip-control", nil, process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vm-playback-control", process_attrs(dom_attrs)
17
+ content_tag "vm-playback-control", nil, process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :no_keyboard, type: Types::Bool, default: -> { false }
12
12
 
13
13
  def call
14
- tag "vm-scrubber-control", process_attrs(dom_attrs)
14
+ content_tag "vm-scrubber-control", nil, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
14
14
 
15
15
  def call
16
- tag "vm-settings-control", process_attrs(dom_attrs)
16
+ content_tag "vm-settings-control", nil, process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -16,7 +16,7 @@ module Vime
16
16
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
17
17
 
18
18
  def call
19
- tag "vm-volume-control", process_attrs(dom_attrs)
19
+ content_tag "vm-volume-control", nil, process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :use_on_mobile, type: Types::Bool, default: -> { false }
9
9
 
10
10
  def call
11
- tag "vm-dbl-click-fullscreen", process_attrs(dom_attrs)
11
+ content_tag "vm-dbl-click-fullscreen", nil, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :name, type: Types::String, optional: true
9
9
 
10
10
  def call
11
- tag "vm-icons", process_attrs(dom_attrs)
11
+ content_tag "vm-icons", nil, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -6,7 +6,7 @@ module Vime
6
6
  module Ui
7
7
  class LiveIndicator < Component
8
8
  def call
9
- tag "vm-live-indicator", process_attrs(dom_attrs)
9
+ content_tag "vm-live-indicator", nil, process_attrs(dom_attrs)
10
10
  end
11
11
  end
12
12
  end
@@ -8,7 +8,7 @@ module Vime
8
8
  option :fit, type: Types::String.enum("contain", "cover", "fill", "none", "scale-down"), default: -> { "cover" }
9
9
 
10
10
  def call
11
- tag "vm-poster", process_attrs(dom_attrs)
11
+ content_tag "vm-poster", nil, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
10
10
 
11
11
  def call
12
- tag "vm-default-settings", process_attrs(dom_attrs)
12
+ content_tag "vm-default-settings", nil, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -17,7 +17,7 @@ module Vime
17
17
  option :menu, type: Types::String, optional: true
18
18
 
19
19
  def call
20
- tag "vm-menu-item", process_attrs(dom_attrs)
20
+ content_tag "vm-menu-item", nil, process_attrs(dom_attrs)
21
21
  end
22
22
 
23
23
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :value, type: Types::String
14
14
 
15
15
  def call
16
- tag "vm-menu-radio", process_attrs(dom_attrs)
16
+ content_tag "vm-menu-radio", nil, process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :effect, type: Types::String.enum("none", "sheen"), default: -> { "sheen" }
9
9
 
10
10
  def call
11
- tag "vm-skeleton", process_attrs(dom_attrs)
11
+ content_tag "vm-skeleton", nil, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :value_text, type: Types::String, optional: true
14
14
 
15
15
  def call
16
- tag "vm-slider", process_attrs(dom_attrs)
16
+ content_tag "vm-slider", nil, process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -6,7 +6,7 @@ module Vime
6
6
  module Ui
7
7
  class Spinner < Component
8
8
  def call
9
- tag "vm-spinner", process_attrs(dom_attrs)
9
+ content_tag "vm-spinner", nil, process_attrs(dom_attrs)
10
10
  end
11
11
  end
12
12
  end
@@ -9,7 +9,7 @@ module Vime
9
9
  option :always_show_hours, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vm-current-time", process_attrs(dom_attrs)
12
+ content_tag "vm-current-time", nil, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :always_show_hours, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vm-end-time", process_attrs(dom_attrs)
12
+ content_tag "vm-end-time", nil, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :seconds, type: Types::Integer, default: -> { 0 }
12
12
 
13
13
  def call
14
- tag "vm-time", process_attrs(dom_attrs)
14
+ content_tag "vm-time", nil, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -10,7 +10,7 @@ module Vime
10
10
  option :separator, type: Types::String, default: -> { "/" }
11
11
 
12
12
  def call
13
- tag "vm-time-progress", process_attrs(dom_attrs)
13
+ content_tag "vm-time-progress", nil, process_attrs(dom_attrs)
14
14
  end
15
15
 
16
16
  def dom_attrs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VimeViewComponents
4
- VERSION = "5.0.0"
4
+ VERSION = "5.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vime_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asger Behncke Jacobsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-30 00:00:00.000000000 Z
12
+ date: 2021-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-initializer