ASP4
view release on metacpan or search on metacpan
calling file. This goes for $Response->TrapInclude as well as <!-- #include virtual="..." -->
2011-11-05 1.059
- ASP4::API:
- No longer have to do this:
use ASP4::API;
my $api; BEGIN { $api = ASP4::API->new }
# Now load classes:
use MyApp::Foo;
- You can do this instead:
use ASP4::API;
use MyApp::Foo;
my $api = ASP4::API->new;
- Also no need for BEGIN { ASP4::API->init }
- Added requirement Data::Properties::JSON.
- JSON is a better format for test fixtures.
- YAML can still be used.
2011-10-31 1.058
- Added experimental deployment tools `asp4-prep` and `asp4-deploy`.
* asp4-prep does an `svn export` and then gzips the folder and prints the *.tar.gz filename.
* asp4-deploy decompresses the *.tar.gz, creates a symbolic link 'deploying'
to the new folder, copies the existing config files from latest/*/conf/*
(if it exists) or copies conf/*.template config files and renames them without
the *.template suffix. If a 'latest/*' folder was found, asp4-deploy will
run any unit tests found. If all tests pass, then 'deploying' is removed
and 'latest' is changed to point to the new folder.
- TODO: Add POD for asp4-prep and asp4-deploy. This is delayed until it's proven
that this is the correct way for onesie-twosie deployments.
2011-10-04 1.057
- Renamed @AppRoot@ macro to @ProjectRoot@ to avoid confusion with $Config->web->application_root
- Adjusted package declarations in some "stealth-mode" pm files because they have no POD yet.
2011-10-03 1.056
- Updated asphelper to include directives that disable mod_deflate and Apache2::Reload
for ASP4 websites. RayBaksh++
- This fixes the dreaded "This website uses an invalid form of compression" error
that you may have gotten after trying to $Response->Status(404) within an asp script.
- Added in-memory mock sessionstate handler for faster testing and easier installation.
2011-09-22 1.055
- Giving credit where credit is due :-)
- Erikdj++
- Added *experimental* memcached session storage backend.
2011-09-20 1.054
- Added @AppRoot@ macro for asp4-config.json. It is 1 folder "up" from @ServerRoot@.
- If your @ServerRoot@ is:
/home/bart/Projects/facebook/www
Then your @AppRoot@ is:
/home/bart/Projects/facebook
- Erikdj pointed out the need for the @AppRoot@ macro and suggested the (excellent) name. Thanks Erik!
2011-09-19 1.053
- Updated asphelper script to genenrate sample app conforming to new App::db::*
root namespace.
2011-09-19 1.052
[Bug Fixes]
- Blank lines in asp4-config.json no longer causes an exception to be thrown.
- Update documentation to reflect preference change from app::* to App::db::*
root namespace for database classes.
2011-08-14 1.051
[Bug Fixes]
- 'Redirect Loop' fixed! Under mod_perl, $context->send_headers() was not
called for non-200 http responses.
Now it is.
This means that if you had `return $Response->Redirect("/foo/")` in a RequestFilter
you may have gotten a "redirect loop" because although the '301 Moved' status
was set, the `location: /foo/` header was *not* set. This would result in
a redirect loop.
2011-07-11 v1.050
[Bug Fixes]
- v1.049 Caused script execution to cease after any $Response->Include or ssi
include finished.
- Upgrade required if you know what's good for you.
2011-07-09 v1.049
[Bug Fixes]
- v1.048 broke session cookies.
- Upgrade to v1.049 (quick).
2011-07-07 v1.048
[Bug Fixes]
- <% $Response->Status(404); return $Response->End; %> DID NOT WORK.
Instead it continued processing other ContentPlaceHolders. Now we check
to see if $Response->End was called before we process anything else.
- Still getting some "Content encoding error" messages from FF/Chrome/MSIE but
we're almost there.
2011-05-19 v1.047
[Bug Fixes]
- $Response->Expires("30M") wasn't documented. Now it is.
- $Response->Expires wasn't working properly. Now it is. (Always ended up with pre-epoch expiration times).
2011-05-03 v1.046
[Bug Fixes]
- $Response->Redirect(...) wasn't returning '301' - now it does.
2011-05-03 v1.045
[Bug Fixes]
- Actually it turned out that setting $Session->is_read_only(1) *DID* prevent
$Session->save() from working. This is now fixed to match the documentation.
2011-05-01 v1.044
[Bug Fixes]
- ASP4::ModPerl now does the Right Thing when a non-200 response is encountered.
- 500 response does not result in an "encoding error" in firefox.
- 200 (or 0 response) does the right thing.
- non-200 (and non-500) response does the right thing (eg: 401)
- ASP4::SessionStateManager now checks $s->is_changed *before* checking $s->{__lastMod} date
before deciding whether is should persist its changes in ->save().
[New Features]
- $Session->is_read_only(1) is new. Setting it to a true value (eg: 1) will prevent
the default behavior of calling $Session->save() at the end of each successful request.
( run in 1.573 second using v1.01-cache-2.11-cpan-39bf76dae61 )