[Wtr-general] ci-reporter question

2007-02-27 Thread Bret Pettichord
I'm getting an error with ci_reporter on my CI box. It works on my 
development machine.

I've tracked the error down to the gem command, found here:

  def create_builder
begin
  gem 'builder'
  require 'builder'
rescue
  begin
gem 'activesupport'
require 'active_support'
  rescue
raise LoadError, XML Builder is required by CI::Reporter
  end
end unless defined?(Builder::XmlMarkup)
# :escape_attrs is obsolete in a newer version, but should do no 
harm
Builder::XmlMarkup.new(:indent = 2, :escape_attrs = true)
  end

I'm getting undefined method 'gem'. I can't figure out where this 
method is supposed to be defined. I have the latest rubygems (0.9.2). 
And builder and activesupport. Any hints?

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Ethan Jewett
gem replaced require_gem, sort of -
http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

However, you seem to have a recent enough version of rubygems that
this shouldn't be a problem.  Maybe there's a missing require
'rubygems' somewhere?

Ethan

On 2/27/07, Bret Pettichord [EMAIL PROTECTED] wrote:
 I'm getting an error with ci_reporter on my CI box. It works on my
 development machine.

 I've tracked the error down to the gem command, found here:

   def create_builder
 begin
   gem 'builder'
   require 'builder'
 rescue
   begin
 gem 'activesupport'
 require 'active_support'
   rescue
 raise LoadError, XML Builder is required by CI::Reporter
   end
 end unless defined?(Builder::XmlMarkup)
 # :escape_attrs is obsolete in a newer version, but should do no
 harm
 Builder::XmlMarkup.new(:indent = 2, :escape_attrs = true)
   end

 I'm getting undefined method 'gem'. I can't figure out where this
 method is supposed to be defined. I have the latest rubygems (0.9.2).
 And builder and activesupport. Any hints?

 Bret
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Bret Pettichord
Ethan Jewett wrote:
 gem replaced require_gem, sort of -
 http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

 However, you seem to have a recent enough version of rubygems that
 this shouldn't be a problem.  Maybe there's a missing require
 'rubygems' somewhere?
   
I'm using Ruby 1.8.2. I fixed the problem with

  gem update --system

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] ci-reporter question

2007-02-27 Thread Nick Sieger
On 2/27/07, Ethan Jewett [EMAIL PROTECTED] wrote:
 gem replaced require_gem, sort of -
 http://redhanded.hobix.com/bits/require_gemIsDeprecated.html

 However, you seem to have a recent enough version of rubygems that
 this shouldn't be a problem.  Maybe there's a missing require
 'rubygems' somewhere?


That's what I would suspect too.  Maybe I missed it somewhere in the
load sequence for test unit.

/Nick
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general