6 years agov1.21 master mirror/master v1.21
John Napiorkowski [Tue, 5 Dec 2017 15:16:43 +0000]
v1.21

6 years agoMerge branch 'runarbu-master'
John Napiorkowski [Tue, 5 Dec 2017 15:03:41 +0000]
Merge branch 'runarbu-master'

6 years agoMerge branch 'master' of https://github.com/runarbu/Catalyst-Action-REST into runarbu...
John Napiorkowski [Tue, 5 Dec 2017 15:03:30 +0000]
Merge branch 'master' of https://github.com/runarbu/Catalyst-Action-REST into runarbu-master

6 years agoMerge branch 'lairdm-master'
John Napiorkowski [Tue, 5 Dec 2017 15:02:36 +0000]
Merge branch 'lairdm-master'

6 years agoAdded an optional mode for RFC 7231 compliance. The Content-Type header is used to...
Matthew Laird [Wed, 22 Nov 2017 11:43:19 +0000]
Added an optional mode for RFC 7231 compliance. The Content-Type header is used to signal the format of the request body, the Accept header is used to negotiate the content type the client wants. Unfortunately for our needs these are sometimes different, but Catalyst::Controller::REST assumes they always match.

This adds a separation between the Serializer and Deserializer when desired. As well, a separate set of mappings for the deserializer content types is allowed. Probably not the most eligant solution but hopefully doesn't break backwards compatibility for those wanting or expecting the current behaviour.

If you have ideas on a better way to do this, I'm open to suggestions on improvements. Thanks.

8 years agoNew option json_options_encode to set JSON options for output
Runar Buvik [Tue, 3 Nov 2015 09:44:33 +0000]
New option json_options_encode to set JSON options for output

It is good to be able to set flags like pretty and indent when making json.

8 years agoupdated changes; v1.20
John Napiorkowski [Thu, 29 Oct 2015 20:35:07 +0000]
updated changes;

8 years agomerged
John Napiorkowski [Thu, 29 Oct 2015 20:17:29 +0000]
merged

8 years agoMerge branch 'klkanet push origin master-master'
John Napiorkowski [Thu, 29 Oct 2015 20:11:31 +0000]
Merge branch 'klkanet push origin master-master'

8 years agoresolved
John Napiorkowski [Thu, 29 Oct 2015 20:11:25 +0000]
resolved

8 years agot push origin masterMerge branch 'bockscar-master'
John Napiorkowski [Thu, 29 Oct 2015 20:09:18 +0000]
t push origin masterMerge branch 'bockscar-master'

8 years agoFix docs citing incorrect method, "serialize_bad_request"
Steve Kleiman [Sun, 10 May 2015 18:42:10 +0000]
Fix docs citing incorrect method, "serialize_bad_request"

Fix docs to correct error-handling method name: 'serialize_bad_request'
(remove leading underscore)

8 years agobumping revision number and adding entry to changes prior to CPAN release
Kevin L. Kane [Thu, 29 Oct 2015 19:10:13 +0000]
bumping revision number and adding entry to changes prior to CPAN release

8 years agomaking SerializeBase respect Vary: header if it has already been set
Kevin L. Kane [Thu, 29 Oct 2015 18:32:03 +0000]
making SerializeBase respect Vary: header if it has already been set

9 years agov1.19 v1.19
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:40:26 +0000]
v1.19

 - Make LWP a test dep instead of a hard dep (Fixes GH#3, thanks Alexander
   Hartmaier for the report!)
 - Hard dep on JSON::MaybeXS (Fixes RT#101854, thanks Emmanuel Seyman for the
   report and Karen Etheridge for help tracking down the cause!)

9 years agoMake LWP a test dep instead of a hard dep
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:34:52 +0000]
Make LWP a test dep instead of a hard dep

9 years agoset repository to github to participate in new CPAN challenge
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:30:06 +0000]
set repository to github to participate in new CPAN challenge

9 years agoHard dep on JSON::MaybeXS
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:27:25 +0000]
Hard dep on JSON::MaybeXS

9 years agov1.18 v1.18
Arthur Axel 'fREW' Schmidt [Tue, 20 Jan 2015 18:21:35 +0000]
v1.18

 - Fix tests on travisci so that Catalyst proper can run on travisci
   (Thanks André Walker!)

9 years agofix encoding
Arthur Axel 'fREW' Schmidt [Tue, 20 Jan 2015 18:20:44 +0000]
fix encoding

9 years agoRemove coverage from Travis
André Walker [Tue, 20 Jan 2015 17:56:42 +0000]
Remove coverage from Travis

9 years agoAdd my name to CONTRIBUTORS
André Walker [Tue, 20 Jan 2015 17:00:24 +0000]
Add my name to CONTRIBUTORS

9 years agoUse accessor instead of low level header value in tests
André Walker [Tue, 20 Jan 2015 16:55:03 +0000]
Use accessor instead of low level header value in tests

The test was failing in recent Catalyst versions because it was fetching
the header value using $res->header('Content-Type') instead of
$res->content_type. The former would get the entire HTTP header, which
recent versions would append the charset, thus changing the expected
value from 'text/x-yaml' to 'text/x-yaml; charset=UTF-8'.

The ->content_type accessor parses the header, and returns (in the
example): ('text/x-yaml', 'charset=UTF-8') in list context, and simply
'text/x-yaml' in scalar context. Using this, the test doesn't have to
worry about low level details such as the charset defined, which is out
of the scope of the test.

9 years agoUpdate LWP::UserAgent min version
André Walker [Tue, 20 Jan 2015 16:53:09 +0000]
Update LWP::UserAgent min version

The version was set to 2.033, which never existed, according to:

https://metacpan.org/changes/distribution/libwww-perl

While still being conservative, 5.00 is a more reasonable value. It was
released in 1996.

9 years agov1.17 v1.17
Arthur Axel 'fREW' Schmidt [Fri, 24 Oct 2014 00:59:10 +0000]
v1.17

 - Make 3xx status codes skip serialization when there is no data to serialize
   (Thanks Jesse Sheidlower!)

9 years agonormalize Changes even more
Arthur Axel 'fREW' Schmidt [Thu, 23 Oct 2014 02:18:55 +0000]
normalize Changes even more

9 years agoAllow redirections like ::RenderView
Jesse Sheidlower [Wed, 22 Oct 2014 16:04:00 +0000]
Allow redirections like ::RenderView

9 years agono need for OurPkgVersion with modern dzil
Arthur Axel 'fREW' Schmidt [Wed, 22 Oct 2014 16:02:37 +0000]
no need for OurPkgVersion with modern dzil

9 years agov1.16 v1.16
Arthur Axel 'fREW' Schmidt [Fri, 12 Sep 2014 18:22:24 +0000]
v1.16

 * Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.

9 years agoSwitch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.
Matt S Trout [Wed, 10 Sep 2014 15:57:32 +0000]
Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.

9 years agofix missing v1.15 v1.15
Arthur Axel 'fREW' Schmidt [Fri, 12 Sep 2014 18:11:15 +0000]
fix missing v1.15

10 years agov1.14 v1.14
Arthur Axel 'fREW' Schmidt [Fri, 27 Dec 2013 21:32:43 +0000]
v1.14

 * Stop prompting for features at install time

10 years agoupdate changes
Arthur Axel 'fREW' Schmidt [Fri, 27 Dec 2013 21:30:47 +0000]
update changes

10 years agotest on travis
Arthur Axel 'fREW' Schmidt [Sat, 9 Nov 2013 00:43:00 +0000]
test on travis

10 years agonormalize Changes
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 23:23:16 +0000]
normalize Changes

10 years agoremove hardcoded version strings
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:29:09 +0000]
remove hardcoded version strings

10 years agoconvert to dzil
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:28:53 +0000]
convert to dzil

10 years agoremove generated or otherwise unneeded files
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:27:29 +0000]
remove generated or otherwise unneeded files

10 years agowhy oh why does every class have VERSION??? 1.13
John Napiorkowski [Fri, 8 Nov 2013 15:41:19 +0000]
why oh why does every class have VERSION???

10 years agoFix tests to skip if YAML::Syck is not installed
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 14:03:35 +0000]
Fix tests to skip if YAML::Syck is not installed

10 years agooh my god, its full of tiny version numbers 1.12
John Napiorkowski [Thu, 5 Sep 2013 15:37:26 +0000]
oh my god, its full of tiny version numbers

10 years agomake more de/serializers optional for security reasons
John Napiorkowski [Tue, 3 Sep 2013 17:14:04 +0000]
make more de/serializers optional for security reasons

more security fixes

10 years agoRelease 1.11 1.11
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:24:49 +0000]
Release 1.11

10 years agoFix infinite recursion in tests under Catalyst 5.90040
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:18:52 +0000]
Fix infinite recursion in tests under Catalyst 5.90040

Instead of trying to neuter Catalyst's prohibition against multiple
calls to ->setup(), just do the different tests in different files.

10 years agoIgnore Emacs droppings
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:10:22 +0000]
Ignore Emacs droppings

10 years agoActually test both the request trait and class
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 13:29:12 +0000]
Actually test both the request trait and class

11 years agoVersion 1.10 1.10
Dagfinn Ilmari Mannsåker [Mon, 22 Apr 2013 13:40:18 +0000]
Version 1.10

11 years agoUse YAML rather than JSON in basic tests
Dagfinn Ilmari Mannsåker [Mon, 22 Apr 2013 13:33:06 +0000]
Use YAML rather than JSON in basic tests

We have a hard dependency on YAML::Syck, but JSON support is optional,
so use YAML in basic functionality test.

11 years agoVersion 1.09 1.09
Dagfinn Ilmari Mannsåker [Fri, 19 Apr 2013 12:35:17 +0000]
Version 1.09

11 years agoDon't load Data::Serializer unnecessarily in tests
Dagfinn Ilmari Mannsåker [Fri, 19 Apr 2013 10:01:51 +0000]
Don't load Data::Serializer unnecessarily in tests

11 years agoVersion 1.08 1.08
Tomas Doran [Tue, 16 Apr 2013 07:27:05 +0000]
Version 1.08

11 years agoFactor Data::Serialization into a sep dist
Arthur Axel 'fREW' Schmidt [Fri, 12 Apr 2013 00:58:31 +0000]
Factor Data::Serialization into a sep dist

11 years agoVersion 1.07 1.07
Tomas Doran [Thu, 11 Apr 2013 19:21:21 +0000]
Version 1.07

11 years agoChangelog
Tomas Doran [Thu, 11 Apr 2013 19:20:36 +0000]
Changelog

11 years agoSecurity fix
Tomas Doran [Thu, 11 Apr 2013 19:18:40 +0000]
Security fix

11 years agoTest-case: When view is set, don't serialize
Shea Levy [Fri, 15 Mar 2013 17:15:22 +0000]
Test-case: When view is set, don't serialize

Signed-off-by: Shea Levy <shea@shealevy.com>

11 years agoDon't serialize if a view is explicitly set.
Shea Levy [Fri, 15 Mar 2013 15:54:35 +0000]
Don't serialize if a view is explicitly set.

If the controller sets the view in $c->stash->{current_view} or
$c->stash->{current_view_instance}, then it is explicitly requesting a
certain kind of serialization and C::A::Serialize shouldn't override
that.

Signed-off-by: Shea Levy <shea@shealevy.com>

11 years agoVersion 1.06 1.06
Tomas Doran [Tue, 11 Dec 2012 22:05:05 +0000]
Version 1.06

11 years agoSort list of allowed methods. RT#81825
Dagfinn Ilmari Mannsåker [Sun, 9 Dec 2012 19:25:50 +0000]
Sort list of allowed methods. RT#81825

11 years agoVersion 1.05 1.05
Tomas Doran [Mon, 2 Jul 2012 19:13:58 +0000]
Version 1.05

11 years agoUpdate changelog
Wallace Reis [Mon, 2 Jul 2012 18:39:39 +0000]
Update changelog

11 years agoRemove not_implemented from the list of allowed methods
Wallace Reis [Mon, 2 Jul 2012 18:06:46 +0000]
Remove not_implemented from the list of allowed methods

11 years agoExtend get_allowed_methods to include HEAD
Wallace Reis [Sat, 30 Jun 2012 12:43:33 +0000]
Extend get_allowed_methods to include HEAD

11 years agoVersion 1.04 1.04
Tomas Doran [Sat, 30 Jun 2012 09:26:52 +0000]
Version 1.04

11 years agoUpdate changes
Tomas Doran [Sat, 30 Jun 2012 09:25:32 +0000]
Update changes

11 years agoFix spelling
Tomas Doran [Sat, 30 Jun 2012 09:28:00 +0000]
Fix spelling

11 years agoBugfix _dispatch_rest_method
Wallace Reis [Fri, 29 Jun 2012 11:57:36 +0000]
Bugfix _dispatch_rest_method

Code to action lookup key must be based on $rest_method instead of $req
info.

11 years agoMerge
Tomas Doran [Wed, 27 Jun 2012 23:51:32 +0000]
Merge

11 years agoVersion 1.03 1.03
Tomas Doran [Wed, 27 Jun 2012 23:44:28 +0000]
Version 1.03

11 years agoUpdate changelog
Wallace Reis [Mon, 25 Jun 2012 22:27:11 +0000]
Update changelog

11 years agoUpdate README
Tomas Doran [Wed, 27 Jun 2012 23:48:52 +0000]
Update README

11 years agoUpdate changelog
Wallace Reis [Mon, 25 Jun 2012 22:27:11 +0000]
Update changelog

11 years agoAdd me to the CONTRIB list
Wallace Reis [Mon, 25 Jun 2012 22:25:07 +0000]
Add me to the CONTRIB list

