faw_icon 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: c9eae78c0e05454bbc1f99c152a9af2d9a2cb383044ab244f1b6c063bd5cbc27
4
- data.tar.gz: 9327927c37f74b8d46d9a63495f6811241cf1efb55d22914fef8d0d27847400a
3
+ metadata.gz: b5005dea118faae94bd59e6ce4684d7ca5cb38cf95aee3a453ae39aff9665d6f
4
+ data.tar.gz: a9e7b52618418cbbd5b921ece6e76dcd248d6afc4d64f5061c0df1e4ba5891fb
5
5
  SHA512:
6
- metadata.gz: f1fa4dd691872a144ad02d79c73c4039ec59cc19b4d37e8c85c116a73952fb900d17ac5fc81b446e53a3748d42dd2ca0628972a954e86e8bfbd23b7cd63ed472
7
- data.tar.gz: 3b6f601ebc444a65189315a64626220f51fd3d76d318811b7d19d672eb76a409e363a5ae17cbba5e869a0d5d632dd9da885c1538429e26f9d5d773acf8db8e42
6
+ metadata.gz: e5d798712de3ca81fa93e33ae772e466f4f6acf2d2532a2308c5bc543187656d2167865d7740df7a63807fccadfab8a0b4b385d9447e94bf9b080d15f5e28a59
7
+ data.tar.gz: 557a87410b7daf5b709715f05d07750269ed327ad0dcfad747fdea53bab229eb8baa3e74cab860c99e157b1aa1b6158ffa75870b031c1780144d4ef5c7bf8d88
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faw_icon (0.2.0)
4
+ faw_icon (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,10 +2,7 @@
2
2
 
3
3
  ### Minimalistic ruby gem that exposes a tag helper for Font Awesome icon sets.
4
4
 
5
- By design only the svg-with-js version is supported following the recommendations from the font-awesome docs
6
- https://fontawesome.com/get-started/svg-with-js.
7
-
8
- Another great feature is that is does not bundle any icons making it super fast to download and install
5
+ By design it does not bundle any icons making it super fast to download and install
9
6
  as well as providing the ability to use new icons as they become available custom ones or the PRO collection.
10
7
 
11
8
  ## Installation
@@ -24,12 +21,17 @@ Or install it yourself as:
24
21
 
25
22
  $ gem install faw_icon
26
23
 
27
- You will need to download and include in your application.js the desired .js files from [Font Awesome](https://fontawesome.com/get-started/svg-with-js)
28
- where you can choose to include all or only a subset of them either the free ones or the PRO collections
24
+ You will need to download the .zip folder from [Font Awesome](https://fontawesome.com/get-started/svg-with-js)
25
+ where you can choose either the free ones or the PRO collections
26
+
27
+ Include in your application.scss the `fontawesome/svg-with-js/css/fa-svg-with-js.css`
28
+ ideally placing in the `app/assets/stylesheets/fa-svg-with-js.css`
29
29
 
30
- application.js
30
+ application.scss
31
31
 
32
- //= require fontawesome-all.min
32
+ @import "fa-svg-with-js";
33
+
34
+ Then copy the `fontawesome/advanced-options/metadata/icons.json` in `app/assets/javascripts/icons.json`
33
35
 
34
36
  ## Usage
35
37
  All options from [additional-styling](https://fontawesome.com/how-to-use/svg-with-js#additional-styling) are supported with the exception of
@@ -2,6 +2,9 @@ require "faw_icon/version"
2
2
 
3
3
  module FawIcon
4
4
  def faw_icon(style, name, options = {})
5
+ if style == 'brand'
6
+ style = 'brands'
7
+ end
5
8
  fa_prefix = 'fa'
6
9
  html_props = {}
7
10
  icons = JSON.parse(File.read('app/assets/javascripts/icons.json'))
@@ -1,3 +1,3 @@
1
1
  module FawIcon
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faw_icon
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
  - alexwebgr