fa_rails 0.1.6 → 0.1.7

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: 8a1756a2645940b450bf67a8553f02b46326f85f
4
- data.tar.gz: 595c7c31e7df60adb382890be3582359bb1eec0f
3
+ metadata.gz: 4ac278955afe8bc5772e25b2806da5a0f1e7b7db
4
+ data.tar.gz: e0b8550186a7cbdb50fd3dc6f91966eaec1a2e20
5
5
  SHA512:
6
- metadata.gz: fa3bd92ff8e593410d159adef7554887251927c9c7a6ef7eb7eed67b5c59c97a17647f199ab93deb47339df283e507d8d87781d6f2f26b59440cf02f3d60767e
7
- data.tar.gz: 6fd8bb397108d6ed430b50b09375ac010a076e7fbbac587370aaaeaab598c4339111326636fe9cb335ef2ec414664b8c9f8ddfce6bed328245ae625a77429c4c
6
+ metadata.gz: ab5cb1238034715484cf1aa1167b342e4118e0b4b5551a5efcd60e6829e63c7dd785e388cbc852fb52d5b2863e35fc6cd1fd02c2eb76247fad0cc0adf0b3f38e
7
+ data.tar.gz: cbb80eb2e7e10643c3ef999738566a56cedb27dba5a018f44393df4b45a0a22f7ad1efdcd8276f57610765be1253d5e994ca059b0b11c0ac158bc3fd9ed82cb8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fa_rails (0.1.6)
4
+ fa_rails (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -135,14 +135,14 @@ FA::Span.new('counter', 5).safe
135
135
 
136
136
  # Gray envelope icon with red exclamation mark overlayed, with tooltip 'Invalid email address'
137
137
  FA::Layer.new([{ name: 'envelope', options: { css: :gray } }, { name: 'exclamation', options: { css: :red } }], title: 'Invalid email address').safe
138
- #=> "<span class='icon fa-layers fa-fw ' title='Invalid email address'>" \
138
+ #=> "<span class='icon fa-layers fa-stack fa-fw ' title='Invalid email address'>" \
139
139
  # "<i class='fas gray fa-envelope' data-fa-transform='grow-0' title=''></i>" \
140
140
  # "<i class='fas red fa-exclamation' data-fa-transform='grow-0' title=''></i>" \
141
141
  # "</span>"
142
142
 
143
143
  # Blue envelope with red counter on the top left corner, with value 7
144
144
  FA::Layer.new([{ name: 'envelope', options: { css: :blue } }, { name: 'counter', text: 7, options: { css: :red, position: :tl } }]).safe
145
- #=> "<span class='icon fa-layers fa-fw ' title=''>" \
145
+ #=> "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
146
146
  # "<i class='fas gray fa-envelope' data-fa-transform='grow-0' title=''></i>" \
147
147
  # "<span class='red fa-layers-counter ' data-fa-transform='grow-0'>7" \
148
148
  # "</span>" \
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.6'
3
+ s.version = '0.1.7'
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/lib/fa/layer.rb CHANGED
@@ -23,7 +23,8 @@ module FA
23
23
 
24
24
  # Outputs the formatted stack of icons and spans directly.
25
25
  def raw
26
- span_top = "<span class='icon fa-layers fa-fw #{@css}' title='#{@title}'>"
26
+ span_top = "<span class='icon fa-layers fa-stack fa-fw #{@css}' " \
27
+ "title='#{@title}'>"
27
28
  span_bottom = '</span>'
28
29
 
29
30
  @icons.each do |i|
data/spec/lib/fa_spec.rb CHANGED
@@ -54,7 +54,7 @@ RSpec.describe FA do
54
54
  ]
55
55
 
56
56
  expect(FA::Layer.new(icons, grow: 2).safe).to eql(
57
- "<span class='icon fa-layers fa-fw ' title=''>" \
57
+ "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
58
58
  "<i class='fas fa-square' data-fa-transform='grow-2' title=''></i>" \
59
59
  "<i class='fas fa-circle' data-fa-transform='grow-3' title=''></i>" \
60
60
  "<i class='far fa-exclamation' data-fa-transform='grow-2' title=''>" \
@@ -69,7 +69,7 @@ RSpec.describe FA do
69
69
  ]
70
70
 
71
71
  expect(FA::Layer.new(icons).safe).to eql(
72
- "<span class='icon fa-layers fa-fw ' title=''>" \
72
+ "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
73
73
  "<i class='fas fa-square' data-fa-transform='grow-0' title=''></i>" \
74
74
  "<span class='fa-layers-counter fa-layers-top-left' " \
75
75
  "data-fa-transform='grow-0'>17</span></span>"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander