html-pipeline-hashtag 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e74c610889ccb70159594f238a07ebc9f24ae431
|
4
|
+
data.tar.gz: 9dee370a18ba21d77b6b41795beea12a322b517c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de84d66b222b25f36b47c53308541b50c7f603c1b8b8d18b7887301efcf2bef3014aed13da7d3872808067b0f0f22d0467dc8eaaad6cd622449ce90b151c09e6
|
7
|
+
data.tar.gz: 42ea91cd77c7e438ee3425d75a49d7a40edc8efda933d12aead3957fa3649644a9a3c3af282640eb3a3d0e7eecf7a0b7cedf470cc7994276a0a07de12719f747
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'html-pipeline', '
|
21
|
+
spec.add_dependency 'html-pipeline', '>= 2.2.1'
|
22
22
|
|
23
23
|
spec.add_development_dependency "rspec", '~> 3.2.0'
|
24
24
|
spec.add_development_dependency "github-markdown", "~> 0.5"
|
@@ -28,10 +28,10 @@ module HTML
|
|
28
28
|
def call
|
29
29
|
result[:hashtags] ||= []
|
30
30
|
|
31
|
-
doc.search('text()').each do |node|
|
31
|
+
doc.search('.//text()').each do |node|
|
32
32
|
content = node.to_html
|
33
33
|
|
34
|
-
next
|
34
|
+
next unless content.include?('#')
|
35
35
|
next if has_ancestor?(node, IGNORE_PARENTS)
|
36
36
|
|
37
37
|
html = hashtag_link_filter(content, hashtag_pattern)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-hashtag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- German Antsiferov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-29 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
|
-
version:
|
19
|
+
version: 2.2.1
|
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
|
-
version:
|
26
|
+
version: 2.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|