OSDN Git Service

POE version dependency drop (related ticket: #19294, #19079)
authorishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 6 Nov 2009 20:34:44 +0000 (20:34 +0000)
committerishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 6 Nov 2009 20:34:44 +0000 (20:34 +0000)
ChangeLog
Makefile.PL
doc/environment.html
keitairc
t/00_required_modules.t

index dd81be6..d145661 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-07  ISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
+       * keitairc, Makefile.PL, t/00_required_modules.t, doc/environment.html:
+         check 'POE have the has_forked method' before call it, so POE version
+         dependency is now not needed. POE version check and documentation
+         update.
+
 2009-10-22  ISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
        * Makefile.PL, t/00_required_modules.t, doc/environment.html:
          Check/Describe POE version (require 1.007 or later)
index 791424a..9a5ccb4 100644 (file)
@@ -1,5 +1,5 @@
 # -*-perl-*-
-# $Id: Makefile.PL,v 1.7 2009-10-22 11:28:15 ishikawa Exp $
+# $Id: Makefile.PL,v 1.8 2009-11-06 20:34:44 ishikawa Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/Makefile.PL,v $
 
 use 5.8.0;
@@ -17,7 +17,7 @@ WriteMakefile(
        AUTHOR => 'Jun Morimoto <morimoto@mrmt.net>',
        LICENSE => 'GPL2',
        PREREQ_PM => {
-               'POE' => "1.007",
+               'POE' => 0,
                'POE::Component::Server::TCP' => 0,
                'POE::Filter::HTTPD' => 0,
                'POE::Component::IRC' => 0,
index 3c1c99b..48f1e0b 100644 (file)
@@ -53,7 +53,7 @@
     </p>
 
     <ul>
-      <li>POE (バージョン 1.007 以上)</li>
+      <li>POE</li>
       <li>POE::Component::Server::TCP</li>
       <li>POE::Filter::HTTPD</li>
       <li>POE::Component::IRC</li>
index 2e27aef..d18ebb7 100755 (executable)
--- a/keitairc
+++ b/keitairc
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # -*- mode: perl; coding: utf-8 -*-
 # keitairc
-# $Id: keitairc,v 1.75 2009-10-21 14:35:50 matusita Exp $
+# $Id: keitairc,v 1.76 2009-11-06 20:34:44 ishikawa Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/keitairc,v $
 #
 # Copyright (c) 2003-2008 Jun Morimoto <morimoto@mrmt.net>
@@ -15,7 +15,7 @@
 #    Depends: libxml-simple-perl
 
 use Encode;
-use POE 1.007;
+use POE;
 use POE::Filter::HTTPD;
 use POE::Component::IRC;
 use POE::Component::Server::TCP;
@@ -52,7 +52,7 @@ if($cf->daemonize()){
                        close(PID);
                }
        }
-       $poe_kernel->has_forked;
+       $poe_kernel->has_forked if ($poe_kernel->can(has_forked));
 }
 
 # create irc component
index bbd93ac..0ba5ce2 100644 (file)
@@ -1,5 +1,5 @@
 # -*- mode: perl; coding: utf-8 -*-
-# $Id: 00_required_modules.t,v 1.2 2009-10-22 11:28:15 ishikawa Exp $
+# $Id: 00_required_modules.t,v 1.3 2009-11-06 20:34:44 ishikawa Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/t/00_required_modules.t,v $
 # Copyright (c) 2003-2008 Jun Morimoto <morimoto@mrmt.net>
 # This program is covered by the GNU General Public License 2
@@ -12,7 +12,7 @@ use lib "$FindBin::Bin/../lib";
 # check required modules
 use_ok('AppConfig');
 use_ok('Encode');
-use_ok('POE 1.007');
+use_ok('POE');
 use_ok('POE::Filter::HTTPD');
 use_ok('POE::Component::IRC');
 use_ok('POE::Component::Server::TCP');