jekyll-octicons 4.0.1 → 4.0.3
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 +4 -4
- data/lib/jekyll-octicons.rb +8 -6
- data/lib/jekyll-octicons/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8d549d2db7778376bf875b0795e30b522a9b2f0
|
4
|
+
data.tar.gz: f86f49ee74aac12cdc9e33688b7a7a45805ff6d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d396378c472bae862b3777d7a7ff331f76c9c547069887c9ceaf7f8ecd6232a228d5f96f0ecabb8a3096cec6b5faaa64ee6febce8081d56089e624d808ed0d9
|
7
|
+
data.tar.gz: ea4bd8abe7dbc30228d9d17a68cacda75f6458befa1f9e8bb745c37b9a5f0709822d3d9b22021349c0028ebb737f702ef34faa6d6b07c807ba5b9531258d373c
|
data/lib/jekyll-octicons.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
1
|
+
# rubocop:disable Naming/FileName
|
2
|
+
require "octicons"
|
3
|
+
require "jekyll-octicons/version"
|
4
|
+
require "liquid"
|
5
|
+
require "jekyll/liquid_extensions"
|
5
6
|
|
6
7
|
module Jekyll
|
7
8
|
class Octicons < Liquid::Tag
|
@@ -22,6 +23,7 @@ module Jekyll
|
|
22
23
|
def initialize(tag_name, markup, options)
|
23
24
|
super
|
24
25
|
@markup = markup
|
26
|
+
|
25
27
|
# If there's interpoaltion going on, we need to do this in render
|
26
28
|
prepare(markup) unless match = markup.match(Variable)
|
27
29
|
end
|
@@ -59,7 +61,7 @@ module Jekyll
|
|
59
61
|
|
60
62
|
if match = markup.match(Syntax)
|
61
63
|
markup.scan(TagAttributes) do |key, value|
|
62
|
-
options[key.to_sym] = value.gsub(/\A"|"\z/,
|
64
|
+
options[key.to_sym] = value.gsub(/\A"|"\z/, "")
|
63
65
|
end
|
64
66
|
end
|
65
67
|
|
@@ -68,4 +70,4 @@ module Jekyll
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
71
|
-
Liquid::Template.register_tag(
|
73
|
+
Liquid::Template.register_tag("octicon", Jekyll::Octicons)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-octicons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: octicons
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description: A jekyll liquid plugin that makes including svg Octicons simple.
|
42
42
|
email:
|
43
43
|
- support@github.com
|