paru 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paru/filter/list.rb +4 -1
- data/lib/paru/selector.rb +2 -0
- data/lib/paru.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af58fa6fd05693cd3f537542b9fb6a348d343813e3934f6d9e6af23e6f19edcf
|
4
|
+
data.tar.gz: b2b06e8c4e7b1f9207052137673f4ffa811d7f64486fda9c6fb2017ae1b991dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7bb653ae6496e3ac42a1580596a9c5784938be998c9c918d57408a3506055ecfed61127202c6fe9333b414a827ceab82632af3a8b41ae738f928caa7e5d97d1
|
7
|
+
data.tar.gz: e3e2cc7a87298e49d3c1c168e73d2b9d8d46cabae8891b4d786e65764dc37511c9794b6125a9a1940bef1c39eac14a50494f0af5e5145aff2ec48249f7b7cb35
|
data/lib/paru/filter/list.rb
CHANGED
data/lib/paru/selector.rb
CHANGED
@@ -187,8 +187,10 @@ module Paru
|
|
187
187
|
|
188
188
|
def is_descendant?(node)
|
189
189
|
distance = 0
|
190
|
+
parent = nil
|
190
191
|
begin
|
191
192
|
distance += 1 if @distance > 0
|
193
|
+
node = parent unless parent.nil?
|
192
194
|
parent = node.parent
|
193
195
|
ancestry = parent.type == @type and @classes.all? {|c| parent.has_class? c}
|
194
196
|
end while not ancestry and not parent.is_root? and distance <= @distance
|
data/lib/paru.rb
CHANGED
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.
|
4
|
+
version: 1.0.1
|
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-
|
11
|
+
date: 2022-06-19 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
|