Commit graph

155 commits

Author SHA1 Message Date
Darren Cheng
1b09c69174 Ensure all AMS options are passed through.
See the following for details:
* https://github.com/rails-api/active_model_serializers/blob/master/docs/general/rendering.md
* https://github.com/rails-api/active_model_serializers/blob/master/docs/general/adapters.md
2017-04-25 19:13:03 -07:00
Darren Cheng
da18531590 Merge pull request #74 from ruby-grape/support-sequel
Ensure support for Sequel.
2017-04-25 19:10:06 -07:00
Darren Cheng
eb28eb2636 Add Sequel integration spec. 2017-04-24 17:02:11 -07:00
Darren Cheng
ed5d5b4ca4 Ensure support for Sequel models and datasets. 2017-04-22 17:10:24 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
2748d5ba2b Merge pull request #63 from ruby-grape/adapter-options
Pass adapter options through calls to render.
2016-09-09 14:20:14 -04:00
Darren Cheng
0963774ecc Whitelist adapter options and support extra options. 2016-09-09 10:54:33 -07:00
Darren Cheng
4315930a55 Pass adapter options through calls to render. 2016-09-07 00:06:25 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
f304c8e487 Merge pull request #65 from dblock/danger
Added Danger, PR linter.
2016-09-05 10:46:59 -04:00
dblock
c83394cb20 Added Danger, PR linter. 2016-09-05 10:36:10 -04:00
Darren Cheng
bc7a0b0420 Merge pull request #62 from drn/prep-v1.5.0
Prep v1.5.0
2016-08-24 10:49:04 -07:00
Darren Cheng
22ea34d159 Update gem version to v1.5.0. 2016-08-24 10:47:59 -07:00
Darren Cheng
12bff3bcf2 Prep CHANGELOG for v1.5.0 release. 2016-08-24 10:47:59 -07:00
Darren Cheng
5ae81261ab Update UPGRADING document for v1.5.0 release. 2016-08-22 19:06:11 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
5360021287 Added gem version badge. [ci skip] 2016-07-26 13:39:08 -04:00
Daniel Doubrovkine (dB.) @dblockdotorg
eda39c5833 Merge pull request #61 from drn/collection-serializer-support
Implement support for collection serializers.
2016-07-26 13:36:53 -04:00
Darren Cheng
6bb205731a Implement support for collection serializers. 2016-07-26 10:21:34 -07:00
Darren Cheng
2a4be72387 Lock rubocop version. 2016-07-24 15:17:59 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
eb43f68af8 Merge pull request #60 from drn/namespace-inference
Namespace inferred serializer resolution.
2016-07-23 23:02:33 -04:00
Darren Cheng
629afb9887 Namespace inferred serializer resolution. 2016-07-22 15:18:04 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
f76ec6dcff Merge pull request #59 from drn/refactor
Refactor option and serializer resolution.
2016-07-22 15:39:47 -04:00
Darren Cheng
ac9466192d Refactor option and serializer resolution. 2016-07-21 16:03:46 -07:00
Daniel Doubrovkine (dB.) @dblockdotorg
37786d6a38 Merge pull request #57 from drn/line-length-linter
Solve line length linter issues.
2016-07-15 08:53:58 -04:00
Darren Cheng
1dd73e9cd7 Solve line length linter issues. 2016-07-14 20:09:29 -07:00
Darren Cheng
a48d57c2ba Update additional references from jrhe to ruby-grape. 2016-07-14 19:36:27 -07:00
Darren Cheng
fb34024e04 Merge pull request #54 from Thanx/apply_adapter_config_value
Update codebase to support AMS v0.10.x.
2016-07-14 19:28:17 -07:00
Darren Cheng
8f1687b7f6 Ensure grape version is >= v0.8.0. 2016-07-14 19:25:59 -07:00
Darren Cheng
d2a5bb4c4e Add dependency notes to README. 2016-07-14 19:25:58 -07:00
Darren Cheng
62faac16c3 Drop Ruby v2.1 support. 2016-07-14 19:25:58 -07:00
Darren Cheng
35abadd8f7 Upgrade codebase to support latest AMS version. 2016-07-14 19:25:58 -07:00
Naoki Kobayashi
78229c9dea Use ActiveModelSerializers::Adapter 2016-07-14 19:17:43 -07:00
Darren Cheng
0c98ff6b07 Preparing for release, 1.4.0. 2016-07-14 19:14:46 -07:00
Jonathan Richard Henry Evans
fcec84dc92 Update github references from jrhe to ruby-grape 2016-05-19 14:02:35 +01:00
Daniel Doubrovkine (dB.) @dblockdotorg
300eed4128 Merge pull request #51 from dblock/changes
Added CHANGELOG, CONTRIBUTING, updated README and UPGRADING.
2016-05-17 12:15:01 -04:00
dblock
9a56be4d46 Added CHANGELOG, CONTRIBUTING, updated README and UPGRADING. [ci skip] 2016-05-17 12:14:14 -04:00
Daniel Doubrovkine (dB.) @dblockdotorg
4190cbf18f Merge pull request #49 from syntaxTerr0r/versioned-api
API Versioning: Supporting Active Model Serializers namespacing
2016-05-17 10:51:43 -04:00
syntaxTerr0r
8889b5a1ee Merge branch 'versioned-api' of https://github.com/syntaxTerr0r/grape-active_model_serializers into versioned-api 2016-05-16 02:49:23 +02:00
syntaxTerr0r
c57a388e91 Bump version to 1.4.0
Adding failing specs for issue #48
Proposition of implementation for #48
Readme update

