jemoji-plus 0.1.6 → 0.1.7
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_plus.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fe0934b1f6c45efa396e5980db921ab5dc3f322d3e1059660e9a4b2b91c9e87
|
4
|
+
data.tar.gz: 16e7017a6442789b69f588b8fa12b8b7deeed466c0a5cbc4bb842033218f6f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb752cc3497d1992c7e7c542cebee283b85ce1b06636bc2dbf27260093229ed20d23f0304cbe1e579864ab585ed17e1cdae9c10b7bef7a9f7f06c08a668a640
|
7
|
+
data.tar.gz: 335289b74ec7da50c2ad75343207b8f6a4c48da1b19a70dfe7938b0219a848719c67985a630215dd4caba220749b2b27bacaab030a80213ec05bdf0d16131e10
|
data/lib/jemoji_plus.rb
CHANGED
@@ -52,7 +52,7 @@ module Jekyll
|
|
52
52
|
# otherwise the root URL for emoji assets at assets-cdn.github.com.
|
53
53
|
def emoji_src(config = {})
|
54
54
|
if config.key?("jemoji_plus") && config["jemoji_plus"].key?("host") && config["jemoji_plus"].key?("path")
|
55
|
-
config_asset_root
|
55
|
+
config_asset_root(config)
|
56
56
|
else
|
57
57
|
default_asset_root
|
58
58
|
end
|
@@ -70,7 +70,7 @@ module Jekyll
|
|
70
70
|
|
71
71
|
private
|
72
72
|
|
73
|
-
def config_asset_root
|
73
|
+
def config_asset_root(config)
|
74
74
|
# Ensure that any trailing "/" is trimmed.
|
75
75
|
asset_host_url = config["jemoji_plus"]["host"].chomp("/")
|
76
76
|
asset_path = config["jemoji_plus"]["path"]
|