Debian Codegraph @

Changes

raw
1 Revision history for Web::MREST
2
3 0.01 2014-12-19 21:01 CET
4 - basic module setup with code (mainly Resource.pm) taken from
5 App::Dochazka::REST version 0.356
6 - MREST.pm: write POD
7
8 0.02 2014-12-22 09:52 CET
9 - remove auto-generated build files that I committed accidentally
10 - MREST.pm: work on POD
11 - Resource.pm: get rid of is_authorized and associated routines
12
13 0.03 2014-12-22 16:03 CET
14 - start development
15
16 0.04 2014-12-23 11:42 CET
17 - rename from App::MREST to Web::MREST
18 - get t/503-Service-Unavailable.t to work as desired
19
20 0.05 2014-12-23 16:50 CET
21 - no longer dying in allowed_methods
22
23 0.06 2014-12-23 21:34 CET
24 - Build.PL: add Module::Runtime dependency
25 - MREST_Config.pm: add MREST_APPLICATION_MODULE
26 - dispatch_MetaConfig.pm: document format of resource definitions; re-structure
27 the resources to illustrate how individual resources can have subresources
28 for a tree structure; add MREST_ROOT_RESOURCE
29 - Resource.pm: fix bugs in resource initialization routines
30 - t/405-Method-Not-Allowed.t: now that allowed_methods is doing something, add
31 some tests
32
33 0.07 2014-12-29 15:39 CET
34 - bin/mrest: now takes app distro as parameter
35 - config/dispatch_MetaConfig.pm: minor fixes; add root resource definition
36 - MREST.pm: work on POD, make init take a PARAMHASH so application can
37 get its own meta and site parameters loaded
38 - Resource.pm: remove Clone dependency; adapt to flat structure of resource
39 definitions
40 - t/405-Method-Not-Allowed.t: fix tests
41 - t/method_not_allowed_override.t: demonstrate how a unit can define its own
42 resources and generate HTTP requests against them
43
44 0.08 2014-12-30 15:30 CET
45 - config/HTTP_Status_Message_en.conf: add HTTP status codes
46 - MREST.pm: work on POD
47 - Resource.pm: implement 'mrest_declare_error' method; use it in
48 allowed_methods; change all instances of $self->response->body to
49 $self->response->content; add error-handling code to 'finish_request' method;
50 start declaring HTTP errors using the new method
51 - Test.pm: in 'status_from_json' we call 'from_json' which might die - handle
52 this situation more gracefully
53
54 0.09 2014-12-30 18:35 CET
55 - implement malformed_request, is_authorized, forbidden
56 - rename "mrest_declare_error" to "mrest_declare_status" so we
57 can "declare" a successful status, too
58 - try to figure out why CLI parser dies when we return a "declared" 500 status
59 (something strange is afoot)
60
61 0.10 2014-12-31 09:54 CET
62 - add dispatch-specific config files and module
63 - bin/mrest: disable StackTrace middleware as it was making it difficult
64 to return sensible 500 error entities
65 - Resource.pm: turn warnings into errors; add 'mrest_resource_exists' method;
66 "GET bugreport" works
67
68 0.11 2014-12-31 16:11 CET
69 - bin/mrest: turn on Web::Machine tracing
70 - HTTP_Status_Message_en.conf: add 501
71 - MREST_Config.pm: support OPTIONS method
72 - get rid of bogus dispatch_Config.pm innards
73 - MREST.pm: work on POD
74 - Resource.pm: too much work to describe here
75
76 0.12 2014-12-31 23:24 CET
77 - Resource.pm: expand 'status_declared' method; work on 'malformed_request' method;
78 call handler in a try block
79 - config/MREST_Config.pm: expand supported options - break tests
80 - t/request_body_read.t: write what seem to be some sensible tests that pass
81 - t/: address some of the brokenness
82
83 0.13 2015-01-02 14:33 CET
84 - Util.pm: for pod_to_html
85 - Dispatch/Docu.pm: handlers for docu resources
86 - t/: new units t/resources/docu.t and t/4xx/415-Unsupported-Media-Type.t
87 - get HTML responses to work
88 - get docu resources to work
89 - MREST.pm: POD checked up to B5
90 - Dispatch.pm: add 'noop' handler
91 - Resource.pm: basic handling/checking of 'Content-Length' and 'Content-Type'
92 headers
93
94 0.14 2015-01-02 15:19 CET
95 - in valid_content_headers, actually check the headers against the valid
96 set (taken from RFC2616)
97
98 0.15 2015-01-03 22:15 CET
99 - handle and test 406 Not Acceptable
100 - work on POD
101 - take "content types provided" from configuration
102
103 0.16 2015-01-05 16:01 CET
104 - dispatch_MetaConfig.pm, Dispatch.pm: add 'test/post_is_create/:bool' resource
105 - MREST.pm: work on POD
106 - Resource.pm: implement 'post_is_create' and 'create_path' methods
107 - t/2xx/201.t: basic unit tests for 'post_is_create'
108
109 0.17 2015-01-06 08:28 CET
110 - resource handlers are now method names
111 - bin/mrest: take distro name and name of module to bless the application object into
112 - dispatch_MetaConfig.pm: work on documentation; remove module name from handler property;
113 generalize 'test' resource
114 - MREST.pm: work on POD
115 - Dispatch.pm: inherit from Web::MREST::Resource; work on 'echo' handler; generalize
116 'test' handler so it works for GET, POST, PUT and DELETE
117 - Resource.pm: execute handler via method call instead of function call
118 - Test.pm, t/: start adapting tests to current state
119
120 0.18 2015-01-06 13:44 CET
121 - add 'forbidden' resource and test for 403 Forbidden
122 - add site params to control "cache disablement" headers
123 - call handlers 'handler_foo' to distinguish them from resource names
124 - get rid of 'help' resource; rename 'not_implemented' to 'noop'
125
126 0.19 2015-01-07 16:38 CET
127 - work on POD
128 - change how resource handlers are called
129 - start adapting the resource handlers (WIP)
130 - debug Resources.pm (WIP)
131
132 0.20 2015-01-07 21:43 CET
133 - Resource.pm: call resource targets twice (once to determine resource
134 existence and a second time - as part of response generation - to get the
135 status)
136 - Dispatch.pm: adapt 'bugreport' and 'docu/..' resources to the latest change
137 in how resource targets are called
138
139 0.21 2015-01-08 09:49 CET
140 - add t/2xx/200-OK.t
141 - Dispatch.pm, Resource.pm: fix post_is_create, create_path
142 - Test.pm, t/: add low-level 'llreq' routine; make req use it
143
144 0.211 2015-01-10 08:28 CET
145 - standardize terminology ("request entity" instead of "request body")
146 - remove 'forbidden' resource definition and handler: they are not
147 necessary to test 403 Forbidden response
148 - add new modules that override 'forbidden' and 'is_authorized' methods
149 and associated unit tests
150 - work on POD
151 - clarify how resource_exists is supposed to work and adapt 'handler_test'
152 - Resource.pm: remove bogus forbidden handling code, clean up
153 'known_content_type', push content type onto context; add
154 'web_machine_metadata' accessor; work on process_post method
155
156 0.212 2015-01-12 09:01 CET
157 - Resource.pm: add 'documentation' to hard-coded list of not-to-be-expanded
158 properties
159 - Test.pm: make 'llreq' handle headers argument properly, including assigning
160 default headers if no arguments are provided
161 - t/: adapt tests in 2xx, 4xx, and 5xx to current code state
162
163 0.213 2015-01-12 16:00 CET
164 - config/: define resources in a site, rather than meta, config file
165 - MANIFEST: fix omissions
166 - Dispatch.pm: fix 'handler_echo'
167 - t/method_not_allowed_override.t: broken unit - skip it for now
168
169 0.214 2015-01-12 19:37 CET
170 - Resource.pm: split off init_router stuff into a separate module
171 - Test.pm: make req really use llreq; fix a warning
172
173 0.215 2015-01-13 08:53 CET
174 - Test.pm, t/: make initialize_unit take a PARAMHASH and prepare it to take a
175 sitedir option
176
177 0.216 2015-01-13 10:05 CET
178 - Resource.pm: split off "Web Services introduction" into a separate module
179 - MREST.pm: work on POD
180
181 0.217 2015-01-13 12:03 CET
182 - find and fix some lingering instances of 'request_body' (renamed to 'request_entity')
183 - t/dispatch/docu.t: 'documentation_format' property renamed to 'format'
184 - test suite running cleanly
185
186 0.218 2015-01-13 15:05 CET
187 - InitRouter.pm: take list of non-expandable properties from a config param
188 - MREST.pm: make 'init' take 'sitedir' property instead of inappropriately
189 named 'path'
190 - t/method_not_allowed_override.t: revive the unit
191
192 0.219 2015-01-14 06:20 CET
193 - dispatch_Config.pm: add 'docu/text' resource
194 - Dispatch.pm: resource handlers now called with ordinal number of pass - adapt
195 and clean up; make 'handler_param_get' handle second pass properly; in
196 'handler_docu', return 400 if request entity missing, improve error explanations;
197 adapt 'handler_echo' to current state
198 - Util.pm: fix a glaring oversight
199
200 0.220 2015-01-14 16:43 CET
201 - Build.PL, bin/mrest: use Plack::Middleware::LogErrors to redirect psgix.error
202 to our logger object
203 - Resource.pm: use the new 'get_acceptable_content_type_handler' method from
204 https://github.com/stevan/webmachine-perl/pull/32
205
206 0.221 2015-01-15 09:14 CET
207 - Dispatch.pm: have only one handler for all 'param/...' requests
208 - Resource.pm: add accessor for declared status code; add methods for running
209 request handler and response generator; make request handler call the
210 response generator; properly handle empty requests in request handler;
211 process_post just calls the _run_request_handler method; remove deprecated
212 web_machine_metadata method
213
214 0.222 2015-01-15 16:14 CET
215 - Resource.pm: clarify possible return values from request handler and response
216 generator; rearrange various routines so the order in which they appear in the
217 source file matches more closely the order in which requests propagate through
218 the FSM
219
220 0.223 2015-01-16 08:09 CET
221 - split off Entity.pm from Resource.pm
222 - MREST.pm: work on POD
223 - Resource.pm: provide a means to muffle debug-level log messages;
224 start organizing methods according to which "part" of the FSM they
225 belong to; move _make_json to Util.pm
226
227 0.224 2015-01-16 09:36 CET
228 - Entity.pm: add boilerplate
229 - Resource.pm: make 'context' initialize the context property, if needed, even
230 when called as an accessor; do not decode_utf8 the path_info for now
231 - Util.pm: use and export $JSON singleton; comment out 'make_json' routine as
232 it might not be needed
233
234 0.225 2015-01-16 11:28 CET
235 - dispatch_Config.pm, Dispatch.pm: allow DELETE method on 'param/...' resource
236 - Entity.pm: implement get_acceptable_content_type_handler method for which
237 patch is pending upstream; rationalize PUT/POST request processing
238 - Resource.pm: streamline process_post
239
240 0.226 2015-01-16 14:26 CET
241 - MREST_Config.pm: remove MREST_CONTENT_TYPES_PROVIDED
242 - Entity.pm: rename _render_response_html -> mrest_generate_response_html;
243 rename _render_response_json -> mrest_generate_response_json; add
244 generic mrest_generate_response method
245
246 0.227 2015-01-16 14:35 CET
247 - Resource.pm: include entity in responses to DELETE requests
248
249 0.228 2015-01-16 14:58 CET
250 t/dispatch/param.t: add test cases for 'param/...' resource
251
252 0.229 2015-01-16 15:33 CET
253 - Resource.pm: make declared status be an App::CELL::Status object
254 from the very beginning - this simplifies finish_request
255 - t/: adapt tests
256
257 0.230 2015-01-16 15:46 CET
258 - Resource.pm: make mrest_declare_status optionally take a ready-made
259 App::CELL::Status object
260
261 0.231 2015-01-16 16:02 CET
262 - t/dispatch/noop.t: add test cases for 'noop' resource
263 - dispatch_Config.pm: cleanup
264 - Dispatch.pm: fix up the 'handler_noop' method
265
266 0.232 2015-01-16 22:00 CET
267 - Dispatch.pm, t/dispatch/version.t: add handler and test cases for the
268 'version' resource
269 - MREST.pm: add a 'version' method to provide access to $VERSION package variable
270
271 0.233 2015-01-18 16:19 CET
272 - bring in CLI from App::Dochazka::CLI (0.076)
273
274 0.234 2015-01-18 23:09 CET
275 - dispatch_Config.pm: fix 'param/..' resource definition; make root handler
276 be 'handle_noop'
277 - InitRouter.pm: work on POD; find some kind of weird race condition - needs
278 a closer look
279
280 0.235 2015-01-20 07:22 CET
281 - Build.PL: add Web::MREST::CLI::Parser module directory and move
282 CLI configuration files to it
283 - bin/mrest-cli: re-enable logging, add some print statements for
284 better orientation, change prompt to Web::MREST::CLI::Parser
285 - config_cli/: log to mrest-cli.log in home directory
286 - CLI/UserAgent.pm: add some comments
287 - InitRouter.pm: add debug log messages
288
289 0.236 2015-01-20 17:53 CET
290 - Resource.pm, InitRouter.pm: get root resource to work
291 - t/dispatch/root_resource.t: tests for the root resource
292
293 0.237 2015-01-26 15:51 CET
294 - Test.pm: do not add content-length in llreq
295 - MREST.pm: work on POD
296 - bin/mrest-cli: load config parameters only once
297
298 0.238 2015-01-28 18:04 CET
299 - Build.PL, config/: consolidate server and CLI configuration files
300 - implement new 'configinfo' resource for displaying contents of
301 CELL_META_SITEDIR_LIST
302
303 0.239 2015-01-29 09:57 CET
304 - define root resource in (almost) the same way as all the other resources,
305 - the name of the root resource is '/'
306 - definitions of top-level resources must include parent => '/'
307
308 0.240 2015-01-29 14:42 CET
309 - Dispatch.pm: bring in resource definitions from dispatch_Config.pm,
310 and init_router function from InitRouter.pm
311 - eliminate all references to $meta->RESOURCES - this data is now stored in the
312 $resources package variable in InitRouter.pm
313 - remove obsoleted dispatch_Config.pm (integrate documentation into MREST.pm)
314 - t/: remove two units broken by this round of modifications
315
316 0.241 2015-01-29 17:43 CET
317 - 503.pm: add file needed for test
318 - Resource.pm: call init_router earlier
319
320 0.242 2015-01-30 07:50 CET
321 - CLI/UserAgent.pm: handle exceptions more gracefully
322
323 0.243 2015-02-02 10:11 CET
324 - bin/mrest: disable StackTrace by default since we are catching exceptions now
325 - bin/mrest-cli: tweak how responses are displayed
326 - InitRouter.pm: fix to handle case when a resource property is set to undef
327 - Resource.pm: when Web::Machine catches an exception, trigger a 500 and provide
328 a response entity with the text of the exception
329
330 0.244 2015-02-02 16:46 CET
331 - report HTTP method in declared statuses
332 - improve documentation of docu resource
333
334 0.245 2015-02-02 21:24 CET
335 - Resource.pm: add explicit 'create_path_after_handler' method
336
337 0.246 2015-02-03 07:24 CET
338 - Entity.pm: declare status when response generator is not OK
339 - InitRouter.pm: tweak log messages
340
341 0.247 2015-02-04 17:55 CET
342 - Resource.pm: be careful that create_path always returns a string
343
344 0.248 2015-02-11 10:18 CET
345 - Resource.pm: add 'nullify_declared_status' method
346
347 0.249 2015-02-11 14:04 CET
348 - Entity.pm: insert Location header only if resource does not exist
349 - Test.pm: put Location header in return value (App::CELL::Status object) so we
350 can test for it
351 - t/dispatch/param.t: test for correct response code (201 or 200) and Location
352 header in PUT requests that create/modify a resource; add more test cases
353
354 0.250 2015-02-12 07:32 CET
355 - InitRouter.pm: make debug message more useful
356
357 0.251 2015-02-12 09:19 CET
358 - CLI/UserAgent.pm: use URI::Escape to escape % characters
359 - Resource.pm: make 'mrest_declare_status' take optional 'args' property
360 so we can specify explanation as a message code
361
362 0.252 2015-02-16 21:45 CET
363 - InitRouter.pm: expand list of non-expandable properties
364
365 0.253 2015-02-17 18:25 CET
366 - MREST.pm: prep POD for release (WIP)
367 - CLI/Parser.pm: enable root resource
368 - MREST/Dispatch.pm: eliminate setting of 'resource_exists' in the response
369 generator as I am not sure if this is useful (needs more investigation)
370
371 0.254 2015-02-18 07:06 CET
372 - MREST.pm: mention 'curl' in SYNOPSIS
373 - Entity.pm: handle possible \415 from get_acceptable_content_type_handler
374 - Resource.pm: do not return scalar refs from 'process_post'
375
376 0.255 2015-02-18 07:25 CET
377 - MREST.pm: work on POD; fix syntax error
378
379 0.256 2015-02-18 08:44 CET
380 - implement normalize_filespec (in Util.pm) and use it to convert relative
381 paths to absolute
382 - eliminate all references to %ENV (for portability)
383
384 0.257 2015-02-18 16:46 CET
385 - work on POD
386
387 0.258 2015-02-21 08:09 CET
388 - CLI/UserAgent.pm: add 'http_code' property to return status object
389
390 0.259 2015-02-21 18:59 CET
391 - Resource.pm: make 'known_content_type' tolerate undefined/empty content type
392
393 0.260 2015-04-06 13:42 CEST
394 - Resource.pm: mrest_declare_status method could nominally take an
395 App::CELL::Status object, but this functionality was not tested and, of
396 course, didn't work properly -> fix
397
398 0.261 2015-04-06 14:59 CEST
399 - Resource.pm: refactor 'mrest_declared_status_code' accessor, add
400 'mrest_declared_status_explanation' and 'declared_status' accessors
401 - t/mrest_declared_status.t: add unit tests
402
403 0.262 2015-04-13 09:35 CEST
404 - tweak dependencies in an attempt to fix 'Can't locate object method "create"
405 via package "Plack::Test"' error in certain smoke tests
406
407 0.263 2015-04-13 10:06 CEST
408 - stop generating massive README, replace it with link to metacpan.org
409
410 0.264 2015-07-04 19:03 CEST
411 - bin/mrest: take local sitedir as a third argument
412
413 0.265 2015-07-04 19:59 CEST
414 - bin/mrest: really load the local site configuration directory
415
416 0.266 2015-07-04 20:17 CEST
417 - MREST.pm: make init() honor all parameters, instead of just one
418
419 0.267 2015-07-13 09:42 CEST
420 - Test.pm: make initialize_unit() more verbose
421
422 0.268 2015-07-13 09:45 CEST
423 - tweak release scripts
424
425 0.269 2015-07-16 11:45 CEST
426 - bin/mrest-cli: fix version number
427
428 0.270 2015-07-16 11:48 CEST
429 - Test.pm: make is_deeply check handle case when the value is undef?
430
431 0.271 2015-07-21 19:36 CEST
432 - Update copyright statement to 2015
433 - set $VERSION in top-level module only
434 - new release script
435
436 0.272 2015-07-22 14:42 CEST
437 - Make MREST_CLI_URI_BASE a meta param
438 - bin/mrest: take $VERSION from top-level module
439
440 0.273 2015-07-23 17:45 CEST
441 - Build.PL: require recent versions of LWP::UserAgent and LWP::Protocol::https
442 - No longer generate Makefile.PL
443 - UserAgent.pm: enable SSL connections
444
445 0.274 2015-07-25 11:49 CEST
446 - bin/mrest: use options instead of positional parameters
447 - release scripting modifications
448 - Build.PL: make LWP::Protocol::https a BuildRequires as well as a Requires
449
450 0.275 2015-07-26 21:21 CEST
451 - Add missing "use Pod::Usage" to bin/mrest
452 - Entity.pm: declare error statuses properly in mrest_generate_response_json()
453 (fixes Github issue #6)
454 - CLI/UserAgent.pm: in send_req(), be more careful when modifying the response
455 - Build.PL: add Cwd and File::Basename to BuildRequires
456 - bin/mrest-standalone: add wrapper for starting server in standalone mode
457 - update documentation of standalone mode in MREST.pm
458
459 0.276 2015-07-27
460 - Include descriptive text with DISPATCH_VERSION and MREST_CLI_SERVER_ERROR message codes
461 - Build.PL, MANIFEST.SKIP: release scripting modifications
462 - Test.pm: change diag() to note() in initialize_unit()
463
464 0.277 2015-07-28 17:09 CEST
465 - finish splitting off Web::MREST::CLI into a separate distro
466 - bin/mrest: import normalize_filespec() from Web::MREST::CLI::UserAgent
467 - Util.pm: drop normalize_filespec(); has been moved to Web::MREST::CLI
468 - lib/Web/MREST/: drop entire CLI/ subtree (just two files, actually)
469 - config/: drop all CLI-related files and keep server-related ones
470 - Build.PL: require Web::MREST::CLI >= 0.276
471
472 0.278 2015-07-30 14:29 CEST
473 - Early debugging feature
474 - MREST.pm: do not call $CELL->load() with debug_mode param
475 - bin/mrest: import normalize_filespec() from Web::MREST::CLI
476
477 0.279 2015-07-30 14:36 CEST
478 - bin/mrest: fix a silly typo
479
480 0.280 2015-08-05 15:35 CEST
481 - MREST.pm->init(): be more careful about early debugging filespec provided
482 by user
483
484 0.281 2015-07-11 12:07 CET
485 - config/: rename messages that might clash with application
486 - global: do not convert warnings into errors
487 - tests: use Test::Warnings to check for unexpected warnings
488 - update release and prerelease scripts
489
490 0.282 2016-01-02 01:17 CET
491 - bin/mrest: call app's init() function if it exists
492
493 0.283 2016-08-24 10:08 CET
494 - Display application module in HTML header, not Web::MREST
495 - add POD caveat: request entity not available until 2nd handler pass
496 - release.sh: automate attachment of version number to OBS commit
497
498 0.284 2016-07-31 20:07 CET
499 - Dispatch.pm: fix POD on _first_pass_always_exists
500 - bin/mrest: drop deprecated comments
501 - bin/mrest: document how to pass arguments to Plack::Runner
502
503 0.285 2016-09-05 09:02 CEST
504 - bin/mrest: comment out a useless message
505 - Travis CI
506 - Merge README files into single README.rst
507 - Add helper files for release automation scripting
508
509 0.286 2016-09-24 14:35 CEST
510 - Drop deprecated local release scripts
511 - cleanup: drop unused _get_sharedir() argument in bin/mrest
512 - cleanup: fix copyright header in bin/mrest
513 - Add get_session() function to Util.pm
514
515 0.287 2017-02-25 09:38 CET
516 - Refrain from munging Plack::Session object
517 - script: store sessions in a dedicated directory in /tmp
518
519 0.288 2017-10-16 22:17 CEST
520 - build/ops: require latest App::CELL
521 - Report MREST_DEBUG_MODE setting at startup
522
523 0.289 2022-06-29 14:46 CEST
524 - cleanup: tweak whitespace in copyright notices
525 - bootstrap: add (hopefully self-explanatory) bootstrap scripts
526 - doc: Web/MREST.pm: fix error in POD
527 - lib: update copyright year range in source files
528 - doc: MREST.pm: point readers to CLI documentation
529
530 0.290 2022-06-29 14:49 CEST
531 - MANIFEST.SKIP: do not include bootstrap scripts in Perl distro
532