77 Commits

Author SHA1 Message Date
Shishir Kakaraddi
00e960f883 adds the use_hyphen feature back and adds a deprecation warning 2018-03-17 18:33:55 -07:00
Les Fletcher
3a66a6f80b tear down the aliases 2018-03-12 22:46:41 -07:00
Les Fletcher
c75d7ceadc do two separate rspec runs because of require issue 2018-03-12 22:46:41 -07:00
Les Fletcher
2da0b5bd87 rework of AS Notifications 2018-03-12 22:46:41 -07:00
corinnekunze
f029cf737a Adding specs for #as_json method on ObjectSerializer and making sure non-included attributes are removed 2018-03-12 22:36:50 -07:00
Shuhei Kitagawa
1e40b7d2f7 Remove redundant GC.disable and GC.enable 2018-03-12 22:35:06 -07:00
Vlado Cingel
765eaa70d6 Title fixed for one spec 2018-03-12 22:18:17 -07:00
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
Les Fletcher
08cee7b82d refactor performance specs 2018-02-16 17:30:51 -08:00
Guillermo Iguaran
eea4496e7b Add benchmarks for jsonapi-serializers library 2018-02-13 23:06:47 -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
jeremyjung
e7caa7afd5 Allow has_one nil association (#48)
* Allow has_one nil association

* add test for when has_one returns nil

* modify has_one extension method, add active record test

* Use try operator to support old rubies
2018-02-07 08:54:53 -08:00
Min.Kim
7b029991b8 Put all tests back 2018-02-05 22:30:24 -08:00
Min.Kim
22bea1505f Add jsonapi-rb test to benchmark suite 2018-02-05 22:30:24 -08:00
Min.Kim
4ccd40ac29 Add jsonapi data models for benchmark 2018-02-05 22:30:24 -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
Min.Kim
fbb9db5201 Disable GC before doing performance test 2018-02-04 17:12:18 -08:00
Shishir Kakaraddi
a9c902b96f add hash benchmarking to performance tests 2018-02-04 12:00:45 -08:00
Min.Kim
823d0df1d9 Disable GC before doing performance test 2018-02-02 08:11:32 -08:00
Shishir Kakaraddi
74bb873a94 add hash benchmarking to performance tests 2018-02-01 20:21:09 -08:00
Srinivas Raghunathan
fe192f5048 use travis env to exclude perf test while building 2018-02-01 14:08:57 -08:00
Srinivas Raghunathan
d743ace71c revert speed factor change, instead plan for intermittent speed variance 2018-02-01 12:34:03 -08:00
Srinivas Raghunathan
3412cd8d53 add travis shield 2018-02-01 12:04:25 -08:00
Srinivas Raghunathan
83e7026e73 relax the timing for tests to pass with variance 2018-02-01 11:52:11 -08:00
yuuji.yaginuma
6966ea9452 Use File.exist? instead of File.exists?
File.exists? is deprecated in Ruby 2.1+
Ref: https://github.com/ruby/ruby/blob/v2_1_2/file.c#L1413
2018-02-01 21:12:36 +09:00
Shishir Kakaraddi
5374a1378e initial commit 2018-01-31 16:20:40 -08:00