Commit Graph

927 Commits

Author SHA1 Message Date
Gauthier Delacroix
6f4f30cda6 Allow JSONAPI unsuffixed associations keys
As shown here :
https://github.com/json-api/json-api/blob/gh-pages/format/index.md#resource-relationships-
2014-09-05 18:46:08 +02:00
Craig Little
e9008439d3 Fix meta_key/meta documentation
This updates the documentation to reflect the behavior implemented by
the v0.9.x series. Note that this behavior differs from that of the
v0.8.x series, which is reflected by the current documentation.

Consideration should be given to patching the v0.9.x series to revert
back to the v0.8.x behavior since I'm not entirely sure if this slight
change was intentional, but for the time being, this at least documents
the existing behavior correctly.
2014-09-03 14:02:57 -07:00
Gauthier Delacroix
5ae536cd7b typo 2014-09-03 15:24:49 +02:00
Gauthier Delacroix
d00fb27e04 Changelog: Default serializer option 2014-09-03 15:02:06 +02:00
Gauthier Delacroix
adc3fc9742 Default serializer tests
Based on namespace serializer tests except namespace is set in
default_serializer_options
2014-09-03 14:58:22 +02:00
Gauthier Delacroix
4d3d234dda Fix default serializer option 2014-09-03 14:57:00 +02:00
Gauthier Delacroix
8514528db7 Allow default namespace inheritance 2014-09-03 12:41:30 +02:00
Kristoffer
5075436673 Change :embed_key to :key 2014-09-03 08:46:44 +02:00
Steve Klabnik
605408005f Merge pull request #628 from sachse/readme-fix
Readme typo fixes
2014-09-02 16:34:15 -04:00
Kristoffer
d6735749b3 Fix another symbol related typo 2014-09-02 22:29:22 +02:00
Kristoffer
4abcd3209e String to symbol 2014-09-02 22:23:58 +02:00
Steve Klabnik
922dd273c9 Merge pull request #620 from tristandunn/td-notifications
Avoid overwriting notifications for template assertions.
2014-08-31 20:02:08 -04:00
Steve Klabnik
d40f0d67b9 Merge pull request #617 from konukhov/namespaced_serializers-0-9
Namespaced serializers #499
2014-08-31 20:00:47 -04:00
Steve Klabnik
f7f5e29358 Merge pull request #601 from radanskoric/fix-nested-embed-in-root
Fix for nested embed_in_root when serializer used as part of an association
2014-08-31 19:57:27 -04:00
Theodore Konukhov
0292940ab4 typo 2014-08-29 19:51:32 +02:00
Theodore Konukhov
095bae31d4 fix for ruby 1.9. 2014-08-29 19:38:53 +02:00
Tristan Dunn
610aeb2e92 Avoid overwriting notifications for template assertions. 2014-08-29 08:18:44 -05:00
Theodore Konukhov
493041fdff sync with upstream 2014-08-29 06:28:13 +02:00
Theodore Konukhov
e3bd56f73a changelog 2014-08-29 06:23:54 +02:00
Theodore Konukhov
b297f17e53 test for namespaced associations + bug fixed 2014-08-29 06:11:40 +02:00
Theodore Konukhov
dde1492934 tests for namespaced controlleler 2014-08-26 18:07:31 +02:00
Steve Klabnik
d5a993e193 Merge pull request #611 from gauthier-delacroix/Fix-0d31e72
Fix #0d31e72 regression
2014-08-26 11:41:03 -04:00
Steve Klabnik
a04ae2c2e2 Merge pull request #609 from polmiro/feature/support_polymorphic_associations_v2
Feature/support polymorphic associations v2
2014-08-26 11:38:16 -04:00
Gauthier Delacroix
5c4121432c Fix #0d31e72 regression
0d31e72d22
2014-08-26 17:17:42 +02:00
Pol Miro
26d5fb7423 Add support to polymorphic models 2014-08-25 23:32:09 -07:00
Pol Miro
e8b983490e Separate associations into multiple files 2014-08-25 23:32:09 -07:00
Pol Miro
bb18fc6225 Add tests for has_one polymorphic 2014-08-25 23:32:09 -07:00
Pol Miro
63589f7500 Add tests for has_many polymorphic 2014-08-25 23:32:09 -07:00
Pol Miro
09a166b76b Document polymorphic associations in README.md 2014-08-25 23:32:09 -07:00
Theodore Konukhov
26c0847563 - If a controller is in a namespace, serializer will be looked up in this namespace first.
- Serializers for associations will be looked up in a parent serializer's namespace first too.
- "Prefix" option for different versions of associations serializers. Example: has_many :users, as: :short -> ShortUserSerializer