11 years agoDocument default HEAD handler
Wallace Reis [Mon, 25 Jun 2012 22:21:02 +0000]
Document default HEAD handler

11 years agoExpose _get_allowed_methods to the API
Wallace Reis [Thu, 21 Jun 2012 20:05:54 +0000]
Expose _get_allowed_methods to the API

Then child controllers can use that to write their own _not_implemented
methods.

11 years agoFix default OPTIONS handler
Wallace Reis [Mon, 11 Jun 2012 12:39:04 +0000]
Fix default OPTIONS handler

As the ->body is defined, then serialization won't happen and we don't
wrong responses as from failing tests in prev commit.

11 years agoAdd failing tests for OPTIONS
Wallace Reis [Mon, 11 Jun 2012 12:35:31 +0000]
Add failing tests for OPTIONS

11 years agoAdd default HEAD handler
Wallace Reis [Fri, 22 Jun 2012 12:14:48 +0000]
Add default HEAD handler

Signed-off-by: Wallace Reis <wreis@123people.com>

11 years agoAdd failing tests for default HEAD dispatch
Wallace Reis [Fri, 22 Jun 2012 11:26:50 +0000]
Add failing tests for default HEAD dispatch

11 years agoAdd HEAD requests support to T::Rest
Wallace Reis [Fri, 22 Jun 2012 11:12:12 +0000]
Add HEAD requests support to T::Rest

11 years agoBit of rework for _dispatch_rest_method
Wallace Reis [Thu, 21 Jun 2012 20:13:42 +0000]
Bit of rework for _dispatch_rest_method

11 years agoVersion 1.02 1.02
Tomas Doran [Tue, 5 Jun 2012 21:33:54 +0000]
Version 1.02

11 years agoSpelling
Tomas Doran [Tue, 5 Jun 2012 21:43:18 +0000]
Spelling

11 years agoChangelog
Tomas Doran [Tue, 5 Jun 2012 21:39:31 +0000]
Changelog

11 years agoMake public response building methods for errors
Wallace Reis [Fri, 1 Jun 2012 12:33:00 +0000]
Make public response building methods for errors

_unsupported_media_type and _serialize_bad_request which can be extended
from an action-role to return custom error reponse.

11 years agoFix display of foo_GET mehods in non-root controllers
Tomas Doran [Tue, 5 Jun 2012 21:33:00 +0000]
Fix display of foo_GET mehods in non-root controllers

11 years agoVersion 1.01 1.01
Tomas Doran [Tue, 29 May 2012 19:20:14 +0000]
Version 1.01

11 years agoChangelog
Tomas Doran [Tue, 29 May 2012 19:19:32 +0000]
Changelog

11 years agoOops. ENV setting should be in ::XS classes
Wallace Reis [Tue, 29 May 2012 15:44:02 +0000]
Oops. ENV setting should be in ::XS classes

11 years agoRework ::XS serializer and deserializer classes
Wallace Reis [Tue, 29 May 2012 15:33:49 +0000]
Rework ::XS serializer and deserializer classes

Make ::XS ones be a bare extension over JSON classes and ensure that
JSON::XS is loaded or die.

11 years agoEnable UTF-8 for JSON::XS serializer
Wallace Reis [Mon, 28 May 2012 14:58:38 +0000]
Enable UTF-8 for JSON::XS serializer

12 years agoVersion 1.00 1.00
Tomas Doran [Fri, 13 Apr 2012 08:34:40 +0000]
Version 1.00

12 years agoShoot auto_include. RT#76524
Tomas Doran [Fri, 13 Apr 2012 08:30:56 +0000]
Shoot auto_include. RT#76524

12 years agoVersion 0.99 0.99
Tomas Doran [Tue, 28 Feb 2012 09:12:15 +0000]
Version 0.99

12 years agoVersion 0.98 0.98
Tomas Doran [Tue, 21 Feb 2012 11:41:26 +0000]
Version 0.98

12 years agoMore spelling skips
Tomas Doran [Tue, 21 Feb 2012 10:05:19 +0000]
More spelling skips

12 years agoVersion 0.97 0.97
Tomas Doran [Tue, 21 Feb 2012 09:59:55 +0000]
Version 0.97

12 years agoTest fix
Tomas Doran [Tue, 21 Feb 2012 09:59:44 +0000]
Test fix

12 years agoMerge remote branch 'shadowcat/master'
Tomas Doran [Mon, 30 Jan 2012 11:33:27 +0000]
Merge remote branch 'shadowcat/master'

* shadowcat/master:
  Fix a typo in Changes

12 years agoVersion 0.96 0.96
Tomas Doran [Mon, 30 Jan 2012 11:22:38 +0000]
Version 0.96