jemoji-plus 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jemoji_plus.rb +8 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abe5cf5b64767599b2c051b65e2bb1a523d595c9419ffc0f2a465038a0a8fff7
4
- data.tar.gz: cd8f6735ff21c84bf97fe2c87cfaf47a57d6d697b1e2683f2cb0159ef6215077
3
+ metadata.gz: cc54696b37ef12ec6fe024f0430dbd57e22a69f2b472c6bdd0a8ae686fbb3bb7
4
+ data.tar.gz: ae522fe7826713220e47512c7c107df496b0190cf0dda29b29545116e4380dba
5
5
  SHA512:
6
- metadata.gz: 540a99251477b0a5efdf35fa1e83a4052e3cb98e5fa464552bd2f3c789b0b026d1cdc5d1e07ae404142c7b39b8656aa08588f8987a52600b90c0dee9eead36ae
7
- data.tar.gz: ffff3b86bfde8044a8e9de6261bfa356496b091ed62fd3b02876f7dda461857cebcae67fc2dd17d2c7b5b6c5331a0fb639853163763b7ff662dee3ba01d9a20f
6
+ metadata.gz: 4a2d72669ed249b3e9bde52c764dba3bf68d869a2bdeaad8ba320a0c4bf19f7c05ab8ab88b9e6fa45ea820d321234a291f410a46c2f7a3ae026f7a6beeb2df24
7
+ data.tar.gz: 80bea74f0fd436dc0d289642b8c499f54a255723652d9a3fe790beec940631ad16a9746f18d018af735e2fa91113a23a1019515f3c4bd03f7e21d67205a19ae1
data/lib/jemoji_plus.rb CHANGED
@@ -73,15 +73,12 @@ 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
- asset_path = config["jemoji_plus"]["path"]
77
76
  # Ensure [asset_path] is start with "/" character.
78
- if !asset_path.empty?
79
- # '/' ascii code is 47
80
- if asset_path[0] != 47
81
- asset_path << '/' << asset_path
82
- end
83
- else
84
- asset_path = '/'
77
+ asset_path = config["jemoji_plus"]["path"]
78
+ if !asset_path.start_with?("/")
79
+ asset_path_sav = asset_path
80
+ asset_path = ""
81
+ asset_path << '/'.freeze << asset_path_sav
85
82
  end
86
83
  "#{asset_host_url}#{asset_path}"
87
84
  end
@@ -92,13 +89,9 @@ module Jekyll
92
89
  asset_host_url = ENV["ASSET_HOST_URL"].chomp("/")
93
90
  # Ensure the trailing is end with "/".
94
91
  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 = '/'
92
+ if !asset_path.start_with?("/")
93
+ asset_path = ""
94
+ asset_path << '/'.freeze << ASSET_PATH
102
95
  end
103
96
  "#{asset_host_url}#{asset_path}"
104
97
  else
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - shines77 and GitHub, Inc.