Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Roar::JSON::Collection and :Hash.
- Loading branch information
Showing
7 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
* alias Roar::Representer to Representer | ||
Roar::Hypermedia | ||
# 1.0 | ||
|
||
* merge client errors request | ||
* simpler link for JSON-API? | ||
|
||
|
||
* Hyperlink representers => decrators. test hash representer with decorator (rpr) | ||
|
||
|
||
* Add proxies, so nested models can be lazy-loaded. | ||
* move #prepare_links! call to #_links or something so it doesn't need to be called in #serialize. | ||
* abstract ::links_definition_options and move them out of the generic representers (JSON, XML). | ||
* make 1.8 tests work, again (hash ordering!) | ||
|
||
* release 1.0 | ||
* representable 1.8, only. | ||
* revise Hypermedia | ||
* work on HAL-Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require "representable/json/collection" | ||
|
||
Roar::JSON::Collection = Representable::JSON::Collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require "representable/json/hash" | ||
|
||
Roar::JSON::Hash = Representable::JSON::Hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'test_helper' | ||
|
||
require "roar/json/collection" | ||
require "roar/json/hash" | ||
|
||
class LonelyCollectionTest < MiniTest::Spec | ||
it { Roar::JSON::Collection.must_equal Representable::JSON::Collection } | ||
it { Roar::JSON::Hash.must_equal Representable::JSON::Hash } | ||
end |