wikipedia_parser 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/wikiParserPage.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzQxNWNjNjE5N2IzZWY3NDU1MjFlM2NhZDg3YjM3ZmVlOTFhOTMxMA==
4
+ ZTQyNDgzOGQ4M2ZmYzljMjZhYWZmZjNlMmU2NmUyNGViNDk2MzYzYQ==
5
5
  data.tar.gz: !binary |-
6
- YTk1NmFlYzk2ZGViMTJhMzk1MzQyOTgyMmY3MjNlOTRmYWNjZTZkMw==
6
+ ZTFmMmE5MmJjNDA0Y2YyN2RlOGY1Y2E3OTJmMGRmNDRhY2YxZDZiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGY4MWExNGNhNWQyZDMwYjBjZDczOTFhNThjM2NhOGZiMjgzZTIwMzM1OGZi
10
- MTk3MmE1MTMwZWFlZmRhNDI0MTgwMDdiOTJlOTFjZmUwMmQ5MDZlMTMyYzgy
11
- YzM1M2E4OTE0MmZkOGYzNDUzZWUyMGFiZGY3YjM3MzUyOThiZGE=
9
+ MGQwZWM1ZGFiMjA4ZDVhNzUzMmJlMDVhNDRjY2EyYTBjOGExNTQ4Y2ZlNmYx
10
+ NTJjMTQ0ODU0YWQwNmQ4YWQ1YmZiMGYzYTM4YTAxMDZiNTVmNjk2ZGU3YWZj
11
+ OThhZjgwNDI4YjJiOTJhODY4OTRlMTAzMTA0OWRjYTBmNWFkYjg=
12
12
  data.tar.gz: !binary |-
13
- OTkwNTMxODY2MzhhNjI3NWJhM2QxZmRiMGY0YTFjYThhNjExNTU1MTM5MDc4
14
- YTMwZmFjZGI5ZjZhNjFjMTY3ZGZlZDAwZGY5ZGVkM2M1NjcwNWE4MTg0NjEz
15
- OThjMzQ4YTNiZTJiMzhkNjk2MGU5OTk2YWM1ODJkM2VjZTNmNDk=
13
+ NTFlM2M5MjJiNzRhMjdkYzUyMThiNzdmMzg3YzJjMWU2MTliNDM3MzlkMDk1
14
+ MzA1MjMwNjRmNzI3ZDk2MjcxMWI2ZDc0MGM1NzhlYmRjM2I5NTBkMTcyMzM0
15
+ NDk4ZTA1Njg1NzgwZDg5YTUxMTg3MzdiMjk3ZjAxYmVkZDcyYzE=
@@ -39,7 +39,7 @@ class WikiParser
39
39
 
40
40
  def process_node(opts={})
41
41
  opts[:node].element_children.each_with_index do |node,k|
42
- if opts[:from] and k < opts[:from] then next end
42
+ if !opts[:from].nil? and k <= opts[:from] then next end
43
43
  case node.name
44
44
  when 'id'
45
45
  @id = node.content
@@ -71,6 +71,8 @@ class WikiParser
71
71
  @stop_index||= 0
72
72
  process_node :node => @node, :from => @stop_index
73
73
  @node = nil
74
+ trigs = article_to_internal_links(@article)
75
+ @internal_links = trigs
74
76
  self
75
77
  end
76
78
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikipedia_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Raiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-18 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri