jemoji-plus 0.1.10 → 0.1.11
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 +15 -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: 31cec7192cbe42400c68489b0e5466ad497b3f9d003549347ee16704cafd4a39
|
4
|
+
data.tar.gz: 8b553091c59991d9ee6f0d7050e26eaca0cbf4eb668fe7d61fcab58118fcafce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aecf5bc4fcd0bce21e16ff2b798640975bff33cabf3982124126dadb3aeebe17ef154ac85506f1a1e6774d2555b3c74fc2cebd459bfa8585762de3c6105d44b
|
7
|
+
data.tar.gz: 9afce46b379fedbf47fdf8917eab04d52f9773a3f9fb79777b60e95898b6d0ed6bb75284c58bfcf048d5286ec602dc82869de2b2422f9c72018fb98b9853782e
|
data/lib/jemoji_plus.rb
CHANGED
@@ -73,29 +73,29 @@ 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
|
-
# Ensure [asset_path] is start with "/"
|
76
|
+
# Ensure [asset_path] is start with "/".
|
77
77
|
asset_path = config["jemoji_plus"]["path"]
|
78
78
|
if !asset_path.start_with?("/")
|
79
|
-
|
80
|
-
|
81
|
-
asset_path
|
79
|
+
"#{asset_host_url}/#{asset_path}"
|
80
|
+
else
|
81
|
+
"#{asset_host_url}#{asset_path}"
|
82
82
|
end
|
83
|
-
"#{asset_host_url}#{asset_path}"
|
84
83
|
end
|
85
84
|
|
86
85
|
def default_asset_root
|
87
86
|
if !ENV["ASSET_HOST_URL"].to_s.empty?
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
87
|
+
asset_host_url = ENV["ASSET_HOST_URL"]
|
88
|
+
else
|
89
|
+
asset_host_url = ASSET_HOST
|
90
|
+
end
|
91
|
+
# Ensure that any trailing "/" is trimmed.
|
92
|
+
asset_host_url = asset_host_url.chomp("/")
|
93
|
+
# Ensure [asset_path] is start with "/".
|
94
|
+
asset_path = ASSET_PATH
|
95
|
+
if !asset_path.start_with?("/")
|
96
|
+
"#{asset_host_url}/#{asset_path}"
|
97
97
|
else
|
98
|
-
"#{
|
98
|
+
"#{asset_host_url}#{asset_path}"
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|