Commit ea1d4f78203c0b06d3a143617ba8356822149c9f

Authored by Andrey Karpikov
1 parent 77267e7e

change condition elelement name to itemName

@@ -43,7 +43,7 @@ module Kanjai @@ -43,7 +43,7 @@ module Kanjai
43 elements = html_to_hash(source_dom) 43 elements = html_to_hash(source_dom)
44 44
45 source_dom.traverse do |node| 45 source_dom.traverse do |node|
46 - if node.name.to_s == 'condition' && node.attributes && node.attributes['id'] && node.attributes['name'] 46 + if node.name.to_s == 'condition' && node.attributes && node.attributes['id'] && node.attributes['itemName']
47 47
48 repeatItemId = "" 48 repeatItemId = ""
49 test = node.parent 49 test = node.parent
@@ -57,7 +57,7 @@ module Kanjai @@ -57,7 +57,7 @@ module Kanjai
57 57
58 conditions << { 58 conditions << {
59 id: node.attributes['id'].value, 59 id: node.attributes['id'].value,
60 - name: node.attributes['name'].value, 60 + name: node.attributes['itemName'].value,
61 repeat_id: repeatItemId 61 repeat_id: repeatItemId
62 } 62 }
63 end 63 end
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.256" 2 + VERSION = "0.0.257"
3 end 3 end