Ben Mills
b5e2b41a33
Merge pull request #1736 from bf4/patch_gemspec
...
Correct ruby/rails version requirements in gemspec
2016-05-18 12:36:37 -06:00
Benjamin Fleischer
fde4f6776d
Update README/CHANGELOG
2016-05-18 10:23:10 -05:00
Benjamin Fleischer
b089a7277d
Correct ruby/rails version requirements in gemspec
2016-05-18 10:16:05 -05:00
cgmckeever
ec15fa9de3
Adds documentation for overriding default serializer based on conditions ( #1730 )
...
suggested changes
update changelog
2016-05-17 15:28:54 -04:00
Ben Mills
b75db81ca4
Update README. 0.10 is no longer RC
2016-05-17 13:13:53 -06:00
Ben Mills
b6d4ec03de
Bump to v0.10.0
2016-05-17 12:49:37 -06:00
Ben Mills
660e982c72
Merge pull request #1726 from cgmckeever/nesting-polymorphs
...
adds polymorphic option to association definition which includes asso…
2016-05-17 12:25:10 -06:00
cgmckeever
5e35b7bf4c
adds mac files to .gitignore ( #1728 )
2016-05-17 13:51:26 -04:00
cgmckeever
ec23518eb9
adds prompt for version script and a little more documentation ( #1729 )
...
better version handling
looks up via yml
2016-05-17 13:50:18 -04:00
cgmckeever
bbed12864d
adds polymorphic option to association definition which includes association type in serializer
...
regen gemlock
regen gemlock
better variable naming
rubocop fixes
adds to changelog
adds empty relationship and has_many polymorph tests
indent
test cleaning
-rubocop
rubocop
rubocop
rubocop
changelog
remove silly .DS
fix roque failure
fix
2016-05-17 12:30:59 -05:00
Benjamin Fleischer
6c321cd862
Assert Schema ( #1677 )
...
* Assert Schema
* Fix regression from #1695 where JSONAPI renders empty meta
* Add changelog
2016-05-17 13:22:38 -04:00
Benjamin Fleischer
9f59398f2b
Merge pull request #1732 from remear/jsonapi-renderer
...
Include ControllerSupport on ActiveSupport on_load action_controller
2016-05-17 12:10:17 -05:00
Benjamin Fleischer
7fcac0c536
Merge pull request #1697 from bf4/minitest_assertion_exception
...
Include actual exception message with custom exceptions
2016-05-17 10:56:59 -05:00
Ben Mills
7356071ea0
Include ControllerSupport on ActiveSupport on_load action_controller
2016-05-17 09:39:30 -06:00
Benjamin Fleischer
93cad825b7
Include actual exception message with custom exceptions
2016-05-17 10:32:53 -05:00
Benjamin Fleischer
d0d7af470c
Test::Schema exceptions should be Minitest::Assertions
2016-05-17 10:31:35 -05:00
Ben Mills
070d58eacf
Merge pull request #1723 from remear/rubocop-0_39_0
...
Pin rubocop to 0.39.0
2016-05-10 18:43:01 -06:00
Ben Mills
446c2d486c
Pin rubocop to 0.39.0
2016-05-10 18:25:01 -06:00
Yohan Robert
2b49899351
Merge pull request #1712 from bf4/fix_jsonapi_response_header
...
Setting the content_type sets the response Content-Type
2016-05-02 11:38:53 +02:00
Benjamin Fleischer
05fd59644d
Setting the content_type sets the response Content-Type
...
Otherwise we have two headers, 'Content-Type' and 'CONTENT_TYPE'.
I don't know when Rails decides to use one or the other.
2016-05-01 23:30:52 -05:00
Benjamin Fleischer
0433869cc1
Merge pull request #1699 from mtsmfm/str-lambda-support-for-if
...
String/Lambda support for conditional attributes/associations
2016-04-26 12:10:35 -05:00
Fumiaki MATSUSHIMA
aa087a22b5
String/Lambda support for conditional attributes/associations
2016-04-26 21:37:25 +09:00
L. Preston Sego III
d43b32a4d3
Merge pull request #1708 from christopherstyles/fix-typo-in-architecture-primitive-handling-docs
...
Fix typo in PRIMITIVE HANDLING docs
2016-04-25 23:20:58 -04:00
Christopher Styles
ad9e69a737
Fix typo in PRIMITIVE HANDLING docs [ci skip]
2016-04-25 20:02:36 -07:00
Lucas Hosseini
0165215c95
Merge pull request #1706 from mtsmfm/fix-appveyor-setting-for-jruby
...
Fix AppVeyor settings for JRuby.
2016-04-25 17:56:32 +02:00
Fumiaki MATSUSHIMA
d9eac2a4bd
Fix appveyor setting for JRuby
...
Path for JRuby is not correct so tests run on CRuby 1.9 till now...
2016-04-25 09:24:51 +09:00
Benjamin Fleischer
bade0f2dd6
Fix CHANGELOG sections [ci skip]
2016-04-22 12:10:59 -05:00
Benjamin Fleischer
8404f80dc4
Fix CHANGELOG sections [ci skip]
2016-04-22 12:07:08 -05:00
L. Preston Sego III
8c8edd6457
Merge pull request #1700 from iamnader/master
...
Support pagination link for Kaminari when no data is returned
2016-04-22 13:05:18 -04:00
Nader Akhnoukh
37ca0c1f6c
Support pagination link for Kaminari when no data is returned
2016-04-22 11:04:40 -06:00
Benjamin Fleischer
17d0759c97
Merge pull request #1698 from bf4/fix/benchmark
...
Fix CachingPostSerializer defining associations twice; add FragmentCaching benchmaking
2016-04-21 23:44:54 -05:00
Lucas Hosseini
b4e2ac300c
Merge pull request #1695 from beauby/meta-madness
...
Meta no longer handled in Base adapter.
2016-04-22 01:13:06 +02:00
Lucas Hosseini
e804d37924
Meta no longer handled in Base adapter.
2016-04-21 18:25:17 +02:00
L. Preston Sego III
f0fa74328f
Merge pull request #1692 from beauby/fix-jsonapi-tests
...
Fix tests to comply with the JSON API spec.
2016-04-20 22:15:35 -04:00
Benjamin Fleischer
335869ec0b
Add FragmentCaching benchmark
2016-04-20 10:47:55 -05:00
Benjamin Fleischer
02ad8c26b0
Fix CachingPostSerializer defining associations twice
2016-04-20 10:13:02 -05:00
Lucas Hosseini
ebda34b3d3
Fix tests to comply with the JSON API spec.
2016-04-20 03:08:54 +02:00
Benjamin Fleischer
7485c8487e
Merge pull request #1687 from bf4/lazyify_calculating_caller_digest
...
Lazify calculating caller file digest until used
2016-04-18 16:09:24 -05:00
Benjamin Fleischer
b4f3d3bd3c
Merge pull request #1689 from bf4/unsubscribe_notification
...
Add missing unsubscribe from test
2016-04-18 16:09:03 -05:00
Benjamin Fleischer
56662e9f34
Add missing unsubscribe from test
2016-04-18 14:45:27 -05:00
Benjamin Fleischer
dd41e1be42
Merge pull request #1686 from bf4/perf/only_calc_associations_once
...
Memoize resource relationships
2016-04-18 12:26:22 -05:00
Benjamin Fleischer
1d24c9708a
Lazify calculating caller file digest until used
2016-04-18 12:04:31 -05:00
Benjamin Fleischer
e554ba23d2
Nicer debug; compare caching by serializer, grouped by caching on/off
...
bundle exec bin/bench_regression a5eaf6cd7a7fed42d9e64777753a1762e187eadc 1033b711c7d7c231bb5b832e7dfe7f99389f22c4 --pattern bm_caching
["perf/only_calc_associations_once", "a5eaf6cd7a7fed42d9e64777753a1762e187eadc", "1033b711c7d7c231bb5b832e7dfe7f99389f22c4", "a5eaf6c"]
"version": "0.10.0.rc5",
"rails_version": "4.2.6",
"benchmark_run[environment]": "2.2.2p95",
Note: checking out 'a5eaf6cd7a7fed42d9e64777753a1762e187eadc'.
HEAD is now at a5eaf6c... Nicer debug; compare caching by serializer, grouped by caching on/off
caching on: caching serializers: gc off 783.6956866669746/ips; 1355 objects
caching on: non-caching serializers: gc off 798.8629770532652/ips; 1257 objects
caching off: caching serializers: gc off 682.3661326140281/ips; 1355 objects
caching off: non-caching serializers: gc off 721.2175067555897/ips; 1257 objects
HEAD is now at 1033b71... Merge pull request #1638 from bf4/caching_redux
caching on: caching serializers: gc off 570.6905948477781/ips; 1803 objects
caching on: non-caching serializers: gc off 822.8418206976623/ips; 1257 objects
caching off: caching serializers: gc off 523.4174806572001/ips; 1803 objects
caching off: non-caching serializers: gc off 747.6026493097758/ips; 1257 objects
2016-04-18 11:55:20 -05:00
Benjamin Fleischer
b7e2bc06ed
Memoize resource relationships
...
bin/bench_regression
"version": "0.10.0.rc5",
"rails_version": "4.2.6",
"benchmark_run[environment]": "2.2.2p95",
perf/only_calc_associations_once
"commit_hash": "1e7c428",
caching on: caching serializers: gc off 741.7702402782281/ips; 1355 objects
caching on: non-caching serializers: gc off 712.3752615532874/ips; 1257 objects
caching off: caching serializers: gc off 706.0789199312495/ips; 1355 objects
caching off: non-caching serializers: gc off 751.5310710635379/ips; 1257 objects
master
"commit_hash": "1033b711c7d7c231bb5b832e7dfe7f99389f22c4"
caching on: caching serializers: gc off 567.7959835633892/ips; 1803 objects
caching on: non-caching serializers: gc off 776.4929551133658/ips; 1257 objects
caching off: caching serializers: gc off 538.046851190591/ips; 1803 objects
caching off: non-caching serializers: gc off 738.5596630209004/ips; 1257 objects
2016-04-18 11:11:13 -05:00
Lucas Hosseini
4c0e2dcb28
Fix example in docs/general/deserialization.md.
2016-04-18 01:04:50 +02:00
Benjamin Fleischer
63e93375e3
Merge pull request #1638 from bf4/caching_redux
...
Caching redux: move as much attribute/association caching code into the serializer as possible, minimize caching code in the adapter
2016-04-15 14:08:35 -05:00
Yohan Robert
2159e81802
Merge pull request #1682 from swrobel/patch-1
...
Correct Adapter & SerializableResource examples
2016-04-14 00:02:21 +02:00
Stefan Wrobel
f3acf4e7a2
Correct Adapter & SerializableResource examples
2016-04-13 14:08:12 -07:00
Benjamin Fleischer
cc80eba9c9
Refactor fragment cache logic some more
2016-04-13 01:08:10 -05:00
Benjamin Fleischer
06636b25b2
Begin simplifying fragment cache
2016-04-13 01:08:09 -05:00