jnunemaker/httparty — Issue #111: JRuby error in 1.9 mode
Author: markthomas
Created: 2011-11-17 22:06:16+00:00
State: open

The following code snippet works in jruby 1.8 mode but fails in 1.9 mode:

```
require 'rubygems'
require 'httparty'

class Representative
include HTTParty
base_uri 'whoismyrepresentative.com'

def self.find_by_zip(zip)
get("/whoismyrep.php", :query=>{:zip => zip})
end
end

puts Representative.find_by_zip(22556).inspect
```

In 1.9 mode (via 'jruby --1.9') the error is:
```NotImplementedError: HTTParty::Parser has not implemented a parsing method for the :xml format.
parse_supported_format at c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/httparty-0.8.1/lib/httparty/parser.rb:138```