<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -94,11 +94,11 @@ Net::Jabber::Bot - Automated Bot creation with safeties
 
 =head1 VERSION
 
-Version 2.1.2
+Version 2.1.3
 
 =cut
 
-our $VERSION = '2.1.2';
+our $VERSION = '2.1.3';
 
 =head1 SYNOPSIS
 </diff>
      <filename>lib/Net/Jabber/Bot.pm</filename>
    </modified>
    <modified>
      <diff>@@ -1,45 +1,52 @@
 #!perl -T
 
-use Test::More tests =&gt; 7;
-use Test::NoWarnings;
+BEGIN {
+    use Test::More;
+
+    # Author tests - requires Config::Std
+    plan skip_all =&gt; &quot;\$ENV{AUTHOR} required for these tests&quot; if(!defined $ENV{AUTHOR});
+    eval &quot;use Config::Std&quot;;
+    plan skip_all =&gt; &quot;Optional Module Config::Std Required for these tests&quot; if($@);
+}
+
 use Net::Jabber::Bot;
 use Log::Log4perl qw(:easy);
-
-SKIP:{
-    skip &quot;Set 'AUTHOR' and have a valid t/test_Config.cfg file&quot;, 6 unless(defined $ENV{AUTHOR});
-
-    
-    # Load config file.
-    use Config::Std; # Uses read_config to pull info from a config files. enhanced INI format.
-    my $config_file = 't/test_config.cfg';
-    my %config_file_hash;
-    ok((read_config($config_file =&gt; %config_file_hash)), &quot;Load config file&quot;);
-
-    my $alias = 'make_test_bot';
-    my $loop_sleep_time = 5;
-    my $server_info_timeout = 5;
-
-    my %forums_and_responses;
-    $forums_and_responses{$config_file_hash{'main'}{'test_forum1'}} = [&quot;jbot:&quot;, &quot;&quot;];
-    $forums_and_responses{$config_file_hash{'main'}{'test_forum2'}} = [&quot;notjbot:&quot;];
-
-    my $bot = Net::Jabber::Bot-&gt;new(
-        server =&gt; $config_file_hash{'main'}{'server'}
-        , conference_server =&gt; $config_file_hash{'main'}{'conference'}
-        , port =&gt; $config_file_hash{'main'}{'port'}
-        , username =&gt; $config_file_hash{'main'}{'username'}
-        , password =&gt; $config_file_hash{'main'}{'password'}
-        , alias =&gt; $alias
-        , forums_and_responses =&gt; \%forums_and_responses
+use Test::NoWarnings;  # This breaks the skips in CPAN.
+# Otherwise it's 7 tests
+plan tests =&gt; 7;
+
+# Load config file.
+use Config::Std; # Uses read_config to pull info from a config files. enhanced INI format.
+my $config_file = 't/test_config.cfg';
+my %config_file_hash;
+ok((read_config($config_file =&gt; %config_file_hash)), &quot;Load config file&quot;)
+    or die(&quot;Can't test without config file $config_file&quot;);
+
+my $alias = 'make_test_bot';
+my $loop_sleep_time = 5;
+my $server_info_timeout = 5;
+
+my %forums_and_responses;
+$forums_and_responses{$config_file_hash{'main'}{'test_forum1'}} = [&quot;jbot:&quot;, &quot;&quot;];
+$forums_and_responses{$config_file_hash{'main'}{'test_forum2'}} = [&quot;notjbot:&quot;];
+
+my $bot = Net::Jabber::Bot-&gt;new(
+    server =&gt; $config_file_hash{'main'}{'server'}
+    , conference_server =&gt; $config_file_hash{'main'}{'conference'}
+    , port =&gt; $config_file_hash{'main'}{'port'}
+    , username =&gt; $config_file_hash{'main'}{'username'}
+    , password =&gt; $config_file_hash{'main'}{'password'}
+    , alias =&gt; $alias
+    , forums_and_responses =&gt; \%forums_and_responses
     );
 
-    isa_ok($bot, &quot;Net::Jabber::Bot&quot;);
+isa_ok($bot, &quot;Net::Jabber::Bot&quot;);
+
+ok(defined $bot-&gt;Process(), &quot;Bot connected to server&quot;);
+sleep 5;
+ok($bot-&gt;Disconnect() &gt; 0, &quot;Bot successfully disconnects&quot;); # Disconnects
+is($bot-&gt;Disconnect(), undef,  &quot;Bot fails to disconnect cause it already is&quot;); # If already disconnected, we get a negative number
+
+eval{Net::Jabber::Bot-&gt;Disconnect()};
+like($@, qr/^\QCan't use string (&quot;Net::Jabber::Bot&quot;) as a HASH ref while &quot;strict refs&quot; in use\E/, &quot;Error when trying to disconnect not as an object&quot;);    
 
-    ok(defined $bot-&gt;Process(), &quot;Bot connected to server&quot;);
-    sleep 5;
-    ok($bot-&gt;Disconnect() &gt; 0, &quot;Bot successfully disconnects&quot;); # Disconnects
-    is($bot-&gt;Disconnect(), undef,  &quot;Bot fails to disconnect cause it already is&quot;); # If already disconnected, we get a negative number
-    
-    eval{Net::Jabber::Bot-&gt;Disconnect()};
-    like($@, qr/^\QCan't use string (&quot;Net::Jabber::Bot&quot;) as a HASH ref while &quot;strict refs&quot; in use\E/, &quot;Error when trying to disconnect not as an object&quot;);    
-}</diff>
      <filename>t/03-test_connectivity.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>34f4cfe280ff7d699a76f486de8479391b54348e</id>
    </parent>
  </parents>
  <author>
    <name>todd.e.rinaldo</name>
    <email>todd.e.rinaldo@0a4183e2-4043-0410-8c03-cd5d52198443</email>
  </author>
  <url>http://github.com/toddr/perl-net-jabber-bot/commit/efe7486fc3f281830fe553cc531f7b55ab1d6f0c</url>
  <id>efe7486fc3f281830fe553cc531f7b55ab1d6f0c</id>
  <committed-date>2009-06-02T16:30:26-07:00</committed-date>
  <authored-date>2009-06-02T16:30:26-07:00</authored-date>
  <message>t/03-test_connectivity.t  failing if Config::Std not available on host</message>
  <tree>288bef2f219364ff5e1809aed312debd44697e09</tree>
  <committer>
    <name>todd.e.rinaldo</name>
    <email>todd.e.rinaldo@0a4183e2-4043-0410-8c03-cd5d52198443</email>
  </committer>
</commit>
