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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e861445b4047bffc1047326c7fc2b62a8ffffdbb8fba0e391cd47ec53750d9f
4
- data.tar.gz: f619fb7fedceaa6db642149f22fde4b392c359df3ec0372370177f48abf1582a
3
+ metadata.gz: 5e75c0e9608f41e199502dd2feb1157b8f1fb2e83c6fef273d9655b267e7c0a1
4
+ data.tar.gz: 421e5312e5988e3fa5039c5269b37259f21a2e60b06bc28d1b3de910b4e1e0c6
5
5
  SHA512:
6
- metadata.gz: 21c8c9a644c8ab06f5528af26f8926030d421834d4d4bc0470257ad0e4d3f2388f4e72bc6c04af54edf3d982e4fa608a89585adc7e85c4715b0bfc37f68bf37c
7
- data.tar.gz: be852be38fd50e7685c993cc27b34d2c2b9ae257173b52b44dc9f2dced1595e507fde32899d44cb138ce2abba2f3a4e06a67167801578d37c146f673b2c1173e
6
+ metadata.gz: b57d25bacf152ba1651c70d224c9cce0dd19ece29226572783c31a4ebab2bce3b97d7ff864a000fcd71f4d674dd601bf1578e3eee4ce77a5c75514e04d5fd8ee
7
+ data.tar.gz: fc339b05b167b9a35f73006495b4458dd8458a263e93d48d987a1fe59c2028581966794cf2e8cc89b90095b52ae6b060ee2106ef1a8193545092ac0f30fa219f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa_rails (0.1.30)
4
+ fa_rails (0.1.31)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/fa_rails.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'fa_rails'
3
- s.version = '0.1.30'
3
+ s.version = '0.1.31'
4
4
  s.date = '2023-03-28'
5
5
  s.summary = 'FontAwesome helper for Rails'
6
6
  s.description = 'A helper module for using FontAwesome icons in Rails.'
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[#{STYLES.values.uniq.join}][#{MODES.values.uniq.join}]?\b/
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='fars fa-house fa-1x' style='' data-fa-transform='' title=''></i>"
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='fals fa-house fa-1x' style='' data-fa-transform='' title=''></i>"
114
+ "<i class='fasl fa-house fa-1x' style='' data-fa-transform='' title=''></i>"
115
115
  )
116
116
  end
117
117
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fa_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander