jekyll_href 1.0.4 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/jekyll_href.gemspec +1 -1
- data/lib/jekyll_href/version.rb +2 -2
- data/lib/jekyll_href.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 838cadb39ae8e31f560af6c84010e03e2f79770c46dc2002751e39ffc9173a40
|
4
|
+
data.tar.gz: a6fc7f1c32e794e625f643c9ba6dd5943e0417699f1020d18eee9d9ce6062585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b5ed831641ff8e3b8cfa0994c9555dcef27eb27c4d3a72814cb867d3401623f7142c923ac2f0358cfe5dfd41cc843247bda4ea421daaf8ec8f1abdeab43a10
|
7
|
+
data.tar.gz: 91fd8a125ea762140ba0047d7aeabdb9325f9914809b08c9aa9490fe1a806ff7ec3b4eb2b2791a75816efc0b7d36ea3da8efaa67b8087d7abed0e8af7f2c662f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 1.0.7 / 2022-04-11
|
2
|
+
* Fixed bad reference when more than one URL matches
|
3
|
+
|
4
|
+
## 1.0.6 / 2022-04-05
|
5
|
+
* Updated to `jekyll_plugin_logger` v2.1.0
|
6
|
+
|
7
|
+
## 1.0.5 / 2022-03-28
|
8
|
+
* Fixed problem with URI rendering
|
9
|
+
|
1
10
|
## 1.0.4 / 2022-03-28
|
2
11
|
* Fixed problem with `match` option
|
3
12
|
|
data/jekyll_href.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.required_ruby_version = ">= 2.6.0"
|
32
32
|
spec.summary = "Generates an 'a href' tag, possibly with target='_blank' and rel='nofollow'."
|
33
33
|
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
|
34
|
-
spec.version =
|
34
|
+
spec.version = JekyllHrefVersion::VERSION
|
35
35
|
|
36
36
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
37
37
|
spec.add_dependency 'jekyll_plugin_logger'
|
data/lib/jekyll_href/version.rb
CHANGED
data/lib/jekyll_href.rb
CHANGED
@@ -62,7 +62,7 @@ class ExternalHref < Liquid::Tag
|
|
62
62
|
@tokens = command_line.strip.split
|
63
63
|
@follow = get_value("follow", " rel='nofollow'")
|
64
64
|
@target = get_value("notarget", " target='_blank'")
|
65
|
-
@logger = PluginMetaLogger.instance.new_logger(self)
|
65
|
+
@logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
|
66
66
|
|
67
67
|
match_index = @tokens.index("match")
|
68
68
|
if match_index
|
@@ -91,7 +91,7 @@ class ExternalHref < Liquid::Tag
|
|
91
91
|
|
92
92
|
@text = tokens.join(" ").strip
|
93
93
|
if @text.empty?
|
94
|
-
@text = "<code
|
94
|
+
@text = "<code>#{@link}</code>"
|
95
95
|
@link = "https://#{@link}"
|
96
96
|
end
|
97
97
|
|
@@ -134,7 +134,7 @@ class ExternalHref < Liquid::Tag
|
|
134
134
|
@link = posts.first.url
|
135
135
|
@link = "#{@link}\##{fragment}" if fragment
|
136
136
|
else
|
137
|
-
abort "Error: More than one url matched: #{
|
137
|
+
abort "Error: More than one url matched: #{ posts.map(&:relative_path).join(", ")}"
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
@@ -148,5 +148,5 @@ class ExternalHref < Liquid::Tag
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
|
-
PluginMetaLogger.instance.info { "Loaded jeykll_href v#{
|
151
|
+
PluginMetaLogger.instance.info { "Loaded jeykll_href v#{JekyllHrefVersion::VERSION} plugin." }
|
152
152
|
Liquid::Template.register_tag('href', ExternalHref)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_href
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|