font_awesome5_rails 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 8564b23200b3ab9d0d88ca38762aa8ef04b38d37a590261ab7e96eaac0b0f567
4
- data.tar.gz: ea61d6f07e897dd7db266734374c5ce7242ec42afac589ddc051fd97a664d465
3
+ metadata.gz: 27a43c098b377f19a8761db082155cf33a7e083e9291513c14b1bcf78887a661
4
+ data.tar.gz: 8d47a048749a336176ec44970f0e7a75cc876f7e21351ac5232fb088e4f87120
5
5
  SHA512:
6
- metadata.gz: c9b6b68e919b38f9c3f27c06f19cdbdf3ff61b0fb38a13cab5761192986728633ffac0751df78018779fd49e718fe9844c5e261d9f788d677e33e9015d6187eb
7
- data.tar.gz: 26d684746524cab8b3e20653404254bf984c84b250b8c9657984e35d73bad399a64f793d8321cf9de899514dcbd1b7c3aef1fb9168c41d03c39b6282d352ff26
6
+ metadata.gz: 2f38d01540cc29a64e7f978c365e3aaa6e76b988f4436282b1073355885233bbdeac22104f809d92f1ebcb4a764781188b7ec0e904ce58ee2de1ea9319e96f39
7
+ data.tar.gz: 6f9028a86ea033727f5b5c8708540b727372480fcc9afab49a2747556e2968f83c14ed41e891a982f36da5fc66d6e89e90d81f31683878db87316659cba50081
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # FontAwesome5Rails
1
+ # Font Awesome 5 Rails
2
2
  [![Build Status](https://travis-ci.org/tomkra/font_awesome5_rails.svg?branch=master)](https://travis-ci.org/tomkra/font_awesome5_rails)
3
3
  [![HitCount](http://hits.dwyl.io/tomkra/tomkra/font_awesome5_rails.svg)](http://hits.dwyl.io/tomkra/tomkra/font_awesome5_rails)
4
4
 
@@ -6,6 +6,8 @@ font_awesome5_rails provides the [Font-Awesome5](https://fontawesome.com/) web f
6
6
 
7
7
  This gem provides only Free icons from Font-Awesome.
8
8
 
9
+ Keep track of changes in [Changelog](https://github.com/tomkra/font_awesome5_rails/blob/master/CHANGELOG.md).
10
+
9
11
  ## Table of Contents
10
12
  **[Instalation](#instalation)** <br />
11
13
  **[Usage](#usage)** <br />
@@ -15,6 +17,7 @@ This gem provides only Free icons from Font-Awesome.
15
17
  - **[Layered and Stacked icons](#layered-and-stacked-icons)** <br />
16
18
 
17
19
  **[Use as images](#use-as-images)** <br />
20
+ **[FontAwesome 5 Pro icons](#fontawesome-5-pro-icons)** <br />
18
21
 
19
22
 
20
23
  ## Installation
@@ -181,6 +184,16 @@ More examples can be found in specs.
181
184
 
182
185
  More animation and data attributes can be found on [FontAwesome documentation](https://fontawesome.com/how-to-use/svg-with-js).
183
186
 
187
+ ## FontAwesome 5 Pro icons
188
+ Due to licence policy this gem pack only free FA5 icons. However ```fa_icon``` helper support all types of icons. If you buyed FA5 Pro icons and want to use helpers provided by this gem it's possible.
189
+ 1. Add this gem to your ```Gemfile``` without including anything to ```application.css``` and ```application.js```.
190
+ 2. Download your FA5 pro icons and unpack them.
191
+ 3. Now you will have to manualy include all FA5 files you want to use to your ```/assets``` folder.
192
+ 4. If you're using ```svg``` files do not forget to include ```*.svg``` in your ```assets.rb``` file.
193
+ 5. You should now be able to use all FA5 Pro icons with helpers provided by this gem.
194
+
195
+ If you have any questions feel free to create new issue.
196
+
184
197
  ## License
185
198
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
186
199
 
@@ -1 +1,5 @@
1
- //= require fontawesome-all.min
1
+ //= require fontawesome-all.min
2
+
3
+ document.addEventListener('turbolinks:load', function(){
4
+ FontAwesome.dom.i2svg();
5
+ });
@@ -4,4 +4,8 @@
4
4
 
5
5
  .fa5-text {
6
6
  padding-left: 5px;
7
+ }
8
+
9
+ .fontawesome-i2svg-pending body {
10
+ display: none;
7
11
  }
@@ -1,4 +1,4 @@
1
1
  module FontAwesome5Rails
2
2
  FA_VERSION = '5.0.9'
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomkra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-01 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.2'
22
+ version: '5.3'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.2'
32
+ version: '5.3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement