jekyll-issue-mentions 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-issue-mentions.rb +7 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e14734a6533b954e9fbc6d9ddb7df30078c3580a
|
4
|
+
data.tar.gz: 9418d64f9f56e7013242a8abd2138d3bf22af00c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c44ccfda44b8efedc54e6d1bb092fd0cf042875ab5417a06c1fafc2216072f4eec2e7f38b2e1331889a576d614e0ea9420a9887f13219275e7fb0ee2b328a79
|
7
|
+
data.tar.gz: 6d667454b470cd4790cf32b6000c7bef074713b27b505341d52efb6b93f9908d9715ed8575bca6afb7a319a655607abaacf2a04c11be850ff8b9ab8ad1794edb
|
@@ -9,7 +9,6 @@ module Jekyll
|
|
9
9
|
|
10
10
|
def initialize(config = Hash.new)
|
11
11
|
validate_config!(config)
|
12
|
-
@filter = HTML::Pipeline::IssueMentionFilter.new(nil, base_url: base_url, issueid_pattern: issueid_pattern)
|
13
12
|
end
|
14
13
|
|
15
14
|
def generate(site)
|
@@ -20,7 +19,13 @@ module Jekyll
|
|
20
19
|
|
21
20
|
def mentionify(page)
|
22
21
|
return unless page.content.include?('#')
|
23
|
-
|
22
|
+
filter = HTML::Pipeline::IssueMentionFilter.new(page.content, base_url: base_url, issueid_pattern: issueid_pattern)
|
23
|
+
page.content = filter.call.to_s.
|
24
|
+
gsub(">", ">").
|
25
|
+
gsub("<", "<").
|
26
|
+
gsub("%7B", "{").
|
27
|
+
gsub("%20", " ").
|
28
|
+
gsub("%7D", "}")
|
24
29
|
end
|
25
30
|
|
26
31
|
def html_page?(page)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-issue-mentions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harish Shetty
|
@@ -58,6 +58,20 @@ dependencies:
|
|
58
58
|
- - "<="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 1.6.5
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: github-markdown
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: rake
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|