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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jemoji_plus.rb +7 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fe0934b1f6c45efa396e5980db921ab5dc3f322d3e1059660e9a4b2b91c9e87
4
- data.tar.gz: 16e7017a6442789b69f588b8fa12b8b7deeed466c0a5cbc4bb842033218f6f48
3
+ metadata.gz: d04da90092b754677d77a88aa190da9fdad76c021fb5970ea53df24509775b6b
4
+ data.tar.gz: 7e34151f851804bf0f001375ba114f85b8ed04139c264b8200ad9ced7d47661f
5
5
  SHA512:
6
- metadata.gz: 1bb752cc3497d1992c7e7c542cebee283b85ce1b06636bc2dbf27260093229ed20d23f0304cbe1e579864ab585ed17e1cdae9c10b7bef7a9f7f06c08a668a640
7
- data.tar.gz: 335289b74ec7da50c2ad75343207b8f6a4c48da1b19a70dfe7938b0219a848719c67985a630215dd4caba220749b2b27bacaab030a80213ec05bdf0d16131e10
6
+ metadata.gz: 396a7b00a3f3dfa58cc4d3161835d1bd84df5ac88f55fc4eae84e9c22a8824c523057da5e45f59cb90383e4bec72cdc72a9d82623c723d54abf018118824aa5b
7
+ data.tar.gz: cb5b67f0a303d6591bdc94974db280efc0df675fdd75a98c7c978529f5c40b15778340e7ef87e9312a69d5824879ecb8a3a235a4cacefe31c8b993f8c980b368
@@ -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
- # If asset_path is not empty, ensure it is start with "/" character.
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 = '/' + 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}"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - shines77 and GitHub, Inc.