Rollback travis
2016-05-16 02:48:29 +02:00
syntaxTerr0r
4202e7e1d4 Merge branch 'master' into versioned-api 2016-05-16 02:44:05 +02:00
syntaxTerr0r
bec6d444a3 Rollback travis 2016-05-16 02:38:29 +02:00
Daniel Doubrovkine (dB.) @dblockdotorg
1594eb0452 Merge pull request #50 from dblock/fix-build
Fix: update build matrix with newer versions of Grape.
2016-05-10 07:18:24 -04:00
dblock
af50be86b9 Fix: update build matrix with newer versions of Grape. 2016-05-10 07:11:43 -04:00
syntaxTerr0r
c2bdab8f69 Bump version to 1.4.0
Adding failing specs for issue #48
Proposition of implementation for #48
Readme update
Travis fix
2016-05-10 02:06:35 +02:00
Daniel Doubrovkine (dB.) @dblockdotorg
bc758e0b66 Merge pull request #47 from sethherr/patch-1
Readme update with note about accessing current_user
2015-12-03 23:20:13 -05:00
Seth Herr
4347c8d7d3 Add information about accessing current_user
Fix. project using:

- active_model_serializers - 0.9.3
- grape 0.13.0
- grape-active_model_serializers 1.3.2
2015-12-02 14:19:42 -06:00
Siong
ca9c8faaa9 Merge pull request #39 from jwkoelewijn/options_from_namespace
Look for namespace and other options to configure serializers
2015-01-22 13:49:35 -08:00
Daniel Doubrovkine (dB.) @dblockdotorg
f13d008506 Merge pull request #40 from dblock/one-meta
Use env to pass AMS meta around.
2015-01-15 11:16:59 -05:00
dB
f773bcbb8e Use env to pass meta to the formatter. 2015-01-14 14:54:44 -05:00
dB
19bb6b50f7 Simplify meta assignment to a single hash. 2015-01-14 14:53:07 -05:00
J.W. Koelewijn
6b16d22123 Changed some cosmetics in layout 2015-01-14 16:57:56 +01:00
J.W. Koelewijn
906d772202 Look for namespace and other options to configure serializers
By default not all serializer options are considered (for instance
the :root option, or the :each_serializer option). This potentially
results in an incomplete configuration of the serializers used.

Added 2 specs to test this when used as a single endpoint and when
used within a namespace. At the moment it is fixed by plucking
the correct settings in the .build_options_from_endpoint,
but I could imagine that this is not exactly the right spot.
2015-01-14 16:35:11 +01:00