font_awesome5_rails 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/app/assets/fonts/fa-brands-400.eot +0 -0
- data/app/assets/fonts/fa-brands-400.svg +742 -579
- data/app/assets/fonts/fa-brands-400.ttf +0 -0
- data/app/assets/fonts/fa-brands-400.woff +0 -0
- data/app/assets/fonts/fa-brands-400.woff2 +0 -0
- data/app/assets/fonts/fa-regular-400.eot +0 -0
- data/app/assets/fonts/fa-regular-400.svg +13 -9
- data/app/assets/fonts/fa-regular-400.ttf +0 -0
- data/app/assets/fonts/fa-regular-400.woff +0 -0
- data/app/assets/fonts/fa-regular-400.woff2 +0 -0
- data/app/assets/fonts/fa-solid-900.eot +0 -0
- data/app/assets/fonts/fa-solid-900.svg +136 -125
- data/app/assets/fonts/fa-solid-900.ttf +0 -0
- data/app/assets/fonts/fa-solid-900.woff +0 -0
- data/app/assets/fonts/fa-solid-900.woff2 +0 -0
- data/app/assets/images/fa5/brands/acquisitions-incorporated.svg +1 -1
- data/app/assets/images/fa5/brands/adobe.svg +1 -1
- data/app/assets/images/fa5/brands/airbnb.svg +1 -0
- data/app/assets/images/fa5/brands/amazon-pay.svg +1 -1
- data/app/assets/images/fa5/brands/angular.svg +1 -1
- data/app/assets/images/fa5/brands/apple.svg +1 -1
- data/app/assets/images/fa5/brands/artstation.svg +1 -1
- data/app/assets/images/fa5/brands/battle-net.svg +1 -0
- data/app/assets/images/fa5/brands/bitbucket.svg +1 -1
- data/app/assets/images/fa5/brands/bootstrap.svg +1 -0
- data/app/assets/images/fa5/brands/buffer.svg +1 -0
- data/app/assets/images/fa5/brands/canadian-maple-leaf.svg +1 -1
- data/app/assets/images/fa5/brands/centos.svg +1 -1
- data/app/assets/images/fa5/brands/chromecast.svg +1 -0
- data/app/assets/images/fa5/brands/critical-role.svg +1 -1
- data/app/assets/images/fa5/brands/diaspora.svg +1 -1
- data/app/assets/images/fa5/brands/evernote.svg +1 -0
- data/app/assets/images/fa5/brands/fedora.svg +1 -1
- data/app/assets/images/fa5/brands/figma.svg +1 -1
- data/app/assets/images/fa5/brands/fulcrum.svg +1 -1
- data/app/assets/images/fa5/brands/hackerrank.svg +1 -1
- data/app/assets/images/fa5/brands/hornbill.svg +1 -1
- data/app/assets/images/fa5/brands/houzz.svg +1 -1
- data/app/assets/images/fa5/brands/itch-io.svg +1 -0
- data/app/assets/images/fa5/brands/java.svg +1 -1
- data/app/assets/images/fa5/brands/kaggle.svg +1 -1
- data/app/assets/images/fa5/brands/keybase.svg +1 -1
- data/app/assets/images/fa5/brands/linkedin-in.svg +1 -1
- data/app/assets/images/fa5/brands/mailchimp.svg +1 -1
- data/app/assets/images/fa5/brands/mandalorian.svg +1 -1
- data/app/assets/images/fa5/brands/mastodon.svg +1 -1
- data/app/assets/images/fa5/brands/neos.svg +1 -1
- data/app/assets/images/fa5/brands/nimblr.svg +1 -1
- data/app/assets/images/fa5/brands/osi.svg +1 -1
- data/app/assets/images/fa5/brands/phoenix-squadron.svg +1 -1
- data/app/assets/images/fa5/brands/quinscape.svg +1 -1
- data/app/assets/images/fa5/brands/reacteurope.svg +1 -1
- data/app/assets/images/fa5/brands/rev.svg +1 -1
- data/app/assets/images/fa5/brands/rocketchat.svg +1 -1
- data/app/assets/images/fa5/brands/salesforce.svg +1 -0
- data/app/assets/images/fa5/brands/sass.svg +1 -1
- data/app/assets/images/fa5/brands/shopware.svg +1 -1
- data/app/assets/images/fa5/brands/sketch.svg +1 -1
- data/app/assets/images/fa5/brands/sourcetree.svg +1 -1
- data/app/assets/images/fa5/brands/speakap.svg +1 -1
- data/app/assets/images/fa5/brands/speaker-deck.svg +1 -0
- data/app/assets/images/fa5/brands/strava.svg +1 -1
- data/app/assets/images/fa5/brands/stripe-s.svg +1 -1
- data/app/assets/images/fa5/brands/suse.svg +1 -1
- data/app/assets/images/fa5/brands/symfony.svg +1 -0
- data/app/assets/images/fa5/brands/teamspeak.svg +1 -1
- data/app/assets/images/fa5/brands/the-red-yeti.svg +1 -1
- data/app/assets/images/fa5/brands/themeco.svg +1 -1
- data/app/assets/images/fa5/brands/think-peaks.svg +1 -1
- data/app/assets/images/fa5/brands/typo3.svg +1 -1
- data/app/assets/images/fa5/brands/ups.svg +1 -1
- data/app/assets/images/fa5/brands/usps.svg +1 -1
- data/app/assets/images/fa5/brands/waze.svg +1 -0
- data/app/assets/images/fa5/brands/wolf-pack-battalion.svg +1 -1
- data/app/assets/images/fa5/brands/yammer.svg +1 -0
- data/app/assets/images/fa5/brands/yelp.svg +1 -1
- data/app/assets/images/fa5/solid/expand-arrows-alt.svg +1 -1
- data/app/assets/images/fa5/solid/magnet.svg +1 -1
- data/app/assets/images/fa5/solid/redo.svg +1 -1
- data/app/assets/images/fa5/solid/sync.svg +1 -1
- data/app/assets/images/fa5/solid/volleyball-ball.svg +1 -1
- data/app/assets/images/fa5/solid/volume-off.svg +1 -1
- data/app/assets/images/fa5/solid/wave-square.svg +1 -0
- data/app/assets/javascripts/all.min.js +5 -1
- data/app/assets/javascripts/font_awesome5.js +1 -5
- data/app/assets/stylesheets/all.scss +40 -1
- data/app/assets/stylesheets/font_awesome5_webfont.scss +4 -0
- data/app/assets/stylesheets/svg-with-js.min.css +4 -0
- data/app/helpers/font_awesome5/rails/icon_helper.rb +1 -7
- data/lib/font_awesome5_rails/parsers/fa_icon_parser.rb +20 -2
- data/lib/font_awesome5_rails/parsers/fa_stacked_icon_parser.rb +2 -2
- data/lib/font_awesome5_rails/version.rb +2 -2
- data/spec/font_awesome5_rails_spec.rb +4 -4
- metadata +15 -2
@@ -1,10 +1,10 @@
|
|
1
1
|
require_relative "parse_methods"
|
2
2
|
|
3
3
|
class FaStackedIconParser
|
4
|
-
attr_reader :reverse, :options, :span_classes, :first_icon_classes, :second_icon_classes, :text, :title
|
5
|
-
|
6
4
|
include ParseMethods
|
7
5
|
|
6
|
+
attr_reader :reverse, :options, :span_classes, :first_icon_classes, :second_icon_classes, :text, :title
|
7
|
+
|
8
8
|
def initialize(icon, options)
|
9
9
|
@icon = icon
|
10
10
|
@text = options[:text]
|
@@ -30,10 +30,6 @@ describe FontAwesome5Rails do
|
|
30
30
|
expect(File.exists?('./lib/font_awesome5_rails/parsers/fa_stacked_icon_parser.rb')).to be_truthy
|
31
31
|
expect(File.exists?('./lib/font_awesome5_rails/parsers/parse_methods.rb')).to be_truthy
|
32
32
|
end
|
33
|
-
|
34
|
-
it 'should not include requestAnimationFrame' do
|
35
|
-
expect(File.foreach('./app/assets/javascripts/all.min.js').grep(/requestAnimationFrame/).any?).to be_falsey
|
36
|
-
end
|
37
33
|
end
|
38
34
|
|
39
35
|
describe 'fa_icon tags' do
|
@@ -100,6 +96,10 @@ describe FontAwesome5Rails do
|
|
100
96
|
expect(fa_icon 'camera-retro', 'aria-hidden': true).to eq '<i class="fas fa-camera-retro" aria-hidden="true"></i>'
|
101
97
|
expect(fa_icon 'camera-retro', aria: {hidden: true}).to eq '<i class="fas fa-camera-retro" aria-hidden="true"></i>'
|
102
98
|
end
|
99
|
+
|
100
|
+
it 'should return tags with text on right side' do
|
101
|
+
expect(fa_icon 'camera-retro', text: 'Camera', right: true).to eq '<span class="fa5-text-r">Camera</span><i class="fas fa-camera-retro"></i>'
|
102
|
+
end
|
103
103
|
end
|
104
104
|
|
105
105
|
describe 'fa_stacked_icon tags' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font_awesome5_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tomkra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- app/assets/images/fa5/brands/adobe.svg
|
86
86
|
- app/assets/images/fa5/brands/adversal.svg
|
87
87
|
- app/assets/images/fa5/brands/affiliatetheme.svg
|
88
|
+
- app/assets/images/fa5/brands/airbnb.svg
|
88
89
|
- app/assets/images/fa5/brands/algolia.svg
|
89
90
|
- app/assets/images/fa5/brands/alipay.svg
|
90
91
|
- app/assets/images/fa5/brands/amazon-pay.svg
|
@@ -108,6 +109,7 @@ files:
|
|
108
109
|
- app/assets/images/fa5/brands/aviato.svg
|
109
110
|
- app/assets/images/fa5/brands/aws.svg
|
110
111
|
- app/assets/images/fa5/brands/bandcamp.svg
|
112
|
+
- app/assets/images/fa5/brands/battle-net.svg
|
111
113
|
- app/assets/images/fa5/brands/behance-square.svg
|
112
114
|
- app/assets/images/fa5/brands/behance.svg
|
113
115
|
- app/assets/images/fa5/brands/bimobject.svg
|
@@ -120,7 +122,9 @@ files:
|
|
120
122
|
- app/assets/images/fa5/brands/blogger.svg
|
121
123
|
- app/assets/images/fa5/brands/bluetooth-b.svg
|
122
124
|
- app/assets/images/fa5/brands/bluetooth.svg
|
125
|
+
- app/assets/images/fa5/brands/bootstrap.svg
|
123
126
|
- app/assets/images/fa5/brands/btc.svg
|
127
|
+
- app/assets/images/fa5/brands/buffer.svg
|
124
128
|
- app/assets/images/fa5/brands/buromobelexperte.svg
|
125
129
|
- app/assets/images/fa5/brands/buysellads.svg
|
126
130
|
- app/assets/images/fa5/brands/canadian-maple-leaf.svg
|
@@ -137,6 +141,7 @@ files:
|
|
137
141
|
- app/assets/images/fa5/brands/centercode.svg
|
138
142
|
- app/assets/images/fa5/brands/centos.svg
|
139
143
|
- app/assets/images/fa5/brands/chrome.svg
|
144
|
+
- app/assets/images/fa5/brands/chromecast.svg
|
140
145
|
- app/assets/images/fa5/brands/cloudscale.svg
|
141
146
|
- app/assets/images/fa5/brands/cloudsmith.svg
|
142
147
|
- app/assets/images/fa5/brands/cloudversify.svg
|
@@ -197,6 +202,7 @@ files:
|
|
197
202
|
- app/assets/images/fa5/brands/erlang.svg
|
198
203
|
- app/assets/images/fa5/brands/ethereum.svg
|
199
204
|
- app/assets/images/fa5/brands/etsy.svg
|
205
|
+
- app/assets/images/fa5/brands/evernote.svg
|
200
206
|
- app/assets/images/fa5/brands/expeditedssl.svg
|
201
207
|
- app/assets/images/fa5/brands/facebook-f.svg
|
202
208
|
- app/assets/images/fa5/brands/facebook-messenger.svg
|
@@ -273,6 +279,7 @@ files:
|
|
273
279
|
- app/assets/images/fa5/brands/internet-explorer.svg
|
274
280
|
- app/assets/images/fa5/brands/invision.svg
|
275
281
|
- app/assets/images/fa5/brands/ioxhost.svg
|
282
|
+
- app/assets/images/fa5/brands/itch-io.svg
|
276
283
|
- app/assets/images/fa5/brands/itunes-note.svg
|
277
284
|
- app/assets/images/fa5/brands/itunes.svg
|
278
285
|
- app/assets/images/fa5/brands/java.svg
|
@@ -383,6 +390,7 @@ files:
|
|
383
390
|
- app/assets/images/fa5/brands/rocketchat.svg
|
384
391
|
- app/assets/images/fa5/brands/rockrms.svg
|
385
392
|
- app/assets/images/fa5/brands/safari.svg
|
393
|
+
- app/assets/images/fa5/brands/salesforce.svg
|
386
394
|
- app/assets/images/fa5/brands/sass.svg
|
387
395
|
- app/assets/images/fa5/brands/schlix.svg
|
388
396
|
- app/assets/images/fa5/brands/scribd.svg
|
@@ -407,6 +415,7 @@ files:
|
|
407
415
|
- app/assets/images/fa5/brands/soundcloud.svg
|
408
416
|
- app/assets/images/fa5/brands/sourcetree.svg
|
409
417
|
- app/assets/images/fa5/brands/speakap.svg
|
418
|
+
- app/assets/images/fa5/brands/speaker-deck.svg
|
410
419
|
- app/assets/images/fa5/brands/spotify.svg
|
411
420
|
- app/assets/images/fa5/brands/squarespace.svg
|
412
421
|
- app/assets/images/fa5/brands/stack-exchange.svg
|
@@ -425,6 +434,7 @@ files:
|
|
425
434
|
- app/assets/images/fa5/brands/superpowers.svg
|
426
435
|
- app/assets/images/fa5/brands/supple.svg
|
427
436
|
- app/assets/images/fa5/brands/suse.svg
|
437
|
+
- app/assets/images/fa5/brands/symfony.svg
|
428
438
|
- app/assets/images/fa5/brands/teamspeak.svg
|
429
439
|
- app/assets/images/fa5/brands/telegram-plane.svg
|
430
440
|
- app/assets/images/fa5/brands/telegram.svg
|
@@ -463,6 +473,7 @@ files:
|
|
463
473
|
- app/assets/images/fa5/brands/vk.svg
|
464
474
|
- app/assets/images/fa5/brands/vnv.svg
|
465
475
|
- app/assets/images/fa5/brands/vuejs.svg
|
476
|
+
- app/assets/images/fa5/brands/waze.svg
|
466
477
|
- app/assets/images/fa5/brands/weebly.svg
|
467
478
|
- app/assets/images/fa5/brands/weibo.svg
|
468
479
|
- app/assets/images/fa5/brands/weixin.svg
|
@@ -485,6 +496,7 @@ files:
|
|
485
496
|
- app/assets/images/fa5/brands/xing.svg
|
486
497
|
- app/assets/images/fa5/brands/y-combinator.svg
|
487
498
|
- app/assets/images/fa5/brands/yahoo.svg
|
499
|
+
- app/assets/images/fa5/brands/yammer.svg
|
488
500
|
- app/assets/images/fa5/brands/yandex-international.svg
|
489
501
|
- app/assets/images/fa5/brands/yandex.svg
|
490
502
|
- app/assets/images/fa5/brands/yarn.svg
|
@@ -1564,6 +1576,7 @@ files:
|
|
1564
1576
|
- app/assets/images/fa5/solid/wallet.svg
|
1565
1577
|
- app/assets/images/fa5/solid/warehouse.svg
|
1566
1578
|
- app/assets/images/fa5/solid/water.svg
|
1579
|
+
- app/assets/images/fa5/solid/wave-square.svg
|
1567
1580
|
- app/assets/images/fa5/solid/weight-hanging.svg
|
1568
1581
|
- app/assets/images/fa5/solid/weight.svg
|
1569
1582
|
- app/assets/images/fa5/solid/wheelchair.svg
|