devcenter-parser 1.4.1 → 1.4.2

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
  !binary "U0hBMQ==":
3
- metadata.gz: 51f55582e8c324f21c5d8f0995579fb2bf238344
4
- data.tar.gz: fdc5d451987e9e746001ec43717e7d5aca2120e1
3
+ metadata.gz: 45daa632ef49ab001185c85e8211264001fb5905
4
+ data.tar.gz: 7838fa926deb1ca2f6c9181fc33e93b4fb210d94
5
5
  SHA512:
6
- metadata.gz: 995dbe71fc3e5c43ca0a063020b2cf54c00502cf1a6a8c56c9f711b3df1ac88776bbfdd5e1d59fe268cbb23c276a2e56375f9ade142b949c61820045cd36a49c
7
- data.tar.gz: 6ada25e661ceba84df62f401948c457cccc2c66b56927dbcd281d57129c907ac523adae6f8aedd1d29500ccd08f9626df0c4eb501f4ceb019ad8bccc65b352f0
6
+ metadata.gz: b8bf5da01e7dd43a7479a68c0bd103a0851e5da59ca11ad4574e02015e0104d78a0cde3001a36486c693e0d4144af12c053c9fb56c38f277c97d432ea834775d
7
+ data.tar.gz: a1e0378ede29b79c4fd4e71a6bfd120f95f63a0b27a883ff27deeb6b341bedf0bb6a13eee9b84f172560d535adba5f12a5bea2c47e9a696c590ffa834f0b7e4e
@@ -30,8 +30,6 @@ class HeaderIdGenerator
30
30
  append_numbers_on_conflicts
31
31
  end
32
32
 
33
- # Parent != DOM nesting, but in the context of the content <h2></h2> ... <h3></h3>
34
-
35
33
  # Prepend parents recursively, one level at a time, until there are no conflicts or no changes in the result
36
34
  def prepend_parents_on_conflicts(parent_index = 0)
37
35
  original = @nodes_ids.dup
@@ -44,6 +42,8 @@ class HeaderIdGenerator
44
42
  prepend_parents_on_conflicts(parent_index + 1) if original != @nodes_ids
45
43
  end
46
44
 
45
+ # Parent != DOM nesting, but in the context of the content <h2></h2> ... <h3></h3>
46
+
47
47
  def parent_header_nodes(node)
48
48
  parent_tags(node.name).map do |parent_tag|
49
49
  @header_nodes[0..@header_nodes.index(node)-1].select{ |sibling| sibling.name == parent_tag }.last
@@ -1,3 +1,3 @@
1
1
  module DevcenterParser
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devcenter-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heroku