fa_rails 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/fa_rails.gemspec +1 -1
- data/lib/fa/base.rb +2 -2
- data/spec/lib/fa_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e75c0e9608f41e199502dd2feb1157b8f1fb2e83c6fef273d9655b267e7c0a1
|
4
|
+
data.tar.gz: 421e5312e5988e3fa5039c5269b37259f21a2e60b06bc28d1b3de910b4e1e0c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57d25bacf152ba1651c70d224c9cce0dd19ece29226572783c31a4ebab2bce3b97d7ff864a000fcd71f4d674dd601bf1578e3eee4ce77a5c75514e04d5fd8ee
|
7
|
+
data.tar.gz: fc339b05b167b9a35f73006495b4458dd8458a263e93d48d987a1fe59c2028581966794cf2e8cc89b90095b52ae6b060ee2106ef1a8193545092ac0f30fa219f
|
data/Gemfile.lock
CHANGED
data/fa_rails.gemspec
CHANGED
data/lib/fa/base.rb
CHANGED
@@ -146,13 +146,13 @@ module FA
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def parse_style(options)
|
149
|
-
if options[:css].to_s =~ /\bfa[#{
|
149
|
+
if options[:css].to_s =~ /\bfa[#{MODES.values.uniq.join}]?[#{STYLES.values.uniq.join}]\b/
|
150
150
|
return # Don't overwrite a manual style [& mode] class
|
151
151
|
end
|
152
152
|
|
153
153
|
style = 'fa'
|
154
|
-
style += STYLES[options[:style]]
|
155
154
|
style += MODES[options[:mode]]
|
155
|
+
style += STYLES[options[:style]]
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
data/spec/lib/fa_spec.rb
CHANGED
@@ -105,13 +105,13 @@ RSpec.describe FA do
|
|
105
105
|
|
106
106
|
it 'generates the correct sharp regular icon' do
|
107
107
|
expect(FA::Icon.p(:house, style: :regular, mode: :sharp)).to eql(
|
108
|
-
"<i class='
|
108
|
+
"<i class='fasr fa-house fa-1x' style='' data-fa-transform='' title=''></i>"
|
109
109
|
)
|
110
110
|
end
|
111
111
|
|
112
112
|
it 'generates the correct sharp light icon' do
|
113
113
|
expect(FA::Icon.p(:house, style: :light, mode: :sharp)).to eql(
|
114
|
-
"<i class='
|
114
|
+
"<i class='fasl fa-house fa-1x' style='' data-fa-transform='' title=''></i>"
|
115
115
|
)
|
116
116
|
end
|
117
117
|
|