jekyll_href 1.0.11 → 1.0.12

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: 15480940e220781ca558c0f95d22688a87ea55f6b55f8bac9af6f93a1bbe5b33
4
- data.tar.gz: 1314f1deb1e739899c5eb686bf9834d3f88bc46fe3df14bff72f44d737a3064c
3
+ metadata.gz: 33ad179cd8d6770d3828246bdc51cdbe398f7fd3f50b0101481e2dacd597191e
4
+ data.tar.gz: 543a944799bdb811fd84f3afb4ce0b8239e2008208feb0612360307bd1843c69
5
5
  SHA512:
6
- metadata.gz: d15df7a457f5da7181525240ee63ea5a21a404eb8c0fdaf20a6f687378ef4947ff7a32e769376e3825aa95cad2862d09746907635c2320d517f270e2cd1156de
7
- data.tar.gz: 14c3ba6b074a3da884ff50f82519ee054625c5340afae444fddc93ec90414b962a1300ebac4fa3c8904d3bdeedc04f5c0aa26fdc520bafc23463f415f9d67c60
6
+ metadata.gz: be0fd539b076cedb893cee10a528f4a3c71d2ec01e84c16a26455ec4c4aacded321bc11f96ac8ff5d6647b2cdf3692aba9bb843e419d67c54aab9a47edb63ff9
7
+ data.tar.gz: f2d3abce3b08922eefa404905d1f61f319150662f891dd03171e716479d16e068e4e2a02b9975b5f609716f942876ee9b7d542d14236dba141fb4fcaa6e3ce66
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.12 / 2022-08-09
2
+ * No longer abends if `plugin-vars` is not present in `_config.yml`
3
+
1
4
  ## 1.0.11 / 2022-04-27
2
5
  * Suppresses target and rel=nofollow attributes for mailto: links.
3
6
 
data/jekyll_href.gemspec CHANGED
@@ -37,9 +37,9 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency 'jekyll_all_collections'
38
38
  spec.add_dependency 'jekyll_plugin_logger'
39
39
 
40
- spec.add_development_dependency 'debase'
40
+ # spec.add_development_dependency 'debase'
41
41
  # spec.add_development_dependency 'rubocop-jekyll'
42
42
  # spec.add_development_dependency 'rubocop-rake'
43
43
  # spec.add_development_dependency 'rubocop-rspec'
44
- spec.add_development_dependency 'ruby-debug-ide'
44
+ # spec.add_development_dependency 'ruby-debug-ide'
45
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllHrefVersion
4
- VERSION = "1.0.11"
4
+ VERSION = "1.0.12"
5
5
  end
data/lib/jekyll_href.rb CHANGED
@@ -149,6 +149,8 @@ class ExternalHref < Liquid::Tag
149
149
 
150
150
  def replace_vars(liquid_context, link)
151
151
  variables = @site.config['plugin-vars']
152
+ return link unless variables
153
+
152
154
  variables.each do |name, value|
153
155
  link = link.gsub "{{#{name}}}", value
154
156
  end
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.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-27 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,37 +52,9 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: debase
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: ruby-debug-ide
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
55
  description: 'Generates an ''a href'' tag, possibly with target=''_blank'' and rel=''nofollow''.
84
56
 
85
- '
57
+ '
86
58
  email:
87
59
  - mslinn@mslinn.com
88
60
  executables: []
@@ -124,8 +96,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
96
  - !ruby/object:Gem::Version
125
97
  version: '0'
126
98
  requirements: []
127
- rubygems_version: 3.1.4
128
- signing_key:
99
+ rubygems_version: 3.3.3
100
+ signing_key:
129
101
  specification_version: 4
130
102
  summary: Generates an 'a href' tag, possibly with target='_blank' and rel='nofollow'.
131
103
  test_files: []
104
+ ...