algolia_html_extractor 2.0.1 → 2.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: fb67fbcfbfb26740f9d97027a7f2258a52730792
4
- data.tar.gz: 83bf786d6369805a8e737d1264ef8f4ad198dade
3
+ metadata.gz: 5a8828fb4ece535b803731889c5f8be758f06a7e
4
+ data.tar.gz: 7b8b80ce73ddefeaa901e5483b2b4822ad7f35a3
5
5
  SHA512:
6
- metadata.gz: 19d71cda82dae127c2a3603fdc975a443248eff8be2acb9724a86ef0c669a509937bcb5c63e859175cbb42e767409e5d30df8d7fbd3ecc6e3f5cc899c4457d57
7
- data.tar.gz: abb6f3a34e2818049ad04901997700834a6e2fcd6e5b7c974fd0fd2e558741c957f71d2a649cdc4e17c4f18d7202427c7df2ed461c8457b2a4f8dc0429c27f11
6
+ metadata.gz: 4e12dc7fc939f8d7551cc0f1637c394bd5794bc13521fc9c04dde418a238980956e74ebcede3e5317c39e0b652ea1e85c775dd8ac6be0dbd1f026005b915485b
7
+ data.tar.gz: a894a352c8efc2a4214c1c0ae4088d143ae1b831e86edb57ea6da3012cfe21a3fb22f230ec5337b0d240feb75a309bd155301140103500c1d6a5426c20b9bfcc
data/README.md CHANGED
@@ -67,7 +67,7 @@ Here is one of the records extracted:
67
67
 
68
68
  ```ruby
69
69
  {
70
- :uuid => "1f5923d5a60e998704f201bbe9964811",
70
+ :objectID => "1f5923d5a60e998704f201bbe9964811",
71
71
  :tag_name => "p",
72
72
  :html => "<p>The hero quits his job, hits the road, or whatever cuts him from his previous life.</p>",
73
73
  :text => "The hero quits his job, hits the road, or whatever cuts him from his previous life.",
@@ -89,7 +89,7 @@ Here is one of the records extracted:
89
89
  }
90
90
  ```
91
91
 
92
- Each record has a `uuid` that uniquely identify it (computed by a hash of all
92
+ Each record has a `objectID` that uniquely identify it (computed by a hash of all
93
93
  the other values).
94
94
 
95
95
  It also contains the HTML tag name in `tag_name` (by default `<p>`
@@ -133,7 +133,7 @@ class AlgoliaHTMLExtractor
133
133
  heading: heading_weight(current_lvl)
134
134
  }
135
135
  }
136
- item[:uuid] = uuid(item)
136
+ item[:objectID] = uuid(item)
137
137
  items << item
138
138
 
139
139
  current_position += 1
@@ -1,5 +1,5 @@
1
1
  # Expose gem version
2
2
  # rubocop:disable Style/SingleLineMethods
3
3
  class AlgoliaHTMLExtractorVersion
4
- def self.to_s; '2.0.1' end
4
+ def self.to_s; '2.1.0' end
5
5
  end
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.0.1
4
+ version: 2.1.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: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.5.1
227
+ rubygems_version: 2.6.13
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Convert HTML content into Algolia records