Permalink
Browse files

move to github

  • Loading branch information...
0 parents commit b351b18cc24b63381ec553a2015a19ad96e736a6 Tomohiro Ikebe committed Apr 1, 2013
Showing with 6,402 additions and 0 deletions.
  1. +4 −0 .cvsignore
  2. +280 −0 Changes
  3. +14 −0 INSTALL
  4. +13 −0 LICENSE
  5. +114 −0 MANIFEST
  6. +17 −0 MANIFEST.SKIP
  7. +38 −0 META.yml
  8. +60 −0 Makefile.PL
  9. +10 −0 README
  10. +30 −0 TODO
  11. +41 −0 bin/sledge-setup
  12. +19 −0 eg/cpan_install.pl
  13. +29 −0 eg/prereq-modules
  14. +93 −0 eg/session-bench.pl
  15. +23 −0 eg/sessions-pg.sql
  16. +6 −0 eg/sessions.sql
  17. +5 −0 eg/sledge-conf.pl
  18. +12 −0 eg/sledge.conf
  19. +1 −0 lib/.cvsignore
  20. +54 −0 lib/Sledge.pm
  21. +20 −0 lib/Sledge/Authorizer.pm
  22. +16 −0 lib/Sledge/Authorizer/Null.pm
  23. +22 −0 lib/Sledge/Charset.pm
  24. +15 −0 lib/Sledge/Charset/Default.pm
  25. +25 −0 lib/Sledge/Charset/Null.pm
  26. +31 −0 lib/Sledge/Charset/Shift_JIS.pm
  27. +39 −0 lib/Sledge/Charset/UTF8.pm
  28. +112 −0 lib/Sledge/Config.pm
  29. +15 −0 lib/Sledge/Constants.pm
  30. +369 −0 lib/Sledge/Doc/FAQ.pod
  31. +60 −0 lib/Sledge/Doc/Hooks.pod
  32. +107 −0 lib/Sledge/Doc/Install.pod
  33. +87 −0 lib/Sledge/Doc/Overview.pod
  34. +174 −0 lib/Sledge/Doc/Tutorial.pod
  35. +58 −0 lib/Sledge/Exception.pm
  36. +103 −0 lib/Sledge/Exceptions.pm
  37. +56 −0 lib/Sledge/FillInForm.pm
  38. +27 −0 lib/Sledge/Install.pm
  39. +139 −0 lib/Sledge/Install/Stub.pm
  40. +21 −0 lib/Sledge/Pages/Apache.pm
  41. +252 −0 lib/Sledge/Pages/Base.pm
  42. +20 −0 lib/Sledge/Pages/CGI.pm
  43. +21 −0 lib/Sledge/Pages/Compat.pm
  44. +15 −0 lib/Sledge/Registrar.pm
  45. +107 −0 lib/Sledge/Request/CGI.pm
  46. +59 −0 lib/Sledge/Request/Table.pm
  47. +90 −0 lib/Sledge/Request/Upload.pm
  48. +150 −0 lib/Sledge/Session.pm
  49. +71 −0 lib/Sledge/Session/DBI.pm
  50. +31 −0 lib/Sledge/Session/DBIFactory.pm
  51. +113 −0 lib/Sledge/Session/File.pm
  52. +46 −0 lib/Sledge/Session/MySQL.pm
  53. +60 −0 lib/Sledge/Session/Pg.pm
  54. +37 −0 lib/Sledge/Session/SQLite.pm
  55. +52 −0 lib/Sledge/SessionManager.pm
  56. +105 −0 lib/Sledge/SessionManager/Any.pm
  57. +34 −0 lib/Sledge/SessionManager/Cookie.pm
  58. +79 −0 lib/Sledge/SessionManager/Null.pm
  59. +38 −0 lib/Sledge/SessionManager/Rewrite.pm
  60. +64 −0 lib/Sledge/SessionManager/StickyQuery.pm
  61. +109 −0 lib/Sledge/Template.pm
  62. +62 −0 lib/Sledge/Template/TT.pm
  63. +25 −0 t/00_compile.t
  64. +21 −0 t/01_testproj.t
  65. +86 −0 t/02_template.t
  66. +38 −0 t/03_fillinform.t
  67. +21 −0 t/04_testproj_cgi.t
  68. +51 −0 t/05_request_cgi.t
  69. +9 −0 t/10_constant.t
  70. +62 −0 t/11_hooks.t
  71. +13 −0 t/16_compat.t
  72. +82 −0 t/18_redirect.t
  73. +31 −0 t/19_host.t
  74. +24 −0 t/21_request_uri.t
  75. +30 −0 t/22_session.t
  76. +94 −0 t/23_session-mysql.t
  77. +36 −0 t/26_guess_filename.t
  78. +31 −0 t/27_request_table.t
  79. +52 −0 t/28_add_header.t
  80. +61 −0 t/29_cyclic_ref.t
  81. +33 −0 t/30_redirect_twice.t
  82. +95 −0 t/30_upload.t
  83. +72 −0 t/31_tmpl_assoc_ns.t
  84. +104 −0 t/32_session-pg.t
  85. +36 −0 t/33_cgi_redirect.t
  86. +19 −0 t/34_livingdead.t
  87. +96 −0 t/35_session-sqlite.t
  88. +37 −0 t/36_guess.t
  89. +33 −0 t/37_send_http_header.t
  90. +36 −0 t/38_expired.t
  91. +38 −0 t/39_fillpw.t
  92. +54 −0 t/40_output_hook.t
  93. +39 −0 t/41_ignore_fields.t
  94. +54 −0 t/42_tt.t
  95. +50 −0 t/43_tt_import.t
  96. +44 −0 t/44_tt_hook.t
  97. +31 −0 t/45_tt_include.t
  98. +51 −0 t/46_context.t
  99. +33 −0 t/47_exception.t
  100. +75 −0 t/48_session_manager.t
  101. +30 −0 t/49_content-length.t
  102. +57 −0 t/50_content_filter.t
  103. +59 −0 t/51_sticky_query.t
  104. +54 −0 t/52_rewrite_query.t
  105. +75 −0 t/53_sessionmanager_any.t
  106. +60 −0 t/54_sessionfile.t
  107. +56 −0 t/55_session_factory.t
  108. +38 −0 t/56_sessionmanager_null.t
  109. +32 −0 t/57_template_ref.t
  110. +32 −0 t/58_charset_utf8.t
  111. +3 −0 t/baz.html
  112. +111 −0 t/lib/Sledge/TestPages.pm
  113. +3 −0 t/template/foo.html
  114. +3 −0 t/template/include1.html
  115. +1 −0 t/template/include2.html
  116. +2 −0 t/template/name.html
  117. +3 −0 t/template/ns1.html
  118. +3 −0 t/template/sticky_test.html
  119. +3 −0 t/template/test.html
  120. +3 −0 t/template/test_baz.html
  121. +1 −0 t/template/unicode.html
  122. +2 −0 t/upload.txt
@@ -0,0 +1,4 @@
+blib
+Makefile
+pm_to_blib
+*.gz
@@ -0,0 +1,280 @@
+Revision history for Sledge
+$Id: Changes,v 1.14 2004/10/29 06:10:25 miyagawa Exp $
+
+1.12
+ * Added Session::DBIFactory (auto-dispatch of Session Driver)
+ * Added SessionManager::Null (Thanks to Masaki SEIKI)
+ * Fixed error message by Template::TT
+ - Added Encode::compat into prereq-modules (for Sledge::Charset::UTF8)
+ - Fixed warnings in various test files (Added no warnings 'redefine')
+ - Added no warnings 'redefine' before localizing context() in Pages::Base
+ - Added ref($input) test in Tempalte::TT (hayakawa)
+ it allows $self->tmpl->set_option(file => \$body);
+ - Generates dummy warnings.pm if $[ < 5.006 for no warnings thing
+ * Fixed Charset::UTF8 to encode/decode only when $] >= 5.006
+ * Added new hook: BEFORE_INIT (hayakawa)
+
+1.11 Tue Feb 24 17:47:56 JST 2004
+ - $TMPDIR �򥻥åȤ����ݤ� t/30_upload.t �����Ԥ���Τ��
+ (Thanks to Hiroyuki Kobayashi)
+ - Bundle::Sledge is now on CPAN
+ - Makefile.PL simplified
+ - CGI 2.47 and LWP added on PREREQ_PM
+ (Thanks to Masashi Seiki)
+ * [Bug Fix] SessionManager::Rewrite: ��󥢥������Υѥ�᡼����¸ (hanabusa)
+ - [Refactoring] move _prepare() from Session.pm to Session::DBI
+ - Added DESTROY { } in Request/CGI.pm
+ * Added Charset::UTF8
+ * [Bug Fix] SessionManager::Rewrite: ��󥢥��������Υ����꡼����¸���ʤ��Х���� (hanabusa)
+ * Added Sledge::Session::File
+ * Added Sledge::SessionManager::Any
+
+1.10 Fri Feb 13 15:59:13 JST 2003
+ * Open Source Release!
+ - Sledge/Hammer.pm => Sledge.pm
+ - Edge::Config => Sledge::Config
+
+1.08 (Unreleased)
+ * [new API] add_filter(), filters() �ɲ�
+ ����ƥ�Ĥ˥ե��륿��󥰤�Ԥ����֥������ȥ᥽�å�
+ * SessionManager::StickyQuery: mod_rewrite ����Ѥ��ʤ� SessionManager
+ * Session: $Sledge::Session::SessionIdLength �ǥ��å����ID��Ĺ��������
+ * [Bug Fix] Session::Pg: "SELECT ... FOR UPDATE" ���ɲ� (toona)
+ * [Bug Fix] SessionManager::StickyQuery �Υѥ�᡼�����ΥХ����
+ * [Bug Fix] SessionManager::StickyQuery �� $SessionIdName �����Ѥ��ʤ��Х���� (toona)
+
+1.07 Fri Oct 25 15:47:44 JST 2002
+ * Session: cleanup() ���饹�᥽�å��ɲ�
+ * Session::Pg �� _do_cleanup ���� (ikebe)
+ * Content-Length ����Ϥ��� set_content_length �᥽�å��ɲ�
+ * [Bug Fix] Session: expire() �� LOCK �������ʤ��Х���� (ikebe)
+ - Template::TT: hook ����롣Plugin::Mail �Ǥ� config/r/session ���Ϥ�褦�� (hanabusa)
+ - SessionManager::Rewrite: sid=$sid ��ѥ�����Ƭ�ˤĤ���褦�� (dos, hideoki)
+ - [Minor] Pages::Base: �ƥ�ץ졼�Ȥ����Ĥ���ʤ��ݤΥ��顼���
+ - SessionManager::Rewrite: sid= ���ѹ���ǽ�� ($SessionIdName �ѿ�) (dos)
+ * Charset::Default: s/x-euc-jp/euc-jp/
+ - Sledge::Pages ���
+
+1.06 Tue Aug 27 21:37:12 JST 2002
+ * Template::TT: TMPL_PATH �� . �� INCLUDE_PATH �˥ǥե���Ȥǥ��å�
+ * [developer API change]
+ Sledge::Exceptions �ɲ�
+ ���٤ƤΥ��饹�� Exception ����Ѥ���褦���ѹ�
+ * [implementation change]
+ Session::DBI �� connect �� �� mod_perl ���Ǥ� connect_cached ���ѹ�
+ - Exception::DeprecatedMethod ���ɲ�
+ - do_redirect() �᥽�åɤ� Deprecated ��
+ * Request::CGI: status() ���ɲá�Status: �إå����Ϥ���
+ * [Bug Fix] mod_perl ��200 OK ��������
+ send_content() �� Deprecated �ˤ���make_content() ���ɲ�
+ - Exception::Class ��Ȥ鷺 Error.pm �����Ѥ���
+ Exception ���饹�ɲ� (Error::Simple ��Ѿ�)
+ * Registrar ���饹 (placeholder) �ɲ�
+ Registrar->context �ˤƸ��߼¹���� Pages ���֥������Ȥ�����ǽ (hayakawa)
+ - perl 5.6.1, 5.8.0 �Ǥ� make test �̤�褦�˽��
+ - SessionManager: fixed typo (hanabusa)
+
+1.05 Fri Aug 16 20:27:47 JST 2002
+ - eg/sessions.sql: a_session �� mediumtext ��
+ * Install: Template::TT �� default ��
+ * Template::TT: core �ǥ��쥯�ȥ�˰�ư
+ * Template::TT: �ǥե���Ȥ� BEFORE_DISPATCH �եå�����Ͽ
+ r, config, session ��ƥ�ץ졼�Ȥ˥��åȤ���
+
+1.04 Wed Jun 19 21:35:28 JST 2002
+ * [Bug Fix] finished(1) �Ǥ� redirect ���� Bug ��� (ikebe)
+ * Session: current_url() �� session ����¸
+ * [new API] AFTER_OUTPUT hook �ɲ�
+ * FillInForm: ignore_fields ���б� (hanabusa)
+
+1.03 Sun Apr 28 03:41:46 JST 2002
+ * [Bug Fix]
+ finished �ʾ��֤Ǥ� post_dispatch_* ��¹Ԥ��Ƥ��ޤ� bug ��� (kurihara)
+ * [developer API change]
+ send_http_header �᥽�åɤ�����
+ * sub Sledge::Session::Expired::is_fresh { 0 } (kurihara)
+ * [Bug fix]
+ SessionManager::Rewrite �ǽ�Υ��������� QUERY_STRING ����¸
+ * Template::TT 0.04
+ create_template() override ɬ�פʤ�
+ * FillInForm: added $FillPassword variable for fill_password option
+
+1.02 Thu Mar 28 06:42:23 JST 2002
+ * refactoring Session code
+ * Added Session::SQLite (hayakawa, hideoki)
+ * guess_filename() �� /./ �� path �˴ޤ� bug ���
+ File::Spec->canonpath() ������
+
+1.01 Fri Mar 8 14:04:38 JST 2002
+ * Template: error message becomes friendly
+
+1.00 Wed Feb 27 18:42:26 JST 2002
+ * now it becomes completely stable.
+
+0.21 Wed Feb 27 18:36:23 JST 2002
+ * [API change] dispatch() ��λ��Υ᥽�åɤϤ��٤�̵��
+ * $self->load_fillin_form() if $self->is_post_request (milano, shohei, ats, hideoki)
+
+0.20 Mon Jan 28 23:50:56 JST 2002
+ - Session: security enhancement
+ SHA1, UNIQUE_ID, Time::HiRes ����Ѥ��� (hideoki)
+ sid_length() ��᥽�åɤ�
+ * Added SessionManager::Rewrite
+ - eg/sledge.conf: added rewrite sample
+ * Session: tweak
+ nfreeze for portablitity
+ dbh->disconnect() in expire()
+ use prepare_cached()
+ * Added Session::DBI, Session::Pg
+ - Added default attributes for MySQL and Pg
+ - Transaction support for Pg (ikebe)
+ * [Important Fix] Pages::CGI
+ redirect() �� Location �ʳ��Υإå�����Ϥ���ʤ��Х���� (kurihara)
+
+0.19 Sun Jan 13 19:12:52 JST 2002
+ * Added Sledge::Request::Upload
+ Adapter of Request::CGI for Apache::Upload
+ - Removed SessionManager::Cookie(Apache|CGI)
+ - Pages::Base: Added _destroy_me paranoia
+ * [API change] Template: associate_namespace()
+ * Added Sledge::Template::TT for Template-Toolkit
+ - [API change] Template: associate_namespace()
+ hashref ���Ϥ��Ƥ�Ʊ�ͤ�ư���
+
+0.18 Tue Jan 8 19:45:31 JST 2002
+ * [API change] deprecated after_dispatch, set_hook, copy_hooks
+
+0.17 Tue Jan 8 17:56:48 JST 2002
+ - Request::CGI: fixed bug in header_in()
+ * [API change] guess_filename �ΰ�� / �ǻϤޤ��硢���ۥѥ��Ȥ��ƽ���� (hideoki)
+ - Doc::FAQ: output_content()
+ - Carp::confess in ABSTRACT METHOD (hideoki)
+ - Template: r �� scalar context ��ɾ��
+ - guess_filename() �� . ��ޤ���� .html ���䴰���ʤ�
+ * Added Request::Table and tests for it
+ * [API change] Request::CGI::headers_out()
+ Request::Table ���֥������Ȥ��֤�
+ * [API change] Template �� delayedLoad ��
+ - load_template(): template ���ʤ����� null template
+ output() ���㳰��ȯ�����
+ * [Important Fix]
+ Charset, Authorizer, SessionManager: add new() stub code
+ - Added cyclic_ref.t to detect memory leak
+ * [API change] Template: (add|set)_option ���ɲ�
+ - cpan_install.pl: check if uid == 0 (shohei)
+
+0.16 Wed Dec 26 15:09:17 JST 2001
+ - Added t/22_session.t t/23_session-mysql.t
+ * Session refactoring
+ - Session �Υ��å������ SessionManager �˰�ư
+ * use Class::Trigger;
+ - removed Sledge::Pages::LoadHooks
+ * [API change] set_hook() API �ѻ�
+ - Pages::Compat ��ǥե���Ȥ����� (--pages ���ץ�����̵��)
+ - doc tweak
+ * Added eg/session-bench.pl
+ - $DEBUG removed
+
+0.15 Mon Dec 24 10:51:47 JST 2001
+ - r->header_in('Host') �ˤ�� HTTP �إå�����
+ Request::CGI �� header_in() �᥽�åɤ����
+ - Bug fix: Request::CGI::uri()
+ $ENV{REQUEST_URI} ���� Query String ��ä�
+ - SessionManager::CookieApache deprecated
+
+0.14 Thu Dec 20 21:11:45 JST 2001
+ - Config.pm: SLEDGE_CONFIG_NAME �����ꤵ��Ƥ�����ͥ��
+ - use Jcode in Charset::Shift_JIS (dos)
+ - Doc::FAQ: mod_perl �� Singleton �������򤹤���ˡ���ɵ�
+
+0.13 Mon Dec 10 16:00:18 JST 2001
+ * current_url() Bug fix
+ * [API change] redirect($url, $scheme) (shohei)
+ - Doc::FAQ update
+ - CGI->new({}) in test fix (shohei)
+
+0.12 Fri Nov 30 18:07:43 JST 2001
+ * [API change] session->expire �ɲ� (shohei)
+
+0.11 Wed Nov 28 16:37:26 JST 2001
+ * Log::Dispatch::Config ������
+ * Pages::Compat ���ɲ�
+ - Request::CGI �� method �ϥǥե����GET
+ * [API change] add output_content method
+
+0.10 Sat Nov 17 15:01:58 JST 2001
+
+0.09 Fri Nov 16 19:58:46 JST 2001
+ * Constants.pm �ɲ� (ikebe)
+ * Pages::LoadHooks �ɲ�
+ - after_dispatch �� deprecated method �ˤ���
+ - doc/hooks.pod �ɲ�
+
+0.08 Thu Nov 15 10:10:38 JST 2001
+ * Apache::Cookie �Ĥ���ʤ�
+ - added Charset::Shift_JIS
+ - SessionManager bugfix (fujiwara)
+ - Charset::Shift_JIS ��̾���ֽ��
+ - Pages::Apache �� param() ��ޤ��Ƥ� (fujiwara)
+ * before_dispatch �ɲ� (ikebe)
+
+0.07 Fri Nov 9 13:46:20 JST 2001
+ * Request::CGI �� uri() ���
+ $ENV{SCRIPT_URI} ������Ǥ��ʤ���硢HTTPS, HTTP_HOST, REQUEST_URI
+ ���������롣
+
+0.06 Fri Nov 9 13:12:45 JST 2001
+ * Request::CGI �� param() ���
+ $self->r->param(foo => [qw(bar baz)]);
+ �� Apache::Request ��Ʊ���褦��ư���褦�ˤ���
+ - test �ɲ�
+ * Charset::Shift_JIS �ɲ�
+
+0.05 Fri Oct 19 15:19:10 JST 2001
+ - faq.pod �� fobject �� undef �λ���ư����ɲ�
+ - faq.pod ���̥ǥ��쥯�ȥ�Υƥ�ץ졼�Ȥ��ɤߤ�����ˡ���ɲ�
+ * FillinForm �� fdat �ɲ�
+
+0.04 Wed Oct 10 14:06:35 JST 2001
+ - faq.pod �� FillInForm ���ܤ��ɲ�
+ - $self->r->print() ���ѻ�
+ - faq.pod �� upload/download ���ɲ�
+ - faq.pod �˥��å���������ɲ�
+ - faq.pod �� Cookie ���åȤ��ɲ�
+ - Authorizer �� bugfix (Class::Accessor)
+
+0.03 Mon Sep 17 17:38:42 JST 2001
+ - Request::CGI test ���ɲ�
+ - cpan_install.pl �˥⥸�塼���ɲ�
+ * Pages::{Base,Apache,CGI} ���ɲ�
+ - Pages �� thin wrapper ��
+ * Request::CGI ���ɲ� (shohei)
+ * SessionManager::Cookie{Apache,CGI} �ɲ�
+ - SessionManager::Cookie �� thin wrapper ��
+ * sledge-setup �� Getopt::Long ����
+ - cpan_install.pl �� eg/ ��
+
+0.02 Sun Sep 16 01:42:29 JST 2001
+ * faq.pod �� Template, FillInForm �ɲ�
+ * if POST �� load_fillin_form ��� (kobayasi)
+ * Template �ɲ�
+ * FillInForm �ɲ� (kobayasi)
+ - �嵭�� unit test �ɲ�
+ * ��ư���� Pages �� Config �Τ�
+ * ABSTRACT METHOD �� Carp::croak ��Ȥ��褦�ˤ���
+ * faq.pod �˥��å��������̵����ɲ�
+ * faq.pod �˥ȥ�֥륷�塼�ƥ����ɲ�
+ * faq.pod, TODO �� Config + Singleton ������ɲ�
+ * tutorial.pod �� Cookie �Ǥ� Authorize ������ɲ�
+ - Class::Virtual �˰�¸���ʤ� (kurihara)
+ * cpan_install.pl �� Class::Singleton �ɲ�
+ * $DEBUG �ɲ�
+ * shift �ʤ��� new() ��ư���褦�ˤ���
+ * t/01_testproj.t ���ɲ� (requires File::Temp)
+ * Config ���ѻ� (shohei)
+ * sledge-setup �ǥХå����åפ�Ĥ���褦��
+ * Document update
+ * eg/ �ǥ��쥯�ȥ���ɲ�
+
+0.01 Tue Sep 11 21:22:10 JST 2001
+ * First release
@@ -0,0 +1,14 @@
+$Id: INSTALL,v 1.2 2003/02/14 07:58:25 miyagawa Exp $
+
+必須CPAN モジュールのインストール
+
+# perl -MCPAN -e 'install Bundle::Sledge'
+
+Sledge 基本モジュール群のインストール
+
+% perl Makefile.PL
+% make
+% make test
+# make install
+
+インストール後に必要な作業は lib/Sledge/Doc/Install.pod を参照してください。
@@ -0,0 +1,13 @@
+Sledge
+
+Copyright 2001-2003, Livin' On The EDGE, Co., Ltd.
+All rights reserved.
+
+Sledge is free software; you can redistribute it and/or modify it
+under the terms of either:
+
+a) the GNU GPL Version 2
+b) the Perl Artistic License
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY.
Oops, something went wrong.

0 comments on commit b351b18

Please sign in to comment.