11 Commits

Author SHA1 Message Date
Sam Morgan
dfd215d3a1 91 allow includes strings (#93)
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* add information on performance methodology

* add oss metadata

* Make an error that demonstrates [Issue

* Simple RSpec test that fails with a non-empty string but passes with a
non-empty symbol
* To run the test, rspec spec/lib/object_serializer_spec.rb

* Map includes to symbols if they are provided as strings

* Includes would fail with an ArgumentError unless they were explicitly
provided as symbols (see #97)
* This is solved by mapping the strings to symbols in the
ObjectSerializer initializer
* No real impact on performance here
2018-02-28 08:29:24 -08:00
Jay Hayes
95c136fa0f Add #to_hash conversion protocol to object serializer 2018-02-22 08:04:40 -08:00
Christopher Sansone
b30a53bc5f ability to customize rendering of attributes via a block (#54)
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* ability to customize rendering of attributes via a block

* fixed attribute render spec

* minimized specs to specifially test this feature

* Update README to include attribute definitions

* Fixed syntax error

* Fixed merge issues
2018-02-09 08:59:07 -08:00
Roberto Quintanilla
6d516c217c Support for polymorphic associations (#64)
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* Support for polymorphic associations

* Optional dictionary for polymorphic associations

* Added polymorphic record types memoization

* Updated performance tests for polymorphic examples to include jsonapi-rb
2018-02-08 22:18:46 -08:00
Benjamin Fleischer
b717ffeccf Let people choose their JSON serializer; JSON:API is not circular 2018-02-07 18:02:59 -08:00
Shishir Kakaraddi
a3a989244b initial commit to allow the same kind of key transforms as AMS 2018-02-05 21:06:57 -08:00
Shishir Kakaraddi
dbdc85a875 initial commit removing all the dependencies 2018-02-04 17:24:11 -08:00
Sergii Makagon
7f27543081 Refactoring 2018-02-04 17:12:18 -08:00
Benjamin Roth
088d655998 get rid of temp variables 2018-02-04 12:00:45 -08:00
Min.Kim
62e1419465 Move skylight to dev_dep and check whether loaded or not 2018-02-01 17:01:04 +00:00
Shishir Kakaraddi
5374a1378e initial commit 2018-01-31 16:20:40 -08:00