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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jemoji_plus.rb +15 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc54696b37ef12ec6fe024f0430dbd57e22a69f2b472c6bdd0a8ae686fbb3bb7
4
- data.tar.gz: ae522fe7826713220e47512c7c107df496b0190cf0dda29b29545116e4380dba
3
+ metadata.gz: 31cec7192cbe42400c68489b0e5466ad497b3f9d003549347ee16704cafd4a39
4
+ data.tar.gz: 8b553091c59991d9ee6f0d7050e26eaca0cbf4eb668fe7d61fcab58118fcafce
5
5
  SHA512:
6
- metadata.gz: 4a2d72669ed249b3e9bde52c764dba3bf68d869a2bdeaad8ba320a0c4bf19f7c05ab8ab88b9e6fa45ea820d321234a291f410a46c2f7a3ae026f7a6beeb2df24
7
- data.tar.gz: 80bea74f0fd436dc0d289642b8c499f54a255723652d9a3fe790beec940631ad16a9746f18d018af735e2fa91113a23a1019515f3c4bd03f7e21d67205a19ae1
6
+ metadata.gz: 2aecf5bc4fcd0bce21e16ff2b798640975bff33cabf3982124126dadb3aeebe17ef154ac85506f1a1e6774d2555b3c74fc2cebd459bfa8585762de3c6105d44b
7
+ data.tar.gz: 9afce46b379fedbf47fdf8917eab04d52f9773a3f9fb79777b60e95898b6d0ed6bb75284c58bfcf048d5286ec602dc82869de2b2422f9c72018fb98b9853782e
@@ -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 "/" character.
76
+ # Ensure [asset_path] is start with "/".
77
77
  asset_path = config["jemoji_plus"]["path"]
78
78
  if !asset_path.start_with?("/")
79
- asset_path_sav = asset_path
80
- asset_path = ""
81
- asset_path << '/'.freeze << asset_path_sav
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
- # Ensure that any trailing "/" is trimmed.
89
- asset_host_url = ENV["ASSET_HOST_URL"].chomp("/")
90
- # Ensure the trailing is end with "/".
91
- asset_path = ASSET_PATH
92
- if !asset_path.start_with?("/")
93
- asset_path = ""
94
- asset_path << '/'.freeze << ASSET_PATH
95
- end
96
- "#{asset_host_url}#{asset_path}"
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
- "#{ASSET_HOST}#{ASSET_PATH}"
98
+ "#{asset_host_url}#{asset_path}"
99
99
  end
100
100
  end
101
101
 
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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - shines77 and GitHub, Inc.