jemoji 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jemoji.rb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6812e2d37efc38063a95fa7768abca92684b2e1c8b6dbb54d3b4e5d406a3b6
|
4
|
+
data.tar.gz: 5160b2f79dabfd83ac2f53d59a40b6e4c0ec2edb8b3a43995a32c1c82dae4c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 252aa8422ca1b5dc1d24ef6fe316e5154c7e3826bcfa8dc11d1aca2817400d487affeb6fbf704f4917b70221eaaacbc6404abcbecae969f738b1d883c0e706fe
|
7
|
+
data.tar.gz: ec06cd8f36e4958f80d66c7e0ed5def22d01ead17c7de438e716b604acd060fae044bd0690cbafe00e08c43c1705f4694d0a55158bf9c021930646d6cf6c2332
|
data/lib/jemoji.rb
CHANGED
@@ -9,7 +9,7 @@ module Jekyll
|
|
9
9
|
GITHUB_DOT_COM_ASSET_HOST_URL = "https://assets-cdn.github.com"
|
10
10
|
ASSET_PATH = "/images/icons/"
|
11
11
|
BODY_START_TAG = "<body"
|
12
|
-
OPENING_BODY_TAG_REGEX = %r!<body(
|
12
|
+
OPENING_BODY_TAG_REGEX = %r!<body(.*?)>\s*!
|
13
13
|
|
14
14
|
class << self
|
15
15
|
def emojify(doc)
|
@@ -30,7 +30,7 @@ module Jekyll
|
|
30
30
|
def filter_with_emoji(src)
|
31
31
|
filters[src] ||= HTML::Pipeline.new([
|
32
32
|
HTML::Pipeline::EmojiFilter,
|
33
|
-
],
|
33
|
+
], :asset_root => src, :img_attrs => { :align => nil })
|
34
34
|
end
|
35
35
|
|
36
36
|
# Public: Filters hash where the key is the asset root source.
|
@@ -90,6 +90,6 @@ module Jekyll
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
Jekyll::Hooks.register
|
93
|
+
Jekyll::Hooks.register [:pages, :documents], :post_render do |doc|
|
94
94
|
Jekyll::Emoji.emojify(doc) if Jekyll::Emoji.emojiable?(doc)
|
95
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jemoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemoji
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop
|
84
|
+
name: rubocop-jekyll
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.1.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.1.0
|
97
97
|
description:
|
98
98
|
email: support@github.com
|
99
99
|
executables: []
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.7.
|
124
|
+
rubygems_version: 2.7.7
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: GitHub-flavored emoji plugin for Jekyll
|