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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-issue-mentions.rb +7 -2
  3. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d8b6ba62e16bfa974bcdd7290f4b99ac5d15f6b
4
- data.tar.gz: ca91f424c11db0af60cea3cd76b6da2319192058
3
+ metadata.gz: e14734a6533b954e9fbc6d9ddb7df30078c3580a
4
+ data.tar.gz: 9418d64f9f56e7013242a8abd2138d3bf22af00c
5
5
  SHA512:
6
- metadata.gz: a5ef23b2df3ed1cb0d10475db80a8f91fc54997be1de57caa3b0f8a626335a7449468693915ddfb4fe1e0b4c7eebe0fda67cb951b9f4d7f018e8e4eeccd0a5da
7
- data.tar.gz: 29e170daed48ab5ce42404ea8ffdb718ca9e7381f90f6bbb8c6a5d375736e140a4121421ecdb8f6ae0d0c6147319d7311a36098e3d445402190b6793a3265e75
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
- page.content = @filter.mention_link_filter(page.content, @filter.base_url, @filter.issueid_pattern)
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("&lt;", "<").
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.5
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