html-pipeline-hashtag 0.0.2 → 0.1.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: d21166a089e1eda7dc21a24dfa8412c07d0f4511
4
- data.tar.gz: a7c0f0250b172fff934501bd4c5640f38c1d5941
3
+ metadata.gz: 3ced2a15f347e557065a573c2df7d86c53da6e62
4
+ data.tar.gz: 404475eb789461c93d536bfcb2a93d03038c91aa
5
5
  SHA512:
6
- metadata.gz: 6b16d8d24a24b8c0979eabaee8bc190a0b9dac8109ee3aeda07c574b90d87e3b23d9a6ca7163311667971acabce59898a11643f005b0508fb683a3793b0d0aa6
7
- data.tar.gz: bdac44aff9d7a8d1b3f1d9ac0e9d4d39acd5503e408e4e7ba132f15bbf60153213476b1c56281d0b2282d1d819efe5bc6d4816b4d05d03ec9d6fa323adaf8528
6
+ metadata.gz: 4b181499530b9bd8c764e2c2340400646182da4efadeb405ef5fe22e02108483e08729924f18e39b0d2a94a8912376d79351d701882ae80715f805f15bfb36a5
7
+ data.tar.gz: 658bdff4aaa96cde17f36199ef7834e5768e813e42211bdccc20b2c78213a131b3cc203a34a0714eee12954bdc879ff8bd7dc70fa1ec2237c4424eaba5d5ff62
@@ -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', '~> 1.11.0'
21
+ spec.add_dependency 'html-pipeline', '~> 2.0'
22
22
 
23
23
  spec.add_development_dependency "rspec", '~> 3.2.0'
24
24
  spec.add_development_dependency "github-markdown", "~> 0.5"
@@ -28,7 +28,7 @@ module HTML
28
28
  def call
29
29
  result[:hashtags] ||= []
30
30
 
31
- search_text_nodes(doc).each do |node|
31
+ doc.search('text()').each do |node|
32
32
  content = node.to_html
33
33
 
34
34
  next if !content.include?('#')
@@ -1,7 +1,7 @@
1
1
  module Html
2
2
  module Pipeline
3
3
  module Hashtag
4
- VERSION = "0.0.2"
4
+ VERSION = "0.1.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-hashtag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
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-08-10 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.11.0
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
- version: 1.11.0
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement