jemoji-plus 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jemoji_plus.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad9ef6973aa5b61e3d1fa45d8dd5c313d48a0329e65b7bf490bd1e951086e085
|
4
|
+
data.tar.gz: 0a898633c079b657acd8ce5e90c3ddc2ea8d8b17fd1bb77f560a34b54e44516d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db5a4827f07bbfb17ba0ac0980e946105f4091b945321f1435891a87edd73ec2f9c6f6a86ae4b3dd7747cacb07c0b68764618d1852a497832c3a3b36db527561
|
7
|
+
data.tar.gz: 4309008a6aba13df6e22fae38892e4bf312100092f415a2688f340bc5188417bf60224321e84091cfe3cb8d2fae4b8a84f44a0eb3c8dc534e529a35b1c08f8de
|
data/lib/jemoji_plus.rb
CHANGED
@@ -51,7 +51,7 @@ module Jekyll
|
|
51
51
|
# URL for assets provided by an ASSET_HOST environment variable,
|
52
52
|
# otherwise the root URL for emoji assets at assets-cdn.github.com.
|
53
53
|
def emoji_src(config = {})
|
54
|
-
if config.key?("
|
54
|
+
if config.key?("jemoji_plus") && config["jemoji_plus"].key?("host") && config["jemoji_plus"].key?("path")
|
55
55
|
config_asset_root
|
56
56
|
else
|
57
57
|
default_asset_root
|
@@ -72,8 +72,8 @@ module Jekyll
|
|
72
72
|
|
73
73
|
def config_asset_root
|
74
74
|
# Ensure that any trailing "/" is trimmed.
|
75
|
-
asset_host_url = config["
|
76
|
-
asset_path = config["
|
75
|
+
asset_host_url = config["jemoji_plus"]["host"].chomp("/")
|
76
|
+
asset_path = config["jemoji_plus"]["path"]
|
77
77
|
# If asset_path is not empty, ensure it is start with "/" character.
|
78
78
|
if !asset_path.empty?
|
79
79
|
# '/' ascii code is 47
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jemoji-plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shines77 and GitHub, Inc.
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.10.
|
33
|
+
version: 2.10.4
|
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: 2.10.
|
40
|
+
version: 2.10.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|