TODO: tests, config option for enabling namespace lookup
2014-08-24 15:57:24 +02:00
Radan Skoric
ddfd8d2c11 embed_in_root works even if serializer is invoked through another serializers' association which itself does not have embed_in_root set 2014-08-23 18:21:24 +02:00
Steve Klabnik
2fec5111ef Bump version to 0.9.0 2014-08-22 16:17:46 -04:00
Steve Klabnik
55831dd2b0 update README 2014-08-22 16:17:46 -04:00
Steve Klabnik
ae7959b76e Merge pull request #512 from TimPetricola/fix-options-access
Custom options are accessible in serializer
2014-08-22 16:15:41 -04:00
Steve Klabnik
74625f778b Merge pull request #594 from bolshakov/feature/custom_array_serializer
Support custom array serializer
2014-08-22 15:28:26 -04:00
Steve Klabnik
e9378cc9ab Merge pull request #595 from bolshakov/feature/array_serializer_options
Array serializer pass except and only options to item serializers
2014-08-22 15:26:17 -04:00
Steve Klabnik
92f1db0137 Merge pull request #596 from bolshakov/feature/instumentation
Test::Unit assert_serializer implemented
2014-08-22 15:25:52 -04:00
Steve Klabnik
3c124e8ce5 Clarify README wrt POROs
Closes #556.
2014-08-22 14:52:39 -04:00
Steve Klabnik
5cb0875286 Merge pull request #598 from joshk/patch-1
Use the new Docker queue
2014-08-21 23:59:11 -04:00
Josh Kalderimis
035f261180 Use the new Docker queue
starts in seconds

faster better stronger
2014-08-22 01:18:36 +02:00
Tema Bolshakov
699b378984 remove nested case 2014-08-20 12:35:23 +04:00
Tema Bolshakov
c5d9d97f26 Assert with serializer class 2014-08-20 12:34:34 +04:00
Tema Bolshakov
865ab64025 rename spec file 2014-08-20 11:33:39 +04:00
Tema Bolshakov and Dmitry Myaskovskiy
aa66592a80 Update docs 2014-08-18 18:24:07 +04:00
Arthur Nogueira Neves
9fb343b5fb Merge pull request #591 from donbobka/feature/fix_format_keys_for_array_wo_root
Feature/fix format keys for array wo root
2014-08-18 10:21:37 -04:00
Tema Bolshakov and Dmitry Myaskovskiy
eaedcefa4e Test::Unit assert_serializer implemented
So you can assert specific serializer to be used.
2014-08-18 18:04:51 +04:00
Tema Bolshakov
e3ab34dd74 Array serializer pass except and only options to item serializers 2014-08-18 14:21:08 +04:00
Tema Bolshakov
6869cc9c3b No need to instantiate serializer 2014-08-18 12:47:22 +04:00
Tema Bolshakov
c389ae2207 Support customer array serializer 2014-08-18 12:37:01 +04:00
Steve Klabnik
be6ff586a2 Merge pull request #593 from byroot/fix-tests-broken-by-592
Manually include AC::Serialization module in test suite
2014-08-17 20:35:34 -04:00