jemoji 0.10.1 → 0.10.2
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/jemoji.rb +4 -3
- metadata +19 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84ecd66167f2a3e994d250eac07a900bd5c0aa3799b29d36db2b1bbed9f83fc7
|
|
4
|
+
data.tar.gz: 4ad66bff7f6305a51ad8b3123fa656344fb914adfa2a54308c62e1095c9927c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fe0967ebf427869c8c604ffad20378aa417b6cd2a67ec18a7571b479ea4c86672245c8f52d4466b42fcf8600aa0f06983bddbbc02c9e2e6840e7895dc0d03d6
|
|
7
|
+
data.tar.gz: e634357f8c128d3283145121c9f8267b110b77882105dc3c930eabb789a72025e250ce91009e75083172fb74c2b5d78653d042af3f4d10a656dcce46b22db420
|
data/lib/jemoji.rb
CHANGED
|
@@ -6,14 +6,15 @@ require "html/pipeline"
|
|
|
6
6
|
|
|
7
7
|
module Jekyll
|
|
8
8
|
class Emoji
|
|
9
|
-
GITHUB_DOT_COM_ASSET_HOST_URL = "https://
|
|
9
|
+
GITHUB_DOT_COM_ASSET_HOST_URL = "https://github.githubassets.com"
|
|
10
10
|
ASSET_PATH = "/images/icons/"
|
|
11
11
|
BODY_START_TAG = "<body"
|
|
12
|
-
OPENING_BODY_TAG_REGEX = %r!<body(.*?)>\s
|
|
12
|
+
OPENING_BODY_TAG_REGEX = %r!<body(.*?)>\s*!.freeze
|
|
13
13
|
|
|
14
14
|
class << self
|
|
15
15
|
def emojify(doc)
|
|
16
16
|
return unless doc.output =~ HTML::Pipeline::EmojiFilter.emoji_pattern
|
|
17
|
+
|
|
17
18
|
doc.output = if doc.output.include? BODY_START_TAG
|
|
18
19
|
replace_document_body(doc)
|
|
19
20
|
else
|
|
@@ -24,7 +25,7 @@ module Jekyll
|
|
|
24
25
|
|
|
25
26
|
# Public: Create or fetch the filter for the given {{src}} asset root.
|
|
26
27
|
#
|
|
27
|
-
# src - the asset root URL (e.g. https://
|
|
28
|
+
# src - the asset root URL (e.g. https://github.githubassets.com/images/icons/)
|
|
28
29
|
#
|
|
29
30
|
# Returns an HTML::Pipeline instance for the given asset root.
|
|
30
31
|
def filter_with_emoji(src)
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gemoji
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: bundler
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: rake
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,14 +100,14 @@ dependencies:
|
|
|
86
100
|
requirements:
|
|
87
101
|
- - "~>"
|
|
88
102
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.
|
|
103
|
+
version: '0.4'
|
|
90
104
|
type: :development
|
|
91
105
|
prerelease: false
|
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
107
|
requirements:
|
|
94
108
|
- - "~>"
|
|
95
109
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.
|
|
110
|
+
version: '0.4'
|
|
97
111
|
description:
|
|
98
112
|
email: support@github.com
|
|
99
113
|
executables: []
|
|
@@ -120,8 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
134
|
- !ruby/object:Gem::Version
|
|
121
135
|
version: '0'
|
|
122
136
|
requirements: []
|
|
123
|
-
|
|
124
|
-
rubygems_version: 2.7.7
|
|
137
|
+
rubygems_version: 3.0.2
|
|
125
138
|
signing_key:
|
|
126
139
|
specification_version: 4
|
|
127
140
|
summary: GitHub-flavored emoji plugin for Jekyll
|