forked from jnunemaker/httparty
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Now using crack for xml and json parsing instead of bundling that in …
…HTTParty. Hopefully panic will not ensue.
- Loading branch information
1 parent
8115056
commit 690eeb8
Showing
10 changed files
with
32 additions
and
953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class BlankSlate #:nodoc: | ||
instance_methods.each { |m| undef_method m unless m =~ /^__/ } | ||
end | ||
|
||
# 1.8.6 has mistyping of transitive in if statement | ||
require "rexml/document" | ||
module REXML #:nodoc: | ||
class Document < Element #:nodoc: | ||
def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) | ||
if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output) | ||
output = Output.new( output, xml_decl.encoding ) | ||
end | ||
formatter = if indent > -1 | ||
if transitive | ||
REXML::Formatters::Transitive.new( indent, ie_hack ) | ||
else | ||
REXML::Formatters::Pretty.new( indent, ie_hack ) | ||
end | ||
else | ||
REXML::Formatters::Default.new( ie_hack ) | ||
end | ||
formatter.write( self, output ) | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.