xembly 0.4.1 → 0.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
  SHA1:
3
- metadata.gz: 857813ae8a91cc4121a2e43830fa1d06bbf3b238
4
- data.tar.gz: 778bacb3ab0f926336e95dd130db8c86e51216c8
3
+ metadata.gz: 6f023a77c3eafd5c14209b1ecdfe52a0beb9d467
4
+ data.tar.gz: dd79f3a64463a63e27e70a0ff6e0ab59d8702609
5
5
  SHA512:
6
- metadata.gz: db1fb2161b21a585e7584ef8f0d2df96592137737879ece4f2693b1710b29e4dfbafc6aea74d38f5b7dff72018cae57d966f664d4b16c39e0210e68ac3f7fee8
7
- data.tar.gz: 9ef59bcf3b8d56b38e367785574ef6bcbff7b06ab8926370cc4a1ada49f428e9c6dcbfe08653c7e60f15397efc480833b55635bcf1712d7b5926712407feb299
6
+ metadata.gz: 0b07c1a59c84b1a68db7b983baf62a2e0df51fc557725b4e7aceec123b1de2658062bc79e76e5bc3271d0f257239c9e04820dfd2c7a74e510ad6310ca1ff21fa
7
+ data.tar.gz: 6579da7b021d569cb5e110675763fbd8980cb36f2980f49e86d42e47d404a4232723a79cfa4bb6fa97f127eb410e027bb122199ade26e360fcf2084b1174fcb4
@@ -29,8 +29,9 @@ module Xembly
29
29
  after = []
30
30
  cursor.each do |node|
31
31
  Xembly.log.info "node \"#{node.name}\" removed"
32
+ parent = node.parent
32
33
  node.remove
33
- after.push(node.parent)
34
+ after.push(parent)
34
35
  end
35
36
  after
36
37
  end
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2016 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Xembly
28
- VERSION = '0.4.1'
28
+ VERSION = '0.4.2'
29
29
  end
@@ -37,7 +37,8 @@ class TestXembler < XeTest
37
37
  'XPATH "/books"; ADD "book"; ADD "test"; UP;' \
38
38
  'ADD "title"; SET "hi;you";' \
39
39
  'XPATH "none"; XPATH "/none-again";' \
40
- 'XPATH "/books"; ATTR "amp", "test";'
40
+ 'XPATH "/books"; ATTR "amp", "test";' \
41
+ 'ADD "temp"; ADD "t1"; UP; XPATH "t1"; REMOVE; ADD "t2";'
41
42
  )
42
43
  )
43
44
  matches(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xembly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko