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: 3ced2a15f347e557065a573c2df7d86c53da6e62
4
- data.tar.gz: 404475eb789461c93d536bfcb2a93d03038c91aa
3
+ metadata.gz: e74c610889ccb70159594f238a07ebc9f24ae431
4
+ data.tar.gz: 9dee370a18ba21d77b6b41795beea12a322b517c
5
5
  SHA512:
6
- metadata.gz: 4b181499530b9bd8c764e2c2340400646182da4efadeb405ef5fe22e02108483e08729924f18e39b0d2a94a8912376d79351d701882ae80715f805f15bfb36a5
7
- data.tar.gz: 658bdff4aaa96cde17f36199ef7834e5768e813e42211bdccc20b2c78213a131b3cc203a34a0714eee12954bdc879ff8bd7dc70fa1ec2237c4424eaba5d5ff62
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', '~> 2.0'
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 if !content.include?('#')
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)
@@ -1,7 +1,7 @@
1
1
  module Html
2
2
  module Pipeline
3
3
  module Hashtag
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
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.0
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-09-07 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement