jekyll_href 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b645b13bded894df1a6c5d7f171cc0a9b9830b62ee8d7b86f9195d00ced75f2
4
- data.tar.gz: 5c87ad30bd506bbda270b5dd3d70d19b960cfcd66ec0c59abe8e86cef0f40dd2
3
+ metadata.gz: 838cadb39ae8e31f560af6c84010e03e2f79770c46dc2002751e39ffc9173a40
4
+ data.tar.gz: a6fc7f1c32e794e625f643c9ba6dd5943e0417699f1020d18eee9d9ce6062585
5
5
  SHA512:
6
- metadata.gz: 04d04877c7bafdf0c2185efb20800d6ec0faeced8c1ddaef22dac34336da4c48ab220bca831d4711535e462021ce851a7b1e5e4be3d272d719b93c66442603cc
7
- data.tar.gz: 85b4d3753ddf997139dab7fde06e39c8361f796a5cf4a7d0eb7ad16a369ea7865656a3749232f41e8356899c59f7406c165747915db594c9204161685090597c
6
+ metadata.gz: 10b5ed831641ff8e3b8cfa0994c9555dcef27eb27c4d3a72814cb867d3401623f7142c923ac2f0358cfe5dfd41cc843247bda4ea421daaf8ec8f1abdeab43a10
7
+ data.tar.gz: 91fd8a125ea762140ba0047d7aeabdb9325f9914809b08c9aa9490fe1a806ff7ec3b4eb2b2791a75816efc0b7d36ea3da8efaa67b8087d7abed0e8af7f2c662f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.7 / 2022-04-11
2
+ * Fixed bad reference when more than one URL matches
3
+
1
4
  ## 1.0.6 / 2022-04-05
2
5
  * Updated to `jekyll_plugin_logger` v2.1.0
3
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllHrefVersion
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.7"
5
5
  end
data/lib/jekyll_href.rb CHANGED
@@ -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: #{ matches.join(", ")}"
137
+ abort "Error: More than one url matched: #{ posts.map(&:relative_path).join(", ")}"
138
138
  end
139
139
  end
140
140
 
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.6
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-04-06 00:00:00.000000000 Z
11
+ date: 2022-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll