paru 0.2.4.1 → 0.2.4.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 +4 -4
- data/lib/paru/filter/ast_manipulation.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca9b8f9a5dfb9ed996c9ebd36fa23691aa1e448f
|
|
4
|
+
data.tar.gz: 0bf2eafd97f4531197070770e63669915594c2ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 137ac8ad91c1ed028fac5cda72d748ce237061e9a8e8a8e1f5387ab07a4b57fdaa96ef3a5624aae1185859788b477a656a536106363fd966f211f16c1289446c
|
|
7
|
+
data.tar.gz: 7c9ef903d1c6f55c5872c42b6bd70c94de2098b691a869141027ccb9f8db3b7901bc85aba40c9ad0f09cc1facdd5944586538a6107e3f453cff695a8ee6b7d34
|
|
@@ -42,8 +42,9 @@ module Paru
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def replace old_child, new_child
|
|
45
|
-
@children.find_index old_child
|
|
46
|
-
|
|
45
|
+
old_child_index = @children.find_index old_child
|
|
46
|
+
if old_child_index then
|
|
47
|
+
replace_at old_child_index, new_child
|
|
47
48
|
end
|
|
48
49
|
end
|
|
49
50
|
|