jekyll_href 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -3
- data/CHANGELOG.md +107 -43
- data/README.md +197 -99
- data/jekyll_href.gemspec +2 -2
- data/lib/enums.rb +21 -0
- data/lib/hash_array.rb +5 -1
- data/lib/href_match.rb +38 -0
- data/lib/href_page_title.rb +34 -0
- data/lib/href_private.rb +155 -0
- data/lib/href_summary.rb +39 -0
- data/lib/href_summary_tag.rb +17 -6
- data/lib/href_tag.rb +26 -196
- data/lib/jekyll_href/version.rb +1 -1
- data/lib/jekyll_href.rb +2 -3
- data/spec/{hash_array_spec.rb → hash_array_spec/hash_array_spec.rb} +1 -1
- data/spec/spec_helper.rb +0 -2
- data/spec/status_persistence.txt +13 -13
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a2b255f64c147c2b16d784a3ff1045643164f980bd997e7c2ee7a832e42016
|
4
|
+
data.tar.gz: 4d484a1e4ec6548b0c913847fe4b179406bd5b76865cb2a5cb7a6de36c8624c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab2372473793d3df613028f89533ebba7951b75ba54c8fd6da78fd70368d68cc969bcd11d1b1cd3ca5b88ef381001dcab15b85c65336481fe288372cf7dc370
|
7
|
+
data.tar.gz: 8cf2cf1a53f87197dea0dcabacf60766953f368d4d6c4a3e786bd29a0c128fb577c96b3a246f559ee26a2dd5e5952a7def825234af2375113f909c8a318fa956
|
data/.rubocop.yml
CHANGED
@@ -11,11 +11,10 @@ require:
|
|
11
11
|
AllCops:
|
12
12
|
Exclude:
|
13
13
|
- demo/_site/**/*
|
14
|
-
-
|
14
|
+
- binstub/**/*
|
15
15
|
- vendor/**/*
|
16
16
|
- Gemfile*
|
17
17
|
NewCops: enable
|
18
|
-
TargetRubyVersion: 2.6
|
19
18
|
|
20
19
|
Gemspec/DeprecatedAttributeAssignment:
|
21
20
|
Enabled: false
|
@@ -23,6 +22,9 @@ Gemspec/DeprecatedAttributeAssignment:
|
|
23
22
|
Gemspec/RequireMFA:
|
24
23
|
Enabled: false
|
25
24
|
|
25
|
+
Gemspec/RequiredRubyVersion:
|
26
|
+
Enabled: false
|
27
|
+
|
26
28
|
Layout/HashAlignment:
|
27
29
|
EnforcedColonStyle: table
|
28
30
|
EnforcedHashRocketStyle: table
|
@@ -55,7 +57,7 @@ Metrics/BlockLength:
|
|
55
57
|
Metrics/ClassLength:
|
56
58
|
Exclude:
|
57
59
|
- spec/**/*
|
58
|
-
Max:
|
60
|
+
Max: 150
|
59
61
|
|
60
62
|
Metrics/CyclomaticComplexity:
|
61
63
|
Max: 20
|
data/CHANGELOG.md
CHANGED
@@ -1,86 +1,150 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 1.2.8 / 2023-12-31
|
4
|
+
|
5
|
+
* Fixed missing ' rel="nofollow"' for links without labels.
|
6
|
+
|
7
|
+
|
8
|
+
## 1.2.7 / 2023-12-09
|
9
|
+
|
10
|
+
* Implements the `page_title` option.
|
11
|
+
* Renamed the `nomatch` key in `_config.yml` to `die_on_nomatch`.
|
12
|
+
* Defines `@die_on_href_error` if the `die_on_href_error` key is present in `_config.yml`.
|
13
|
+
* Defines `@pry_on_href_error` if the `pry_on_href_error` key is present in `_config.yml`.
|
14
|
+
* Now uses the `StandardError` handler introduced in `jekyll_plugin_support` v0.8.0.
|
15
|
+
|
16
|
+
|
1
17
|
## 1.2.6 / 2023-06-18
|
2
|
-
|
18
|
+
|
19
|
+
* No longer blows up on error.
|
20
|
+
|
3
21
|
|
4
22
|
## 1.2.5 / 2023-05-26
|
5
|
-
|
23
|
+
|
24
|
+
* Added `style` and `class` options.
|
25
|
+
|
6
26
|
|
7
27
|
## 1.2.4 / 2023-05-18
|
8
|
-
|
9
|
-
|
10
|
-
|
28
|
+
|
29
|
+
* When only a URI is provided, the plugin now generates the `http` scheme for IP4 & IP6 loopback addresses like
|
30
|
+
`localhost`, and `127.0.0.0`, as well as private IP4 addresses like 192.168.0.0 and 172.16.0.0;
|
31
|
+
otherwise it generates the `https` scheme.
|
32
|
+
|
11
33
|
|
12
34
|
## 1.2.3 / 2023-05-16
|
13
|
-
|
35
|
+
|
36
|
+
* Added `label` option.
|
37
|
+
|
14
38
|
|
15
39
|
## 1.2.2 / 2023-03-25
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
*
|
40
|
+
|
41
|
+
* Added **References** capability:
|
42
|
+
* Added `summary_exclude` keyword option to `href` tag.
|
43
|
+
* Added `href_summary` tag.
|
44
|
+
* If a URL appears in more than one `href` with different `follow` values a warning is logged.
|
45
|
+
|
20
46
|
|
21
47
|
## 1.2.1 / 2023-03-21
|
22
|
-
|
48
|
+
|
49
|
+
* Added `shy` and `wbr` options.
|
50
|
+
|
23
51
|
|
24
52
|
## 1.2.0 / 2023-02-16
|
25
|
-
|
53
|
+
|
54
|
+
* Updated to `jekyll_plugin_support` v1.5.0
|
55
|
+
|
26
56
|
|
27
57
|
## 1.1.1 / 2023-02-14
|
28
|
-
|
58
|
+
|
59
|
+
* Now dependent on `jekyll_plugin_support`
|
60
|
+
|
29
61
|
|
30
62
|
## 1.1.0 / 2023-02-03
|
31
|
-
|
32
|
-
|
63
|
+
|
64
|
+
* Updated to `jekyll_all_collections` plugin v0.2.0.
|
65
|
+
* Fixed insidious bug where a valid link was not used properly.
|
66
|
+
|
33
67
|
|
34
68
|
## 1.0.14 / 2023-01-09
|
35
|
-
|
69
|
+
|
70
|
+
* Added `blank` parameter.
|
71
|
+
|
36
72
|
|
37
73
|
## 1.0.13 / 2022-12-14
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
74
|
+
|
75
|
+
* Links with embedded spaces are now supported when the new 'url' named parameter is used. For example, instead of specifying:
|
76
|
+
|
77
|
+
```html
|
78
|
+
{% href http://link.com with space.html some text %}
|
79
|
+
```
|
80
|
+
|
81
|
+
Instead specify (single and double quotes are equally valid):
|
82
|
+
|
83
|
+
```html
|
84
|
+
{% href url="http://link.com with space.html" some text %}
|
85
|
+
```
|
86
|
+
|
87
|
+
* URLs can now contain environment variable references. For example, if $domain and $uri are environment variables:
|
88
|
+
|
89
|
+
```html
|
90
|
+
{% href url="http://$domain.html" some text %}
|
91
|
+
{% href url="$uri" some text %}
|
92
|
+
```
|
93
|
+
|
51
94
|
|
52
95
|
## 1.0.12 / 2022-08-09
|
53
|
-
|
96
|
+
|
97
|
+
* No longer abends if `plugin-vars` is not present in `_config.yml`
|
98
|
+
|
54
99
|
|
55
100
|
## 1.0.11 / 2022-04-27
|
56
|
-
|
101
|
+
|
102
|
+
* Suppresses target and rel=nofollow attributes for mailto: links.
|
103
|
+
|
57
104
|
|
58
105
|
## 1.0.10 / 2022-04-27
|
59
|
-
|
106
|
+
|
107
|
+
* Works from pre-computed `site['all_collections']` provided by a new dependency called `jekyll_all_collections`.
|
108
|
+
|
60
109
|
|
61
110
|
## 1.0.9 / 2022-04-25
|
62
|
-
|
111
|
+
|
112
|
+
* Match now looks at all collections, not just posts
|
113
|
+
|
63
114
|
|
64
115
|
## 1.0.8 / 2022-04-11
|
65
|
-
|
116
|
+
|
117
|
+
* Fixed match text
|
118
|
+
|
66
119
|
|
67
120
|
## 1.0.7 / 2022-04-11
|
68
|
-
|
121
|
+
|
122
|
+
* Fixed bad reference when more than one URL matches
|
123
|
+
|
69
124
|
|
70
125
|
## 1.0.6 / 2022-04-05
|
71
|
-
|
126
|
+
|
127
|
+
* Updated to `jekyll_plugin_logger` v2.1.0
|
128
|
+
|
72
129
|
|
73
130
|
## 1.0.5 / 2022-03-28
|
74
|
-
|
131
|
+
|
132
|
+
* Fixed problem with URI rendering
|
133
|
+
|
75
134
|
|
76
135
|
## 1.0.4 / 2022-03-28
|
77
|
-
|
136
|
+
|
137
|
+
* Fixed problem with `match` option
|
138
|
+
|
78
139
|
|
79
140
|
## 1.0.0 / 2022-03-11
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
141
|
+
|
142
|
+
* Made into a Ruby gem and published on RubyGems.org as [jekyll_href](https://rubygems.org/gems/jekyll_href).
|
143
|
+
* `bin/attach` script added for debugging
|
144
|
+
* Rubocop standards added
|
145
|
+
* Proper versioning and CHANGELOG.md added
|
146
|
+
|
84
147
|
|
85
148
|
## 0.1.0 / 2020-12-29
|
86
|
-
|
149
|
+
|
150
|
+
* Initial version published
|