airbrake/airbrake — Issue #41: Airbrake does not appear compatible with builder 3.0.0
Author: mleinart
Created: 2011-11-26 18:14:28+00:00
State: open

Airbrake has an unbounded dependency on builder which causes 3.0.0 to be pulled in if the project doesn't already have a restriction. Unfortunately, buidler 3.0.0 has a problem when Airbrake.notify() is called:

#
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `_escape'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:140:in `_escape_quote'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:320:in `_attr_value'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:308:in `_insert_attributes'
org/jruby/RubyArray.java:1603:in `each'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:306:in `_insert_attributes'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:284:in `_special'
vendor/bundle/jruby/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:250:in `instruct!'
vendor/bundle/jruby/1.8/gems/airbrake-3.0.5/lib/airbrake/notice.rb:113:in `to_xml'
vendor/bundle/jruby/1.8/gems/airbrake-3.0.5/lib/airbrake.rb:134:in `send_notice'
vendor/bundle/jruby/1.8/gems/airbrake-3.0.5/lib/airbrake.rb:103:in `notify'

This is seen with airbrake 3.0.5 in a vanilla jruby app (no rails, sinatra, etc) in jruby 1.8 mode (i.e. no --1.9 parameter passed).