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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6263fd984baa3f1bd97ac973dc28b917d319768
4
- data.tar.gz: cd6c1e8d6b2a1bf522ae38ba7d7c27d2673dc036
3
+ metadata.gz: 2d48966aeb724a7c52f0cb964100531385a4b900
4
+ data.tar.gz: 9374a8c1b281360cdb5652934ae3983d1d595c5e
5
5
  SHA512:
6
- metadata.gz: 43f96285939e7b36ded7828013a2ee60b1ee04e1775d6491f45ace5062908f8a7742b2e19288c4c0698791954f477d7713e9d4827701b4c2c4c17b1344da17fb
7
- data.tar.gz: db9d0d29803b15adc46a5ea64550a4ce0f11104b2890ed954a5bd36e50f7fdf11a8daf7be4f53a0d825f5f8673e76fdda858ea3d0ee67f3097df26ebc92b6805
6
+ metadata.gz: 11be06474f5f34b094848039a21586331ec1061d31594aa45e278aadc4db50c33662dcb3527069867369bf35ca9159b20f4e79ef3e8afabc955e3d61d62df322
7
+ data.tar.gz: 3e63f9c2bdce0585e877a238d69f2c94c9388b860018f89d57922475bc1bd6e572086ddb4139bd4b5f1cb5b5a265c8afc46512dcc3820b8d7f80f12c8cb7ea30
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Derrick Reimer
3
+ Copyright (c) 2015-2016 Derrick Reimer
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4,7 +4,7 @@ require "set"
4
4
  module HTML
5
5
  class Pipeline
6
6
  class IssueReferenceFilter < Filter
7
- VERSION = "0.1.0".freeze
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/evB7RlvUfI
17
+ # See http://rubular.com/r/zM9MJl8SOC
18
18
  SHORT_PATTERN = /
19
- (?:^|\W) # beginning of string or non-word char
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
- leading_whitespace = match.start_with?(' ') ? ' ' : ''
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: 0.1.0
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: 2015-12-25 00:00:00.000000000 Z
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.3.0
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