fa_rails 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7472a6957c0b16253da64467dd0678beda165eb6
4
- data.tar.gz: f731108b740ad48d56cc8044126505da30569148
3
+ metadata.gz: 82d003e079e13327fe482fcd9a5c38479f0fd436
4
+ data.tar.gz: b53a22724dfdd2021c5c2396e044a806e120dd9d
5
5
  SHA512:
6
- metadata.gz: f8996b4b9c69cbfa7391f848aaa8f4c166702c7a9baccb4c097bc8c0d18b694af33692c9663f065aece16765c7866d80352e033420c6ea80dced5ff3d13bb0b6
7
- data.tar.gz: 4ecefd2bee7b8251ca00d393570e8b2e60b27e3c5e436ebb39fd0853c5650e298812538140f1daac2ce96725a0b67e2949dcece92f0c7f53f074ca3fd51ed6c5
6
+ metadata.gz: 8cdfa4a8e1dc98e23868fd25fa5113bd77b9df5fb1ab294c1a116d676e89faac68a8eb94fd9178a4edbece88e2961cb40003b816441769a61b5f5410b3e020db
7
+ data.tar.gz: b1bea20bae359fb74f7db2bb9bd62a8085287787996916f90ae4a2a89eb93a77f9a134d87e1e3c206449cb4fa4712db867d6d18b36711c118b4fd2ff8979df94
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa_rails (0.1.9)
4
+ fa_rails (0.1.10)
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.9'
3
+ s.version = '0.1.10'
4
4
  s.date = '2018-07-30'
5
5
  s.summary = 'FontAwesome helper for Rails'
6
6
  s.description = 'A helper module for using FontAwesome icons in Rails.'
data/spec/lib/fa_spec.rb CHANGED
@@ -15,18 +15,18 @@ RSpec.describe FA do
15
15
  describe 'icon' do
16
16
  it 'should generate the correct icon from a string or symbol name' do
17
17
  expect(FA::Icon.new('help').safe).to eql(
18
- "<i class='fas fa-help' data-fa-transform='' title=''></i>"
18
+ "<i class='fa fas fa-help fa-1x' data-fa-transform='' title=''></i>"
19
19
  )
20
20
 
21
21
  expect(FA::Icon.new(:help).safe).to eql(
22
- "<i class='fas fa-help' data-fa-transform='' title=''></i>"
22
+ "<i class='fa fas fa-help fa-1x' data-fa-transform='' title=''></i>"
23
23
  )
24
24
  end
25
25
 
26
26
  it 'should generate the correct icon from a configuration hash' do
27
27
  fa = { name: 'help', options: { style: :light, size: 2 } }
28
28
  expect(FA::Icon.new(fa).safe).to eql(
29
- "<i class='fal fa-help fa-2x' data-fa-transform='' title=''></i>"
29
+ "<i class='fa fal fa-help fa-2x' data-fa-transform='' title=''></i>"
30
30
  )
31
31
  end
32
32
 
@@ -40,7 +40,7 @@ RSpec.describe FA do
40
40
 
41
41
  it 'should generate the correct brand icon' do
42
42
  expect(FA::Icon.new(:github, style: :brands).safe).to eql(
43
- "<i class='fab fa-github' data-fa-transform='' title=''></i>"
43
+ "<i class='fa fab fa-github fa-1x' data-fa-transform='' title=''></i>"
44
44
  )
45
45
  end
46
46
  end
@@ -55,9 +55,9 @@ RSpec.describe FA do
55
55
 
56
56
  expect(FA::Layer.new(icons, grow: 2).safe).to eql(
57
57
  "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
58
- "<i class='fas fa-square' data-fa-transform='grow-2' title=''></i>" \
59
- "<i class='fas fa-circle' data-fa-transform='grow-3' title=''></i>" \
60
- "<i class='far fa-exclamation' data-fa-transform='grow-2' title=''>" \
58
+ "<i class='fa fas fa-stack-1x fa-square fa-1x' data-fa-transform='grow-2' title=''></i>" \
59
+ "<i class='fa fas fa-stack-1x fa-circle fa-1x' data-fa-transform='grow-3' title=''></i>" \
60
+ "<i class='fa far fa-stack-1x fa-exclamation fa-1x' data-fa-transform='grow-2' title=''>" \
61
61
  '</i></span>'
62
62
  )
63
63
  end
@@ -70,8 +70,8 @@ RSpec.describe FA do
70
70
 
71
71
  expect(FA::Layer.new(icons).safe).to eql(
72
72
  "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
73
- "<i class='fas fa-square' data-fa-transform='grow-0' title=''></i>" \
74
- "<span class='fa-layers-counter fa-layers-top-left' " \
73
+ "<i class='fa fas fa-stack-1x fa-square fa-1x' data-fa-transform='grow-0' title=''></i>" \
74
+ "<span class='fa fa-stack-1x fa-layers-counter fa-layers-top-left' " \
75
75
  "data-fa-transform='grow-0'>17</span></span>"
76
76
  )
77
77
  end
@@ -80,14 +80,14 @@ RSpec.describe FA do
80
80
  describe 'span' do
81
81
  it 'should generate the correct span from a string or symbol type' do
82
82
  expect(FA::Span.new(:text, 'Hello').safe).to eql(
83
- "<span class='fa-layers-text ' data-fa-transform=''>Hello</span>"
83
+ "<span class='fa fa-layers-text ' data-fa-transform=''>Hello</span>"
84
84
  )
85
85
  end
86
86
 
87
87
  it 'should generate the correct span from a configuration hash' do
88
88
  span = { type: :text, text: 'World', options: { position: :bl } }
89
89
  expect(FA::Span.new(span).safe).to eql(
90
- "<span class='fa-layers-text fa-layers-bottom-left' " \
90
+ "<span class='fa fa-layers-text fa-layers-bottom-left' " \
91
91
  "data-fa-transform=''>World</span>"
92
92
  )
93
93
  end
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander