0.03
No commit activity in last 3 years
No release in over 3 years
Crichton Representors is a library containing serializers and deserializers to and from hypermedia formats. This library does not have the functionality to get and post data over the Internet. Consider Farscape for that. This library also does not automatically decorates objects. Consider Crichton for that.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

Representors

Build Status

A library to simplify Hypermedia message representation. It has the knowledge of Hypermedia media-types from the Ancients!

This gem provides serializers and deserializers from/to known Hypermedia formats. It currently supports HAL and HALE. It also provides a Representor class to hold the information from hypermedia responses, this class provides method to access properties, transitions, etc.

Developing

Write your tests, write your code and make sure all tests pass:

bundle exec rspec

Also, you can check your test coverage by running mutant on the classes you have worked on. For instance if you modified Representors::Representor, please execute:

MUTANT=true mutant --include lib --require representors --score 95 --use rspec Representors::Representor*

Reaching 100% mutant coverage is not feasible sometimes as they may be some false positives but please investigate any missing coverage, as it may indicate an actual problem with the tests.

Copyright

Copyright © 2016 Medidata Solutions Worldwide. See LICENSE for details.