jemoji-plus 0.1.9 → 0.1.10
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 +8 -15
- 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: cc54696b37ef12ec6fe024f0430dbd57e22a69f2b472c6bdd0a8ae686fbb3bb7
|
4
|
+
data.tar.gz: ae522fe7826713220e47512c7c107df496b0190cf0dda29b29545116e4380dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a2d72669ed249b3e9bde52c764dba3bf68d869a2bdeaad8ba320a0c4bf19f7c05ab8ab88b9e6fa45ea820d321234a291f410a46c2f7a3ae026f7a6beeb2df24
|
7
|
+
data.tar.gz: 80bea74f0fd436dc0d289642b8c499f54a255723652d9a3fe790beec940631ad16a9746f18d018af735e2fa91113a23a1019515f3c4bd03f7e21d67205a19ae1
|
data/lib/jemoji_plus.rb
CHANGED
@@ -73,15 +73,12 @@ module Jekyll
|
|
73
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
|
-
asset_path = config["jemoji_plus"]["path"]
|
77
76
|
# Ensure [asset_path] is start with "/" character.
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
else
|
84
|
-
asset_path = '/'
|
77
|
+
asset_path = config["jemoji_plus"]["path"]
|
78
|
+
if !asset_path.start_with?("/")
|
79
|
+
asset_path_sav = asset_path
|
80
|
+
asset_path = ""
|
81
|
+
asset_path << '/'.freeze << asset_path_sav
|
85
82
|
end
|
86
83
|
"#{asset_host_url}#{asset_path}"
|
87
84
|
end
|
@@ -92,13 +89,9 @@ module Jekyll
|
|
92
89
|
asset_host_url = ENV["ASSET_HOST_URL"].chomp("/")
|
93
90
|
# Ensure the trailing is end with "/".
|
94
91
|
asset_path = ASSET_PATH
|
95
|
-
if !asset_path.
|
96
|
-
|
97
|
-
|
98
|
-
asset_path << '/' << asset_path
|
99
|
-
end
|
100
|
-
else
|
101
|
-
asset_path = '/'
|
92
|
+
if !asset_path.start_with?("/")
|
93
|
+
asset_path = ""
|
94
|
+
asset_path << '/'.freeze << ASSET_PATH
|
102
95
|
end
|
103
96
|
"#{asset_host_url}#{asset_path}"
|
104
97
|
else
|