Topic: RCRest NameSpace Error

Hey,

I'm trying to use this gem outside of rails in a regular ruby script. This is what the script looks like:

require 'rubygems'
require_gem 'rc-rest'

class Test < RCRest

    class Error < RCRest::Error; end

    def initialize(appid)
      @appid = appid
      @url = URI.parse 'http://example.com/api/'
    end

    def check_error(xml)
      raise Error, xml.elements['error'].text if xml.elements['error']
    end

    def make_url(method, params)
      params[:appid] = @appid
      super method, params
    end

    def parse_response(xml)
      return xml
    end

    def test(query)
      get :test, :q => query
    end

  end


However, I get the following error:
test.rb:4: uninitialized constant RCRest (NameError)

I know this is a newb question, but your help is appreciated.

Thx