jemoji-plus 0.1.7 → 0.1.8
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 +7 -3
- 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: d04da90092b754677d77a88aa190da9fdad76c021fb5970ea53df24509775b6b
|
4
|
+
data.tar.gz: 7e34151f851804bf0f001375ba114f85b8ed04139c264b8200ad9ced7d47661f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 396a7b00a3f3dfa58cc4d3161835d1bd84df5ac88f55fc4eae84e9c22a8824c523057da5e45f59cb90383e4bec72cdc72a9d82623c723d54abf018118824aa5b
|
7
|
+
data.tar.gz: cb5b67f0a303d6591bdc94974db280efc0df675fdd75a98c7c978529f5c40b15778340e7ef87e9312a69d5824879ecb8a3a235a4cacefe31c8b993f8c980b368
|
data/lib/jemoji_plus.rb
CHANGED
@@ -74,20 +74,24 @@ module Jekyll
|
|
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"]
|
77
|
-
#
|
77
|
+
# Ensure [asset_path] is start with "/" character.
|
78
78
|
if !asset_path.empty?
|
79
79
|
# '/' ascii code is 47
|
80
80
|
if asset_path[0] != 47
|
81
|
-
asset_path
|
81
|
+
asset_path << '/' << asset_path
|
82
82
|
end
|
83
|
+
else
|
84
|
+
asset_path = '/'
|
83
85
|
end
|
84
86
|
"#{asset_host_url}#{asset_path}"
|
85
87
|
end
|
86
88
|
|
87
89
|
def default_asset_root
|
88
90
|
if !ENV["ASSET_HOST_URL"].to_s.empty?
|
89
|
-
# Ensure that any trailing "/" is trimmed
|
91
|
+
# Ensure that any trailing "/" is trimmed.
|
90
92
|
asset_host_url = ENV["ASSET_HOST_URL"].chomp("/")
|
93
|
+
# Ensure the trailing is end with "/".
|
94
|
+
asset_host_url.concat("/")
|
91
95
|
"#{asset_host_url}#{ASSET_PATH}"
|
92
96
|
else
|
93
97
|
"#{ASSET_HOST}#{ASSET_PATH}"
|