hoe-markdown 1.5.0 → 1.6.0
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/CHANGELOG.md +12 -0
- data/lib/hoe/markdown/util.rb +3 -6
- data/lib/hoe/markdown/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 691ec01696519d0617fa4458ae3564e57d39db8a9da5894781e39e79492808b3
|
4
|
+
data.tar.gz: 245e4c2732dff69cc11afd044849be558ad9cf4b8568eb44321ba86945a7fbbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e5a52dd375e951d91f99e8beeb04c326a8ce06060a4478a96d94ea47be0c6cb577f859fea3054c1a8be4c21d6f446f991c589345f4655b45e7d3ef2cbea035
|
7
|
+
data.tar.gz: b6d2102391c2549903041d395a10570d5c593cf3f3c9f5bbec31957b8e55a0a84549a18ea8e36008eb089106db5850782b3c1061fe10819c8040b759fc6a5bc3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Hoe::Markdown CHANGELOG
|
2
2
|
|
3
|
+
## v1.6.0 / 2023-11-19
|
4
|
+
|
5
|
+
Fix:
|
6
|
+
|
7
|
+
- Do not linkify things like that look like issues when they are part of a word, like "LH#123".
|
8
|
+
|
9
|
+
|
10
|
+
## v1.5.1 / 2023-10-10
|
11
|
+
|
12
|
+
Remove experimental code that was accidentally included in v1.5.0.
|
13
|
+
|
14
|
+
|
3
15
|
## v1.5.0 / 2023-10-10
|
4
16
|
|
5
17
|
Feature:
|
data/lib/hoe/markdown/util.rb
CHANGED
@@ -2,6 +2,9 @@ class Hoe
|
|
2
2
|
module Markdown
|
3
3
|
module Util
|
4
4
|
GITHUB_ISSUE_MENTION_REGEX = %r{
|
5
|
+
# not immediately preceded by a word character
|
6
|
+
(?<!\w)
|
7
|
+
|
5
8
|
# issue number, like '#1234'
|
6
9
|
\#([[:digit:]]+)
|
7
10
|
|
@@ -27,8 +30,6 @@ class Hoe
|
|
27
30
|
(?![[[:alnum:]]-])
|
28
31
|
}x
|
29
32
|
|
30
|
-
GIT_SHA1_REGEX = %{\b[0-9a-f]{5,40}\b}
|
31
|
-
|
32
33
|
def self.linkify_github_issues(markdown, issues_uri)
|
33
34
|
if issues_uri.nil? || issues_uri.empty?
|
34
35
|
raise "#{__FILE__}:#{__method__}: URI for bugs cannot be empty\n"
|
@@ -64,10 +65,6 @@ class Hoe
|
|
64
65
|
def self.linkify_github_usernames(markdown)
|
65
66
|
markdown.gsub(GITHUB_USER_REGEX, "[@\\1](https://github.com/\\1)")
|
66
67
|
end
|
67
|
-
|
68
|
-
def self.linkify_git_commits(markdown)
|
69
|
-
markdown.gsub(GITHUB_SHA1_REGEX, "[`\\1`](https://)") # TODO YOU WERE HERE
|
70
|
-
end
|
71
68
|
end
|
72
69
|
end
|
73
70
|
end
|
data/lib/hoe/markdown/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.4.19
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Hoe plugin with helpers for markdown documentation files.
|