Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Common and Client is mixed up

#41

Restfulie::Common and Restfulie::Client dependencies are mixed up. Currently, Representation is in the Common package but if your client code, therefore if your Representation requires accessing Client, it is too early to do that, obliying you to replicate code among Common and Client. i.e.:

module Restfulie::Common::Representation
class Link

def initialize(options = {})
  @options = options
end
def href
  @options["href"]
end
def rel
  @options["rel"]
end

end

::Hash.instance_eval {

include Restfulie::Client::HTTP::LinkShortcut

}

# Implements the interface for marshal Xml media type requests (application/xml) class XmlD

cattr_reader :media_type_name
@@media_type_name = 'application/xml'

cattr_reader :headers
@@headers = { 
  :post => { 'Content-Type' => media_type_name }
}

def unmarshal(string)
  Hash.from_xml(string)
end

def marshal(string, rel)
  string
end

end

end

Reported by Guilherme Silveira · April 15th, 2010 @ 04:00 PM

State: resolved
Milestone: v0.8
Assigned to: Guilherme Silveira Guilherme Silveira

Activity

  1. Guilherme Silveira
    Guilherme Silveira
    • Milestone changed from v0.7.1 to v0.8

    April 28th, 2010 @ 01:10 PM

  2. Guilherme Silveira
    Guilherme Silveira
    • State changed from new to resolved
    • Assigned user set to Guilherme Silveira

    seems like resolved

    May 25th, 2010 @ 06:55 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.