html-pipeline-issue_references 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/lib/html/pipeline/issue_reference_filter.rb +4 -5
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d48966aeb724a7c52f0cb964100531385a4b900
|
4
|
+
data.tar.gz: 9374a8c1b281360cdb5652934ae3983d1d595c5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11be06474f5f34b094848039a21586331ec1061d31594aa45e278aadc4db50c33662dcb3527069867369bf35ca9159b20f4e79ef3e8afabc955e3d61d62df322
|
7
|
+
data.tar.gz: 3e63f9c2bdce0585e877a238d69f2c94c9388b860018f89d57922475bc1bd6e572086ddb4139bd4b5f1cb5b5a265c8afc46512dcc3820b8d7f80f12c8cb7ea30
|
data/LICENSE.txt
CHANGED
@@ -4,7 +4,7 @@ require "set"
|
|
4
4
|
module HTML
|
5
5
|
class Pipeline
|
6
6
|
class IssueReferenceFilter < Filter
|
7
|
-
VERSION = "
|
7
|
+
VERSION = "1.0.0".freeze
|
8
8
|
|
9
9
|
REPOSITORY_NAME = /[a-z0-9][a-z0-9\-]*\/[a-z0-9][a-z0-9\-_]*/ix
|
10
10
|
|
@@ -14,9 +14,9 @@ module HTML
|
|
14
14
|
# - codetree/feedback#123
|
15
15
|
# - GH-123
|
16
16
|
#
|
17
|
-
# See http://rubular.com/r/
|
17
|
+
# See http://rubular.com/r/zM9MJl8SOC
|
18
18
|
SHORT_PATTERN = /
|
19
|
-
(
|
19
|
+
(?<=^|\W) # beginning of string or non-word char
|
20
20
|
(
|
21
21
|
(?:(#{REPOSITORY_NAME})? # repository name (optional)
|
22
22
|
\#|(?:GH\-))(\d+) # issue number
|
@@ -77,8 +77,7 @@ module HTML
|
|
77
77
|
def issue_reference_filter(text, base_url = '/', default_repo = nil)
|
78
78
|
self.class.issue_references_in(text) do |match, referenced_repo, number|
|
79
79
|
repo = referenced_repo || default_repo
|
80
|
-
|
81
|
-
repo ? leading_whitespace + link_to_issue(repo, number, default_repo) : match
|
80
|
+
repo ? link_to_issue(repo, number, default_repo) : match
|
82
81
|
end
|
83
82
|
end
|
84
83
|
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-issue_references
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derrick Reimer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.8'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
description: An HTML::Pipeline filter for auto-linking GitHub issue references
|
@@ -59,8 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
63
|
-
- .travis.yml
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
64
|
- Gemfile
|
65
65
|
- LICENSE.txt
|
66
66
|
- README.md
|
@@ -79,17 +79,17 @@ require_paths:
|
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.4.5
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: An HTML::Pipeline filter for auto-linking GitHub issue references
|