jemoji-plus 0.1.8 → 0.1.9
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 +10 -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: abe5cf5b64767599b2c051b65e2bb1a523d595c9419ffc0f2a465038a0a8fff7
|
4
|
+
data.tar.gz: cd8f6735ff21c84bf97fe2c87cfaf47a57d6d697b1e2683f2cb0159ef6215077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540a99251477b0a5efdf35fa1e83a4052e3cb98e5fa464552bd2f3c789b0b026d1cdc5d1e07ae404142c7b39b8656aa08588f8987a52600b90c0dee9eead36ae
|
7
|
+
data.tar.gz: ffff3b86bfde8044a8e9de6261bfa356496b091ed62fd3b02876f7dda461857cebcae67fc2dd17d2c7b5b6c5331a0fb639853163763b7ff662dee3ba01d9a20f
|
data/lib/jemoji_plus.rb
CHANGED
@@ -91,8 +91,16 @@ module Jekyll
|
|
91
91
|
# Ensure that any trailing "/" is trimmed.
|
92
92
|
asset_host_url = ENV["ASSET_HOST_URL"].chomp("/")
|
93
93
|
# Ensure the trailing is end with "/".
|
94
|
-
|
95
|
-
|
94
|
+
asset_path = ASSET_PATH
|
95
|
+
if !asset_path.empty?
|
96
|
+
# '/' ascii code is 47
|
97
|
+
if asset_path[0] != 47
|
98
|
+
asset_path << '/' << asset_path
|
99
|
+
end
|
100
|
+
else
|
101
|
+
asset_path = '/'
|
102
|
+
end
|
103
|
+
"#{asset_host_url}#{asset_path}"
|
96
104
|
else
|
97
105
|
"#{ASSET_HOST}#{ASSET_PATH}"
|
98
106
|
end
|