paru 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af58fa6fd05693cd3f537542b9fb6a348d343813e3934f6d9e6af23e6f19edcf
4
- data.tar.gz: b2b06e8c4e7b1f9207052137673f4ffa811d7f64486fda9c6fb2017ae1b991dd
3
+ metadata.gz: dc1a2d8d47cd75c3bc4d34a4fbbbecf8eca9d475e8e3f2aa1260f02e39f8885f
4
+ data.tar.gz: df6b6ea223c9e48067ddd342a51715fb6fbab95d08e94c5f26f263b789dd63fe
5
5
  SHA512:
6
- metadata.gz: b7bb653ae6496e3ac42a1580596a9c5784938be998c9c918d57408a3506055ecfed61127202c6fe9333b414a827ceab82632af3a8b41ae738f928caa7e5d97d1
7
- data.tar.gz: e3e2cc7a87298e49d3c1c168e73d2b9d8d46cabae8891b4d786e65764dc37511c9794b6125a9a1940bef1c39eac14a50494f0af5e5145aff2ec48249f7b7cb35
6
+ metadata.gz: ceaa544a0e8963d59c70700f3208bac827a2c2274dd4be86673ccfc26977c59914c8b8d69521d8b2629ec745bda85c316a55ac47d5b0e69fa177d88e4fef2c47
7
+ data.tar.gz: 9113b9aaae1d0f4fe3e4188a76556984542b8281154faba088dd38a97630d3a66031d8d0b49b029069bd719178b355be6e240bcdd7bedfa3ad754083143668bf
@@ -30,7 +30,10 @@ module Paru
30
30
  def initialize(contents)
31
31
  super []
32
32
  contents.each do |item|
33
- @children.push DefinitionListItem.new item
33
+ child = DefinitionListItem.new item
34
+ child.parent = self
35
+
36
+ @children.push child
34
37
  end
35
38
  end
36
39
 
@@ -37,8 +37,15 @@ module Paru
37
37
  #
38
38
  # @param item [Array] the [term, definition]
39
39
  def initialize(item)
40
+ super []
41
+
40
42
  @term = Block.new item[0]
43
+ @term.parent = self
44
+ @children << @term
45
+
41
46
  @definition = List.new item[1]
47
+ @definition.parent = self
48
+ @children << @definition
42
49
  end
43
50
 
44
51
  # Create an AST representation of this DefinitionListItem
data/lib/paru.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  #++
19
19
  module Paru
20
20
  # Paru's current version
21
- VERSION = [1, 0, 1].freeze
21
+ VERSION = [1, 0, 2].freeze
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paru
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huub de Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-19 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Control pandoc with Ruby and write pandoc filters in Ruby
14
14
  email: Huub@heerdebeer.org