faw_icon 0.4.2 → 0.5.2

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
  SHA256:
3
- metadata.gz: b9b783bfac785840004b982c9bc0fa71a93e74f82706076a7c6df5911c8b928c
4
- data.tar.gz: 4a44897161e5ad7bc9e1c822e9d1217f6552d585c1b16f5848cfd60c94686223
3
+ metadata.gz: 15b9dbf3d06ffd3784bacb087db692f4ecbdf46e6e40f1f66794d17632209f60
4
+ data.tar.gz: 5c6ff460462e1438c75b03337e091c2d0766da3c929374aabc910053f5f4730c
5
5
  SHA512:
6
- metadata.gz: 1ab604a4f8ad785d741c2bd2c913799cf0c295716e511bb262ce017fdef3b9417c2336d2b5a4d5b8c75c2c1eb3212eee4a5af4f84ebc60b33e02017cb56e2625
7
- data.tar.gz: db39ddd9fd2ffb4818b72f70f253fe961fb903e2d0f259069de427f5623f07faf396f52e10ae22b7b466e2110271e0234bd0ea496d9ecd6ddeec139c7f73b535
6
+ metadata.gz: 656459ecc1e2f9d17690d024612f6361a8c17e7f65acba99c6d1b98109fe8dc287af00af7cbe9237e729f4765c24ef682a770ae896a97c19a9c78491e0346ff6
7
+ data.tar.gz: 8095adb7f78bd0d16eb22de88c38eb75738e55a442b668d50d7bbc07ffa8b4ef1f11e16966fb02d873da97074bdc4dc961c4e505171b79d57014b31b084f3c08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faw_icon (0.4.2)
4
+ faw_icon (0.5.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -66,6 +66,7 @@ A mapping for the properties has been introduced in an attempt to make them more
66
66
  | class | name | yes | fa-user | user | string |
67
67
  | class | fixed_width | no | fa-fw | true | boolean |
68
68
  | class | spin | no | fa-spin | true | boolean |
69
+ | class | extra_class | no | N/A | any custom css class | string |
69
70
  | data-fa-transform | transform | no | grow-6 | grow-6 | string |
70
71
  | data-fa-mask | mask | no | fas fa-comment | fas fa-comment | string |
71
72
 
@@ -75,6 +76,7 @@ The `style` and `name` are required params and the rest optional ones go into a
75
76
  Then just use them like this
76
77
 
77
78
  <%= faw_icon 'solid', 'magic' %>
79
+ <%= faw_icon 'solid', 'star', {extra_class: 'active'} %>
78
80
  <%= faw_icon 'solid', 'user', {size: '10x'} %>
79
81
  <%= faw_icon 'light', 'info', {fixed_width: true} %>
80
82
  <%= faw_icon 'regular', 'sync', {spin: true} %>
@@ -21,6 +21,7 @@ module FawIcon
21
21
  html_props[:class] << "#{fa_prefix}-#{options[:size]}" if options[:size]
22
22
  html_props[:class] << "#{fa_prefix}-fw" if options[:fixed_width]
23
23
  html_props[:class] << "#{fa_prefix}-spin" if options[:spin]
24
+ html_props[:class] << options[:extra_class] if options[:extra_class]
24
25
 
25
26
  tag = []
26
27
  tag << "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"#{view_box.join(' ')}\" class=\"#{html_props[:class].join(' ')}\""
@@ -1,3 +1,3 @@
1
1
  module FawIcon
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faw_icon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexwebgr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-25 00:00:00.000000000 Z
11
+ date: 2018-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler