hoe-markdown 1.5.0 → 1.6.0

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: 9a0bdac1445c1aa33f1da6d0f7121b17dcc46d09bd2fbe3edb98cec7326608dc
4
- data.tar.gz: 84958c46a62b0b272e25e6f44f9fa83e3a1d1a7f2cbad019b722fc61eb0d2c5a
3
+ metadata.gz: 691ec01696519d0617fa4458ae3564e57d39db8a9da5894781e39e79492808b3
4
+ data.tar.gz: 245e4c2732dff69cc11afd044849be558ad9cf4b8568eb44321ba86945a7fbbd
5
5
  SHA512:
6
- metadata.gz: 71d6a94280d257d7ae07796306f91a81aa85c0db35ff1a039a6293582c84f7a9dbe603934b64be0485e4f8fea3f088fc6e4be3bbaa742858bd43100496ea6c85
7
- data.tar.gz: 3259e4bd5ee0297111aa62937a49fc0011a06218c8d2de9e191ce417b29f3c51b298b3bd221715376e7d6521dc6ac2194cb8bee134d46a7cc026dc8c658321f5
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:
@@ -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
@@ -1,5 +1,5 @@
1
1
  class Hoe
2
2
  module Markdown
3
- VERSION = "1.5.0"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
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.5.0
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-10-10 00:00:00.000000000 Z
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.5.0.dev
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.