João M. D. Moura
7afdad8c17
removing ruby 2.2 from appveyor
2015-08-26 03:21:30 -03:00
Lucas Hosseini
91235ba7bc
Add configuration option to set resource type to singular/plural with jsonapi.
2015-08-24 22:55:22 +02:00
Benjamin Fleischer
dc4ee94fea
Add ArraySerializer#object like Serializer
2015-08-24 13:51:46 -05:00
João Moura
82bd084f8d
Merge pull request #1071 from Eric-Guo/appveyor
...
Make testing suite running and pass in Windows
2015-08-22 14:33:28 -03:00
João Moura
87c47f8fdc
Merge pull request #1041 from bacarini/master
...
Adding pagination links
2015-08-22 13:38:32 -03:00
Eric Guo
30463f88fa
Make testing suite running and pass in Windows
...
thanks @bf4 give many help and suggestion, original PR https://github.com/rails-api/active_model_serializers/pull/1014
2015-08-21 21:07:52 +08:00
João M. D. Moura
acb367989c
updating appveyor.yml for better ouput
2015-08-21 01:45:45 -03:00
João M. D. Moura
58968ebe95
updating README to add windows build status
2015-08-21 01:28:28 -03:00
João M. D. Moura
fb719df5a8
adding appveyor.yml file
2015-08-21 01:18:37 -03:00
Bruno Bacarini
d50262edbe
test pagination links the way the controller does
2015-08-20 11:32:03 -03:00
Bruno Bacarini
b73ffe25c8
add kaminari and will_paginate examples
2015-08-20 11:31:21 -03:00
João Moura
fc7b9c3c14
Merge pull request #1063 from bf4/poro_lint
...
Lead by example: lint PORO model
2015-08-20 03:53:11 -03:00
Bruno Bacarini
3c3578a9b8
improvements on how to get self link on pagination class
2015-08-19 11:16:53 -03:00
Bruno Bacarini
f85027e631
add more documentation to pagination links
2015-08-19 11:09:47 -03:00
Bruno Bacarini
01eab3bdb4
send whole request context to model serializer
2015-08-19 10:48:48 -03:00
Eric Guo
90bff2f15b
Merge pull request #1 from bf4/parse_windows_paths
...
Test caller line parsing and digesting
2015-08-19 12:22:23 +08:00
Bruno Bacarini
5031eb9f96
add test to prev and first with additional params
2015-08-18 19:04:04 -03:00
Bruno Bacarini
2c2f948fa0
Add pagination links automatically
...
Pagination links will be included in your response automatically as long
as the resource is paginated using Kaminari or WillPaginate
and if you are using a JSON-API adapter. The others adapters does not have this feature.
2015-08-18 19:04:04 -03:00
Bruno Bacarini
a41d90cce4
add self to pagination links
2015-08-18 19:04:04 -03:00
Bruno Bacarini
59ae84baba
exchange to a faster regex to get origina_url
2015-08-18 19:04:03 -03:00
Bruno Bacarini
77a8f66ad8
fix message on raise of pagination links class
2015-08-18 19:04:03 -03:00
Bruno Bacarini
e0d050d2af
remove resource and options attr_reader from array_serialize
2015-08-18 19:04:03 -03:00
Bruno Bacarini
7be25fef14
include query_parameters on pagination links as well
2015-08-18 19:04:03 -03:00
Bruno Bacarini
e62a7d6f34
return complete URIs on pagination links
2015-08-18 19:04:03 -03:00
Bruno Bacarini
36c452e60b
add pagination feature to changelog file
2015-08-18 19:04:03 -03:00
Bruno Bacarini
acb6545c50
add documentation to pagination feature
2015-08-18 19:04:03 -03:00
Bruno Bacarini
331218d1c3
add test to class of pagination links
2015-08-18 19:04:03 -03:00
Bruno Bacarini
e040d6fcce
add action test to pagination links
2015-08-18 19:04:02 -03:00
Bruno Bacarini
1fe8b06986
exchange pagination class to inside json_api scope
2015-08-18 19:04:02 -03:00
Bruno Bacarini
b864302695
remove 'page object' on paginations links'
2015-08-18 19:04:02 -03:00
Bruno Bacarini
f7c77c1256
add feature to include pagination links in response
2015-08-18 19:04:02 -03:00
Benjamin Fleischer
215fb85c7f
Test caller line parsing and digesting
2015-08-18 17:32:29 -04:00
João Moura
e384b65f5d
Merge pull request #1048 from bf4/cleanup_meta_in_adapter
...
Let FlattenJson adapter decide it doesn't include meta
2015-08-18 16:23:03 -03:00
Benjamin Fleischer
98d009a000
Let FlattenJson adapter decide it doesn't include meta
2015-08-18 15:13:21 -04:00
Benjamin Fleischer
dca286b0ec
Lead by example: lint PORO model
2015-08-18 12:59:12 -04:00
João Moura
e7d3323d23
Merge pull request #1060 from developertown/fragment-cache-namespaces
...
Update fragment cache to support namespaced objects
2015-08-18 00:02:49 -03:00
Eric Guo
f93a7e8b41
need lookahead match for windows file path contain 'c:/git/'
...
So we will got full file path instead of only c if caller.first is: c:/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb:1:in `<top (required)>'
CALLER_FILE = /
/A # start of string
\S+ # one or more non-spaces
(?= # stop previous match when
:\d+:in # a colon is followed by one or more digits
# followed by a colon followed by in
)
/x
credit from https://gist.github.com/mikezter/540132 and @bf4
2015-08-18 09:52:34 +08:00
Aaron Lerch
35c8f0d835
Update fragment cache to support namespaced objects
2015-08-17 17:12:30 -04:00
João Moura
6aba260491
Merge pull request #1052 from whatthewhat/underscored-json-root
...
Use underscored json_root when serializing a collection
2015-08-17 01:12:22 -03:00
Mikhail Topolskiy
e8e4bdefd2
Use underscored json_root
2015-08-13 20:31:48 +03:00
João Moura
8568ed5913
Merge pull request #1051 from tjschuck/patch-1
...
Fix some invalid JSON in docs
2015-08-13 01:05:39 -03:00
T.J. Schuck
b6b3aa5f21
Fix some invalid JSON
2015-08-12 11:53:46 -04:00
João Moura
b4949fbc2a
Merge pull request #1049 from bf4/fix_json_api_adapter_serialable_hash
...
Fix incorrect s/options = {}/options ||= {}
2015-08-12 11:08:39 -03:00
João Moura
a3d75c9354
Merge pull request #1037 from engineyard/type-attribute
...
allow for type attribute
2015-08-12 02:55:51 -03:00
Benjamin Fleischer
43e09c03de
Fix incorrect s/options = {}/options ||= {}
...
Introduced in #965 , surfaced in #1041
2015-08-11 17:08:09 -05:00
Josh Lane
033ce8e88d
allow for a type attribute
...
* "namespace" json_api specific type method
2015-08-11 08:33:05 -07:00
Josh Lane
4af98852b8
fix warning
...
* don't overshadow serializer variable
2015-08-11 08:32:20 -07:00
João Moura
f7a1585b75
Merge pull request #1034 from engineyard/id-attribute
...
allow id attribute to be overriden
2015-08-11 02:02:07 -03:00
João Moura
03ddeeeec1
Merge pull request #1035 from artLopez/master
...
Fixed Comments highlight
2015-08-05 20:24:17 -03:00
artLopez
b68305f560
Fixed Comments highlight
2015-08-04 12:00:53 -07:00