accessible_tooltip 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/accessible_tooltip/helpers.rb +2 -2
- data/lib/accessible_tooltip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTMzZTAwM2Q5ZDk0OTQwZDhiNjc1NDJjZGFjNjU5YTNlZmMxZjk0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWQ1NGJlY2IwOTUxZmE2ZGE2MTQ4NWVhOThiZDNmMjk5YjcyYjVhNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzBhYzIyOTFkZmI2M2JjNDNkYTNiNTc0OWFjY2FkZDcxYzVhMDI3YTRkZmQ0
|
10
|
+
YjFhMGQ1YzBkYjUwN2I0ZWY1ZGMyYTRmNjkwMGFkMDU5M2E4OGZiOTRlYjJi
|
11
|
+
NGQzZTJlYjAwZTEwM2E5YmYxYTRlNzQyNDRiZmUyYzMxNTk3Yjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjQ4Y2NlNThmZjk1OTdmNjc2YTM5NGU0OTQ2ZjM3YWJmOWFkMzNlNzQ0YjA0
|
14
|
+
NjZiMGFlNWYwNTY0NzcwMTU5YWRjNmRhZDNlZGM1MGRhMDNlNGIxYmMxYzdk
|
15
|
+
MDcxOWU0NjJhMzY1NWZiMDBlODI2MTExMzUzYzJjZTA0MzVjNjE=
|
@@ -10,8 +10,8 @@ module AccessibleTooltip
|
|
10
10
|
raise ArgumentError, "type must be one of #{types.join(", ")}" unless types.include?(type)
|
11
11
|
|
12
12
|
if args.first.is_a? Hash
|
13
|
-
element = :span
|
14
13
|
options = args.shift || {}
|
14
|
+
element = options.fetch(:element, :span)
|
15
15
|
else
|
16
16
|
element = args.shift.andand.to_sym || :span
|
17
17
|
options = args.shift || {}
|
@@ -26,7 +26,7 @@ module AccessibleTooltip
|
|
26
26
|
container_class = ["accessible_tooltip"]
|
27
27
|
container_class << "left" if position == :left
|
28
28
|
|
29
|
-
content_tag(
|
29
|
+
content_tag(element, class: container_class.join(" ")) do
|
30
30
|
link_to options.fetch(:url, "#"), link_options do
|
31
31
|
|
32
32
|
title = t(title) if title.is_a?(Symbol)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accessible_tooltip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Vandersluis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
type: :runtime
|