Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Remove dependency on rubygems when requiring builder (rescue LoadError).
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Oct 28, 2008
1 parent 58f9973 commit ad6d666
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ci/reporter/test_suite.rb
Expand Up @@ -65,8 +65,12 @@ def finish

# Creates the xml builder instance used to create the report xml document.
def create_builder
require 'rubygems'
gem 'builder'
begin
require 'rubygems'
gem 'builder'
rescue LoadError
end

require 'builder'
# :escape_attrs is obsolete in a newer version, but should do no harm
Builder::XmlMarkup.new(:indent => 2, :escape_attrs => true)
Expand Down

0 comments on commit ad6d666

Please sign in to comment.