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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjU1MmU5YjljZDQ3OWZiZjM4NTc2Y2UwNDI2YWUzMzcxZmZlM2E5OQ==
4
+ MTMzZTAwM2Q5ZDk0OTQwZDhiNjc1NDJjZGFjNjU5YTNlZmMxZjk0ZQ==
5
5
  data.tar.gz: !binary |-
6
- OWRmZGYwNGZiMGVkMTdjZTNhMGViYTNkOGMzNzc2MTQyMjE1NTdmYw==
6
+ MWQ1NGJlY2IwOTUxZmE2ZGE2MTQ4NWVhOThiZDNmMjk5YjcyYjVhNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDA1MTA2ZWY4ZjkwMGEyYjRiMjBhZDI1YWRmMmY2ZmVjODE4NTFmYjhhMjQ5
10
- YTYyNzNmN2M2YzczNmM1ZDA0MDA0ODJiY2MzODUzMmJmOTNmYmE3NDc1M2Y5
11
- ZTc1N2UyYWFhZjAxNGNiMTJlNTQwOTkyNTk1ZTNiODQ4OWYxY2M=
9
+ YzBhYzIyOTFkZmI2M2JjNDNkYTNiNTc0OWFjY2FkZDcxYzVhMDI3YTRkZmQ0
10
+ YjFhMGQ1YzBkYjUwN2I0ZWY1ZGMyYTRmNjkwMGFkMDU5M2E4OGZiOTRlYjJi
11
+ NGQzZTJlYjAwZTEwM2E5YmYxYTRlNzQyNDRiZmUyYzMxNTk3Yjc=
12
12
  data.tar.gz: !binary |-
13
- MGUxYzNmNTY3ZjAyOWM1MmM3NjE2NTZkZTk2YzBiYWJjNWIyODM3NGFlMDE1
14
- MzQ2OGVjMzM5MTYyMTg1OGY5NWM0YzViOWJmYWNiMDY1NjhhMDFiYTViN2I5
15
- MTkzNjAwODAxMzM0YjZiZmFiNWRkOGZiZmExMWNmM2RlODcwNTQ=
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(:span, class: container_class.join(" ")) do
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)
@@ -1,3 +1,3 @@
1
1
  module AccessibleTooltip
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
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
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: 2013-12-13 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  type: :runtime