fa_rails 0.1.25 → 0.1.26

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: 2a0166501def630ab5880108fdd887614849f6a2b77a23c1e042c98a459a0130
4
- data.tar.gz: 8dcd8b62b61b8f0dfe9a323378ccab27547e627dbfa3c5a97643da2720dbb0ab
3
+ metadata.gz: 9b54f242a9e548eec5062f96702e9932068fe7c7c51859b5447da6365f2ffe98
4
+ data.tar.gz: 37fa7e6971c0db4f1bf67ff689e0ce30e52b5f1c7df9ff73af208b96c8589998
5
5
  SHA512:
6
- metadata.gz: 5a17c51cd3277b386aea9211cd8e6b4744778f5546ca75936b9bdb917e39413096c6e672a9ec42191dfc8aa8e4472083b6a7324be5410aa1d4bf6a4e8ed54024
7
- data.tar.gz: 5ec4b0d9261b7313305f306340a2d8bb0b060072161c4ba95f35ee5bd9abe18726b755cd630d1f63c2d2a6ef472d6247ce7fcbd78e8ccb53b58423d8cf984277
6
+ metadata.gz: 574d7b97c657e3030300737364079cfb095fc7fbdde7c018f2efda666c2b460eb5788639ef44786bbb3eb4b046ca906d937b573c0eb0ccdfcf561c80f2685ab6
7
+ data.tar.gz: 7cef6d1273dbf03b156505e48e3f91685f1fefc3f8c79a852bdf5abf1fc3a2366b881b34b84a3bb0b20020d784a1dc1618fcdd651e424091850d2eba8f25844a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa_rails (0.1.25)
4
+ fa_rails (0.1.26)
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.25'
3
+ s.version = '0.1.26'
4
4
  s.date = '2021-04-03'
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
@@ -111,8 +111,8 @@ module FA
111
111
  end
112
112
 
113
113
  def format_classes(classes, prefix: nil)
114
- classes = classes.split(' ') if classes.is_a?(String)
115
- classes.map { |c| "#{prefix}#{c}" } if classes.is_a?(Array)
114
+ classes = classes.to_s.split(' ') unless classes.is_a?(Array)
115
+ classes.map { |c| "#{prefix}#{c}" }
116
116
  end
117
117
 
118
118
  def merge_fa_styles(options)
data/spec/lib/fa_spec.rb CHANGED
@@ -73,7 +73,7 @@ RSpec.describe FA do
73
73
 
74
74
  it 'should correctly handle a nil css option' do
75
75
  expect(FA::Icon.p(:help, css: nil)).to eql(
76
- "<i class='fas fa-help fa-1x' style='' data-fa-transform='' title=''></i>"
76
+ "<i class='fas fa-help fa-1x' style='' data-fa-transform='' title=''></i>"
77
77
  )
78
78
  end
79
79
 
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.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -114,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubyforge_project:
118
- rubygems_version: 2.7.6
117
+ rubygems_version: 3.2.15
119
118
  signing_key:
120
119
  specification_version: 4
121
120
  summary: FontAwesome helper for Rails