infoboxer 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +32 -0
  3. data/CHANGELOG.md +13 -0
  4. data/Gemfile.lock +97 -75
  5. data/README.md +1 -1
  6. data/lib/infoboxer.rb +7 -5
  7. data/lib/infoboxer/core_ext.rb +2 -0
  8. data/lib/infoboxer/definitions/en.wikipedia.org.rb +2 -0
  9. data/lib/infoboxer/media_wiki.rb +3 -1
  10. data/lib/infoboxer/media_wiki/page.rb +2 -0
  11. data/lib/infoboxer/media_wiki/traits.rb +4 -1
  12. data/lib/infoboxer/navigation.rb +2 -0
  13. data/lib/infoboxer/navigation/lookup.rb +5 -5
  14. data/lib/infoboxer/navigation/sections.rb +5 -1
  15. data/lib/infoboxer/navigation/selector.rb +3 -1
  16. data/lib/infoboxer/navigation/shortcuts.rb +2 -0
  17. data/lib/infoboxer/navigation/wikipath.rb +2 -0
  18. data/lib/infoboxer/parser.rb +3 -1
  19. data/lib/infoboxer/parser/context.rb +10 -6
  20. data/lib/infoboxer/parser/html.rb +2 -0
  21. data/lib/infoboxer/parser/image.rb +3 -1
  22. data/lib/infoboxer/parser/inline.rb +8 -4
  23. data/lib/infoboxer/parser/paragraphs.rb +3 -1
  24. data/lib/infoboxer/parser/table.rb +23 -15
  25. data/lib/infoboxer/parser/template.rb +3 -0
  26. data/lib/infoboxer/parser/util.rb +2 -0
  27. data/lib/infoboxer/templates.rb +2 -0
  28. data/lib/infoboxer/templates/base.rb +2 -0
  29. data/lib/infoboxer/templates/set.rb +2 -0
  30. data/lib/infoboxer/tree.rb +2 -0
  31. data/lib/infoboxer/tree/compound.rb +3 -1
  32. data/lib/infoboxer/tree/document.rb +2 -0
  33. data/lib/infoboxer/tree/gallery.rb +2 -0
  34. data/lib/infoboxer/tree/html.rb +4 -2
  35. data/lib/infoboxer/tree/image.rb +3 -1
  36. data/lib/infoboxer/tree/inline.rb +2 -0
  37. data/lib/infoboxer/tree/linkable.rb +2 -0
  38. data/lib/infoboxer/tree/list.rb +4 -2
  39. data/lib/infoboxer/tree/math.rb +2 -0
  40. data/lib/infoboxer/tree/node.rb +3 -1
  41. data/lib/infoboxer/tree/nodes.rb +16 -4
  42. data/lib/infoboxer/tree/paragraphs.rb +2 -0
  43. data/lib/infoboxer/tree/ref.rb +2 -0
  44. data/lib/infoboxer/tree/table.rb +5 -3
  45. data/lib/infoboxer/tree/template.rb +3 -1
  46. data/lib/infoboxer/tree/text.rb +11 -9
  47. data/lib/infoboxer/tree/wikilink.rb +3 -0
  48. data/lib/infoboxer/version.rb +4 -2
  49. data/lib/infoboxer/wiki_path.rb +2 -0
  50. data/regression/pages/2012_bdo_world_darts_championship.wiki +941 -0
  51. data/regression/pages/progress_wrestling.wiki +1308 -0
  52. metadata +6 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infoboxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2021-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -77,6 +77,7 @@ extra_rdoc_files: []
77
77
  files:
78
78
  - ".codeclimate.yml"
79
79
  - ".dokaz"
80
+ - ".github/workflows/ci.yml"
80
81
  - ".rubocop_todo.yml"
81
82
  - ".yardopts"
82
83
  - CHANGELOG.md
@@ -140,12 +141,14 @@ files:
140
141
  - profile/pages/canada.wiki
141
142
  - profile/pages/ukraine.wiki
142
143
  - profile/pages/usa.wiki
144
+ - regression/pages/2012_bdo_world_darts_championship.wiki
143
145
  - regression/pages/area.wiki
144
146
  - regression/pages/articuno.wiki
145
147
  - regression/pages/canada.wiki
146
148
  - regression/pages/chiang_mai.wiki
147
149
  - regression/pages/greece.wiki
148
150
  - regression/pages/list_of_countries.wiki
151
+ - regression/pages/progress_wrestling.wiki
149
152
  - regression/pages/south_america.wiki
150
153
  - regression/pages/south_america_new.wiki
151
154
  - regression/pages/ukraine.wiki
@@ -171,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
174
  - !ruby/object:Gem::Version
172
175
  version: '0'
173
176
  requirements: []
174
- rubygems_version: 3.0.3
177
+ rubygems_version: 3.1.6
175
178
  signing_key:
176
179
  specification_version: 4
177
180
  summary: MediaWiki client and parser, targeting information extraction.