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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jemoji_plus.rb +10 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d04da90092b754677d77a88aa190da9fdad76c021fb5970ea53df24509775b6b
4
- data.tar.gz: 7e34151f851804bf0f001375ba114f85b8ed04139c264b8200ad9ced7d47661f
3
+ metadata.gz: abe5cf5b64767599b2c051b65e2bb1a523d595c9419ffc0f2a465038a0a8fff7
4
+ data.tar.gz: cd8f6735ff21c84bf97fe2c87cfaf47a57d6d697b1e2683f2cb0159ef6215077
5
5
  SHA512:
6
- metadata.gz: 396a7b00a3f3dfa58cc4d3161835d1bd84df5ac88f55fc4eae84e9c22a8824c523057da5e45f59cb90383e4bec72cdc72a9d82623c723d54abf018118824aa5b
7
- data.tar.gz: cb5b67f0a303d6591bdc94974db280efc0df675fdd75a98c7c978529f5c40b15778340e7ef87e9312a69d5824879ecb8a3a235a4cacefe31c8b993f8c980b368
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
- asset_host_url.concat("/")
95
- "#{asset_host_url}#{ASSET_PATH}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jemoji-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - shines77 and GitHub, Inc.