Ado

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


0.901 2015-05-01
  - Fixed bug in Ado::Plugin::Auth. Now you can disable local authentication
    and use only OAuth2 authentication methods.
  - Tested and works with Mojolicious 6.10.
  - Cleaned up some (now seeming meaningless) TODOs.

0.90 2015-04-26
  - Using $app->moniker instead of hardcodded 'ado' in
    Ado::Command::generate::apache2htaccess.
  - Allow when Ado is installed globally application specific plugin
    configuration to override the global plugin configuration.
  - Improved test coverage of Ado, Ado::Plugin and
    Ado::Command::generate::adoplugin. Total: 81.7% with TEST_AUTHOR set.

0.89 2015-04-19
  - Added hard dependency to Mojolicious::Plugin::OAuth2.
  - Upgraded to Mojolicious::Plugin::OAuth2 1.52.
  - Upgraded to Mojolicious 6.08.
  - Added method by_email to Ado::Model::Users.

0.88 2015-04-18

lib/Ado/Command.pm  view on Meta::CPAN

    my $class_file = Mojo::Util::class_to_path(ref($_[0]) || $_[0]);
    my ($root) = $INC{$class_file} =~ m{^(.+?)/[^/]+/$class_file$}x;
    return $root;
};

sub _get_command_config {
    my ($self) = @_;
    state $app = $self->app;
    my $name = $self->name;

    #first try (global config) !!!autovivification
    my $config = $app->config->{commands} && $app->config->{commands}->{$name};
    $config && return $config;

    #second try (command specific configuration file)
    my $conf_file = $app->home->rel_file('/etc/commands/' . decamelize($name) . '.conf');
    if ($config = eval { Mojolicious::Plugin::Config->new->load($conf_file, {}, $app) }) {
        return $config;
    }
    else {
        $app->log->warn(

lib/Ado/Command/generate/adoplugin.pm  view on Meta::CPAN


=head1 NAME

Ado::Command::generate::adoplugin - Generates an Ado::Plugin

=head1 SYNOPSIS

On the command-line:

  $ cd ~/opt/public_dev
  # Ado is "globally" installed for the current perlbrew Perl
  $ ado generate adoplugin --name MyBlog
  $ ado generate adoplugin --name MyBlog --crud -t 'articles,news'

Programmatically:

  use Ado::Command::generate::adoplugin;
  my $vhost = Ado::Command::generate::adoplugin->new;
  $vhost->run(-n => 'MyBlog', -c => 1, -t => 'articles,news');

=head1 DESCRIPTION

lib/Ado/Plugin.pm  view on Meta::CPAN

    my $name         = decamelize($self->name);
    my $config       = {};
    my $config_class = $self->config_classes->{$ext};
    if (my $e = Mojo::Loader::load_class($config_class)) {
        Carp::croak ref $e ? "Exception: $e" : $config_class . ' - Not found!';
    }
    my @config_paths = ("$config_dir/$name.$ext", "$config_dir/$name.$mode.$ext");
    push @config_paths, "$local_config_dir/$name.$ext", "$local_config_dir/$name.$mode.$ext"
      if $local_config_dir ne $config_dir;

    #Try global, global.mode, local, local.mode
    foreach my $f (@config_paths) {
        if (-f $f) {
            my $specific =
              eval { $config_class->new->load($f, {}, $app) } || Carp::croak($@);
            $config = {%$config, %$specific};
        }
    }
    return $config;
}

public/js/jquery.cookie.js  view on Meta::CPAN

 * Released under the MIT license
 */
(function (factory) {
	if (typeof define === 'function' && define.amd) {
		// AMD
		define(['jquery'], factory);
	} else if (typeof exports === 'object') {
		// CommonJS
		factory(require('jquery'));
	} else {
		// Browser globals
		factory(jQuery);
	}
}(function ($) {

	var pluses = /\+/g;

	function encode(s) {
		return config.raw ? s : encodeURIComponent(s);
	}

public/vendor/pagedown/Markdown.Converter.js  view on Meta::CPAN


        var _listItemMarkers = { ol: "\\d+[.]", ul: "[*+-]" };

        function _ProcessListItems(list_str, list_type, isInsideParagraphlessListItem) {
            //
            //  Process the contents of a single ordered or unordered list, splitting it
            //  into individual list items.
            //
            //  list_type is either "ul" or "ol".

            // The $g_list_level global keeps track of when we're inside a list.
            // Each time we enter a list, we increment it; when we leave a list,
            // we decrement. If it's zero, we're not in a list anymore.
            //
            // We do this because when we're not inside a list, we want to treat
            // something like this:
            //
            //    I recommend upgrading to version
            //    8. Oops, now this line is treated
            //    as a sub-list.
            //



( run in 0.678 second using v1.01-cache-2.11-cpan-49f99fa48dc )