Fetching contributors…
Cannot retrieve contributors at this time
72 lines (44 sloc) 2.77 KB


  • Fixed an installation issue under Windows.


  • The request body in POST, PUT and PATCH is now actually sent in HttpVerbs. Thanks to @nleguen for finding this embarrassing bug. That's what happens when you don't have proper tests, kids!


  • Since some users don't have access to my local hard-drive we now really require representable-1.2.2.


  • Using representable-1.2.2 now. Be warned that in 1.2 parsing and rendering slightly changed. When a property is not found in the incoming document, it is ignored and thus might not be initialised in your represented model (empty collections are still set to an empty array). Also, the way false and nil values are rendered changed. Quoted from the representable CHANGES file:

  • A property with false value will now be included in the rendered representation. Same applies to parsing, false values will now be included. That particularly means properties that used to be unset (i.e. nil) after parsing might be false now.

  • You can include nil values now in your representations since #property respects :represent_nil => true.

  • The :except option got deprecated in favor of :exclude.

  • Hyperlinks can now have arbitrary attributes. To render, just provide #link with the options link :self, :title => "Mee!", "data-remote" => true When parsing, the options are avaible via OpenStruct compliant readers. link = Hyperlink.from_json({"rel":"self","data-url":"http://self\"} ) link.rel #=> "self" link.send("data-url") #=> "http://self"


  • You can now pass values from outside to the render method (e.g. #to_json), they will be available as block parameters inside #link.


  • Adding the Coercion feature.


  • Requiring representable-0.1.3.
  • Added JSON-HAL support.
  • Links are no longer rendered when href is nil or false.
  • class method now accepts either the rel value, only, or a hash of link attributes (defined in Hypermedia::Hyperlink.params), like link :rel => :self, :title => "You're good" do..
  • API CHANGE: Representer#links no longer returns the href value but the link object. Use it like object.links[:self].href to retrieve the URL.
  • #from_json won't throw an exception anymore when passed an empty json document.


  • Using representable-1.1.


  • Removed @Representer#to_attributes@ and @#from_attributes@.
  • Using representable-1.0.1 now.


  • Using representable-0.12.x.
  • Representer::Base is now simply Representer.
  • Removed all the class methods from HttpVerbs except for get.


  • Maintenance release for representable compat.


  • Removing restfulie dependency - we now use Net::HTTP.


  • Added the :except and :include options to #from_*.