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