lib/plist4r/backend/libxml4r.rb in plist4r-0.2.1 vs lib/plist4r/backend/libxml4r.rb in plist4r-0.2.2

- old
+ new

@@ -1,12 +1,13 @@ require 'plist4r/backend_base' +# Requires Libxml4r. Implements loading / parsing for the :xml file format only. module Plist4r::Backend::Libxml4r class << self def tree_hash n - hash = ::ActiveSupport::OrderedHash.new + hash = ::Plist4r::OrderedHash.new n_xml_keys = n.nodes["key"] n_xml_keys.each do |n| k = n.inner_xml vnode = n.next case vnode.name @@ -60,10 +61,10 @@ if root ordered_hash = tree_hash root else root = doc.node["/plist/array"] if root - ordered_hash = ::ActiveSupport::OrderedHash.new + ordered_hash = ::Plist4r::OrderedHash.new ordered_hash["Array"] = tree_array root end end ordered_hash end