App-RoboBot

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

share/migrations/revert/p-memos-20161128214110.sql
share/migrations/revert/p-net-http-20161128214753.sql
share/migrations/revert/p-net-urls-20161128224203.sql
share/migrations/revert/p-skills-20161128215019.sql
share/migrations/revert/p-skills-20161128231536.sql
share/migrations/revert/p-thinge-20161128223332.sql
share/migrations/revert/p-variables-20161128195027.sql
share/migrations/revert/p-voting-20161128224521.sql
share/migrations/sqitch.conf
share/migrations/sqitch.plan
share/migrations/verify/base.sql
share/migrations/verify/p-achievements-20161128144040.sql
share/migrations/verify/p-alarms-20161128153112.sql
share/migrations/verify/p-auth-20161128164909.sql
share/migrations/verify/p-autoreply-20161128171050.sql
share/migrations/verify/p-channellink-20161128173743.sql
share/migrations/verify/p-factoids-20161128182038.sql
share/migrations/verify/p-fakequotes-20161128183237.sql
share/migrations/verify/p-github-20161128190436.sql
share/migrations/verify/p-karma-20161128200656.sql
share/migrations/verify/p-location-20161128204426.sql
share/migrations/verify/p-logger-20161128205533.sql
share/migrations/verify/p-macros-20161128210159.sql
share/migrations/verify/p-madlibs-20161128211213.sql
share/migrations/verify/p-markov-20161128212720.sql
share/migrations/verify/p-memos-20161128214110.sql
share/migrations/verify/p-net-http-20161128214753.sql
share/migrations/verify/p-net-urls-20161128224203.sql
share/migrations/verify/p-skills-20161128215019.sql
share/migrations/verify/p-skills-20161128231536.sql
share/migrations/verify/p-thinge-20161128223332.sql
share/migrations/verify/p-variables-20161128195027.sql
share/migrations/verify/p-voting-20161128224521.sql
share/robobot.conf.sample
share/ubuntu-xenial-16.04-cloudimg-console.log
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/01-use.t
t/50-types-list.t
t/50-types-map.t
t/50-types-string.t
t/50-types-vector.t
t/author-pod-syntax.t

doc/upgrade/index.rst  view on Meta::CPAN

.. include:: ../common.defs

.. _ch-upgrade:

Upgrading
*********

|RB| has been designed to handle most upgrade tasks, particularly keeping its
database schemas current, automatically and transparently. Beginning with
version 4, running the main ``robobot`` program with the ``-m`` argument will
have it verify, and if necessary update, the state of its database schema.

This section details any additional steps you may need to take. Please take the
time to read through all the sections that apply to you before attempting an
upgrade, so as to avoid any unnecessary headaches.

If you encounter a problem during an upgrade, please open an issue on the |GH|
project with as much detail about the problems you experienced and include the
full text of any errors that were shown.

Upgrading from versions prior to 4.0

lib/App/RoboBot.pm  view on Meta::CPAN

            return;
        }
    }
    close($status_fh);

    die "Database schema is out of date, but --migrate was not specified so we cannot upgrade.\n"
        unless $self->do_migrations;

    $logger->info('Migration necessary. Running with verification enabled.');

    open(my $deploy_fh, '-|', 'sqitch', 'deploy', '--verify', $db_uri) or die "Could not begin database migrations: $!";
    while (my $l = <$deploy_fh>) {
        if ($l =~ m{^\s*\+\s*(.+)\s+\.\.\s+(.*)$}) {
            die "Failed during database migration $1.\n" if lc($2) ne 'ok';
        }
    }
    close($deploy_fh);

    $logger->info('Database migration completed successfully.');
}

lib/App/RoboBot/Plugin/Net/URLs.pm  view on Meta::CPAN


has 'ua' => (
    is      => 'ro',
    isa     => 'LWP::UserAgent',
    default => sub {
        LWP::UserAgent->new(
            agent        => "App::RoboBot",
            timeout      => 3,
            max_redirect => 5,
            ssl_opts => {
                verify_hostname => 0,
            },
            protocols_allowed => [qw( http https )],
        );
    },
);

sub check_urls {
    my ($self, $message) = @_;

    return if $message->has_expression;



( run in 0.327 second using v1.01-cache-2.11-cpan-73692580452 )