Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixes the checks to see whether LibXML is defined. It needs to check for... #70

Open
wants to merge 1 commit into from

1 participant

@MSeneadza

... LibXML not LibXml.

I noticed performance problems while using the gem and discovered that it was always using the MUCH slower REXML even though I had installed LibXML. This fixes the code that checks for whether LibXML is installed/defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 26, 2014
  1. @MSeneadza
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/braintree/xml/parser.rb
View
2  lib/braintree/xml/parser.rb
@@ -19,7 +19,7 @@ def self.hash_from_xml(xml, parser = _determine_parser)
end
def self._determine_parser
- if defined?(::LibXml::XML) && ::LibXml::XML.respond_to?(:default_keep_blanks=)
+ if defined?(::LibXML::XML) && ::LibXML::XML.respond_to?(:default_keep_blanks=)
::Braintree::Xml::Libxml
else
::Braintree::Xml::Rexml
Something went wrong with that request. Please try again.