jekyll-fontawesome-svg 0.3.0 → 0.3.1

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: 7c0630c7480555723a0628eafe1f79ba158fb10b70adb627f58024e1aa77d17c
4
- data.tar.gz: ee7b4ea90032231492ed32d121fe2c7dffd02393384f0b2dbe65298628826251
3
+ metadata.gz: 56a49a5a9dc0afefd598b133d79670b57e7efb566890e5db2894890b8a9b4443
4
+ data.tar.gz: 7bc185953293b2d8a45bba97bf9d15d2c24da557c6f555b6c6632c74924bc4c3
5
5
  SHA512:
6
- metadata.gz: c0e7cb7d73e162eb228debc4cbae293812c472fc251562434c4ec10a8af2a07558e9a84f4e6b60b44791b35512800066a55c7feeb0cda19f04c83f7bbd2ebc88
7
- data.tar.gz: b3055efcc04642d4f3939b3d9b1c213ee06e98edcb0f2e570655128659bb0a07f795b512d7f55a9d65761985c903df762b964bf090225f3fb45a91954fef93e0
6
+ metadata.gz: 1a3dd0cf734a598dbba111a56f84e834f2e03a9bde73fca54548935e1e1b94bf8cc1f12f148018fd0212e51fe66fbd7e87c45096ec37ad660b4bea32a49e170c
7
+ data.tar.gz: 3a03eb1d7e4cf434755ff70ff794271d1f18106ac7523c587100c6cb37ff9656a41c48732a84152a463bf006227df52adab58e8be2ec09b85388883a56c1b8d0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-fontawesome-svg (0.3.0)
4
+ jekyll-fontawesome-svg (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -69,3 +69,16 @@ Initial release
69
69
  ### v0.1.1
70
70
 
71
71
  Bug fix: on a page with multiple icon that are the same, their was duplicate declarations.
72
+
73
+ ### v0.2.0
74
+
75
+ Added support for [academicons icons](http://github.com/jpswalsh/academicons)
76
+
77
+ ### v0.3.0
78
+
79
+ Drop support for academicons, split it in a [dedicated gem](https://github.com/sylvainmetayer/jekyll-academicons-svg).
80
+
81
+ ### v0.3.1
82
+
83
+ Fix: add viewbox of original svg instead of a fixed one. see #11 (thanks @benswift)
84
+
@@ -39,10 +39,11 @@ module Jekyll
39
39
 
40
40
  def to_svg_html
41
41
  file = File.read(to_filename)
42
- svg_html = /^.*path d="(.*)" ?\/>.*$/.match(file).captures.first
43
- "<symbol id='#{@icon}' viewBox='0 0 1024 1024'>
42
+ path_data = /^.*path d="(.*)" ?\/>.*$/.match(file).captures.first
43
+ viewBox = /^.*viewBox="([^"]*)".*$/.match(file).captures.first
44
+ "<symbol id='#{@icon}' viewBox='#{viewBox}'>
44
45
  <title>#{to_icon_name}</title>
45
- <path class='path1' d='#{svg_html}'></path>
46
+ <path class='path1' d='#{path_data}'></path>
46
47
  </symbol>
47
48
  "
48
49
  end
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module FontAwesome
3
3
  module Svg
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-fontawesome-svg
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
  - Sylvain METAYER
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler