font-awesome-sass 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/font-awesome-sass.rb +4 -1
- data/lib/font_awesome/sass/rails/helpers.rb +6 -3
- data/lib/font_awesome/sass/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6f9a77d51499d5e1c9a7dfc0db71755f54059d
|
4
|
+
data.tar.gz: ce99003becafb5db2ac82dc3d17f525c193bc931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54968ccbc06391fc52fad25e3eb490a5cb50459e16407ed2eb292c46e5c1fb9b0b60af08239a686b5436021cee22300fc3a11e709072b70ac612e52fd6c3e809
|
7
|
+
data.tar.gz: 28f6f93d7dbd98ece4bc0fae27d53fc640646f22b18a8b504e51896f486c0639b72f4b5ed0e003dafc83a29395698d50ae3288f1b7516cf19dbc384dabddf846
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# FontAwesome::Sass
|
2
2
|
|
3
|
-
'font-awesome-sass' is a Sass-powered version of FontAwesome for your Ruby projects and plays nicely with
|
3
|
+
'font-awesome-sass' is a Sass-powered version of [FontAwesome](http://fortawesome.github.io/Font-Awesome/) for your Ruby projects and plays nicely with
|
4
4
|
Ruby on Rails, Compass, Sprockets, etc.
|
5
5
|
|
6
6
|
Refactored to support more Ruby environments with code and documentation humbly used from the excellent
|
data/lib/font-awesome-sass.rb
CHANGED
@@ -43,6 +43,10 @@ module FontAwesome
|
|
43
43
|
defined?(::Rails)
|
44
44
|
end
|
45
45
|
|
46
|
+
def sprockets?
|
47
|
+
defined?(::Sprockets)
|
48
|
+
end
|
49
|
+
|
46
50
|
private
|
47
51
|
|
48
52
|
def configure_sass
|
@@ -72,7 +76,6 @@ module FontAwesome
|
|
72
76
|
def register_sprockets
|
73
77
|
Sprockets.append_path(stylesheets_path)
|
74
78
|
Sprockets.append_path(fonts_path)
|
75
|
-
Sprockets.append_path(javascripts_path)
|
76
79
|
end
|
77
80
|
end
|
78
81
|
end
|
@@ -2,14 +2,17 @@ module FontAwesome
|
|
2
2
|
module Sass
|
3
3
|
module Rails
|
4
4
|
module ViewHelpers
|
5
|
-
def icon(icon,
|
5
|
+
def icon(icon, *args)
|
6
|
+
text, html_options = args
|
7
|
+
html_options = text if text.is_a?(Hash)
|
8
|
+
|
6
9
|
content_class = "fa fa-#{icon}"
|
7
10
|
content_class << " #{html_options[:class]}" if html_options.key?(:class)
|
8
11
|
html_options[:class] = content_class
|
9
12
|
|
10
13
|
html = content_tag(:i, nil, html_options)
|
11
|
-
html <<
|
12
|
-
html
|
14
|
+
html << ' ' << text unless text.blank?
|
15
|
+
html
|
13
16
|
end
|
14
17
|
end
|
15
18
|
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.
|
4
|
+
version: 4.3.2
|
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-
|
11
|
+
date: 2015-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.4.
|
142
|
+
rubygems_version: 2.4.6
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Font-Awesome SASS
|