font-awesome-sass 4.3.2 → 4.3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/font_awesome/sass/rails/helpers.rb +4 -5
- data/lib/font_awesome/sass/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250fd79eaf6b1120ad0f50bc4fe458658d1ba278
|
4
|
+
data.tar.gz: c899dfd863415e14c83412abbdf587bea18a432b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4c358815ea3b5b6cf94918b7e9a666616183cbc01f07c67451e7df036b85cc7db6845c694eb7d2c4665e062c633b2122bc5b46f166026cf940825c9887c722
|
7
|
+
data.tar.gz: dd6d6bf0d711406861fe54e2bf568b4af21d17ec68d1513d3ec4badfde489ca788d7ed996593213258beee90778e15183afe00bd04dee7e4f314f9fb8d9d5b5b
|
@@ -2,16 +2,15 @@ module FontAwesome
|
|
2
2
|
module Sass
|
3
3
|
module Rails
|
4
4
|
module ViewHelpers
|
5
|
-
def icon(icon,
|
6
|
-
text, html_options =
|
7
|
-
|
8
|
-
|
5
|
+
def icon(icon, text = nil, html_options = {})
|
6
|
+
text, html_options = nil, text if text.is_a?(Hash)
|
7
|
+
|
9
8
|
content_class = "fa fa-#{icon}"
|
10
9
|
content_class << " #{html_options[:class]}" if html_options.key?(:class)
|
11
10
|
html_options[:class] = content_class
|
12
11
|
|
13
12
|
html = content_tag(:i, nil, html_options)
|
14
|
-
html << ' ' << text unless text.blank?
|
13
|
+
html << ' ' << text.to_s unless text.blank?
|
15
14
|
html
|
16
15
|
end
|
17
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font-awesome-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.2
|
4
|
+
version: 4.3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Chase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|