algolia_html_extractor 2.4.0 → 2.5.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: 9dcc5416e75d46b8b0b18e78f920b7b588cdb853
4
- data.tar.gz: 19ea9540c519f30a9e04caa71d4216531dc97295
3
+ metadata.gz: aa9a514d606789d1051a59e59437d9c470e21898
4
+ data.tar.gz: 1fd878c504bc329d8efd8798f2bd0a45f77f414e
5
5
  SHA512:
6
- metadata.gz: 0fff97d2b4fdbc2c7588f3df01f21f8f98b4e2a719348f93ddde54e53b6474d78627d6227ac242928506439a62b8533ea9dbb8145f9c88e02d835e5d9dab43a7
7
- data.tar.gz: 956d98cb1a1f06139d53bc29a8c10ce40b9c4287fc0d3285238f3f74e8b1b8602110874ce61685f5a543e3556246a6dbbb6e00ecb205fa2687a08def76e9c4a1
6
+ metadata.gz: 85e8af8f3ff600767fc791a3b1316cc95aa8f69d0eea8277925fbee663d430dd4d9996efa8e6670bbca5753b174f45910d34e259d555f86e88bc625bdebfbded
7
+ data.tar.gz: 486563d73cd49932bb8761daa2d7fd1f931084a25eb374f4c6605ec53f48acdc96397649bcc61c990197a6848d7f07c9b52e31659987fc8b0e0c3e4c106f279b
data/README.md CHANGED
@@ -79,15 +79,11 @@ Here is one of the records extracted:
79
79
  :text => "The hero quits his job, hits the road, or whatever cuts him from his previous life.",
80
80
  :node => #<Nokogiri::XML::Element:0x11a5850 name="p">,
81
81
  :anchor => 'threshold',
82
- :hierarchy => {
83
- :lvl0 => "The Hero's Journey",
84
- :lvl1 => "Part One: Departure",
85
- :lvl2 => "Crossing the Threshold",
86
- :lvl3 => nil,
87
- :lvl4 => nil,
88
- :lvl5 => nil,
89
- :lvl6 => nil
90
- },
82
+ :hierarchy => [
83
+ "The Hero's Journey",
84
+ "Part One: Departure",
85
+ "Crossing the Threshold"
86
+ ],
91
87
  :custom_ranking => {
92
88
  :heading => 70,
93
89
  :position => 3
@@ -63,7 +63,7 @@ module AlgoliaHTMLExtractor
63
63
  item = {
64
64
  html: extract_html(node),
65
65
  content: content,
66
- hierarchy: current_hierarchy.clone,
66
+ hierarchy: current_hierarchy.values.compact,
67
67
  anchor: current_anchor,
68
68
  node: node,
69
69
  custom_ranking: {
@@ -1,6 +1,6 @@
1
1
  # Expose gem version
2
2
  # rubocop:disable Style/SingleLineMethods
3
3
  class AlgoliaHTMLExtractorVersion
4
- def self.to_s; '2.4.0' end
4
+ def self.to_s; '2.5.0' end
5
5
  end
6
6
  # rubocop:enable Style/SingleLineMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia_html_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Carry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print