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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a483bde3085cd71332270bbd58ccdb79973c9d7a
4
- data.tar.gz: d094ab32a9463d501aef086f7eda68e8adc67953
3
+ metadata.gz: 7e6f9a77d51499d5e1c9a7dfc0db71755f54059d
4
+ data.tar.gz: ce99003becafb5db2ac82dc3d17f525c193bc931
5
5
  SHA512:
6
- metadata.gz: 6d887241f0c49e77e4e4b30665f467b15aa2b33616755132b81f49810642e8db64b1b094a247b2f33ebda7c7223e3f0c365e479871132b7a295807e16ba86851
7
- data.tar.gz: 590e0055afea28d8b82495df488db29fe4390fd2dbde8b2cccb32d2d5de20ce5a200faf143f953b1275a335cc2fed21a7798519584dcffe52c39e9dfec91d718
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
@@ -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, text="", html_options={})
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 << " #{text}" unless text.blank?
12
- html.html_safe
14
+ html << ' ' << text unless text.blank?
15
+ html
13
16
  end
14
17
  end
15
18
  end
@@ -1,5 +1,5 @@
1
1
  module FontAwesome
2
2
  module Sass
3
- VERSION = '4.3.1'
3
+ VERSION = '4.3.2'
4
4
  end
5
5
  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.1
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-02-03 00:00:00.000000000 Z
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.5
142
+ rubygems_version: 2.4.6
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Font-Awesome SASS