Group
Extension

Matches 35359

CPAN-Testers-WWW-Reports ( B/BA/BARBIE/CPAN-Testers-WWW-Reports-3.60.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Reports/lib/Labyrinth/Plugin/CPAN/Builder.pm ( view source; MetaCPAN )
th::Plugin::Articles::Site;

use Clone   qw(clone);
use Cwd;
use File::Path;
use File::Slurp;
use JSON::XS;
#use Sort::Versions;
use Time::Local;
use Try::Tiny;
use XML::RSS;
#use YAML::XS;
use versio
cache/$author.json";

        try {
            # load JSON, if we have one
            if(-f $destfile) {
                $progress->( ".. processing rmauth $author $name (cleaning JSON file)" )     
JSON file)" )     if(defined $progress);
                my $store;
                eval { $store = decode_json($data) };
                $progress->( ".. processing rmauth $author $name (decoded JSON
CPAN-Testers-WWW-Reports ( B/BA/BARBIE/CPAN-Testers-WWW-Reports-3.60.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Reports/lib/Labyrinth/Plugin/CPAN/Report.pm ( view source; MetaCPAN )
act::LegacyReport;
use CPAN::Testers::Fact::TestSummary;
use File::Slurp;
use HTML::Entities;
use JSON::XS;
use Metabase::Resource;
use XML::RSS;
use YAML::XS;

#--------------------------------------
m DistroRSS

Return the RSS feed for a given distribution.

=item load_rss

Reads the appropriate JSON file and returns an RSS feed.

=item make_rss

Creates an RSS feed from a given data set.

=item 
istroYAML

Return the YAML feed for a given distribution.

=item load_yaml

Reads the appropriate JSON file and returns an YAML feed.

=back

=cut

sub View {
    if($cgiparams{id} =~ /^\d+$/) {
     
Telegram-CamshotBot ( P/PA/PAVELSR/Telegram-CamshotBot-0.03.tar.gz, PAVELSR, 2017; MetaCPAN )
Telegram-CamshotBot/lib/Telegram/CamshotBot/Util.pm ( view source; MetaCPAN )
_name = $app_pm_basename;
  $app_name =~ s/\.pm//;
  return dirname($pm_location).'/'.$app_name.".json.example";
}


sub first_existing_variable {
  for(@_){ return $_ if $_ }
  # return (grep{$_}@_)[
mple_mojo_conf

When packaging as module Mojolicious applications that use
L<Mojolicious::Plugin::JSONConfig> or L<Mojolicious::Plugin::Config>
it's needed to create a sample file inside of it

This f
call it same as *.pm file NAME

E.g. you have CamshotBot.pm so you must name config as CamshotBot.json.example

=head2 first_existing_variable

Return first existing non-empty variable or undef from g
CPAN-Testers-WWW-Reports ( B/BA/BARBIE/CPAN-Testers-WWW-Reports-3.60.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Reports/lib/Labyrinth/Plugin/CPAN/Authors.pm ( view source; MetaCPAN )
inth::DTUtils;
use Labyrinth::Plugin::CPAN;
use Labyrinth::Variables;
use Labyrinth::Writer;

use JSON::XS;

#----------------------------------------------------------------------------
# Public Inte
arams{name});
            $tvars{update} = 1;
        }
    }

    # decode from JSON string
    my $parms = decode_json($summary[0]->{dataset});
    for my $key (keys %$parms) { $tvars{$key} = $parms
Minion-Command-minion-version ( B/BF/BFAIST/Minion-Command-minion-version-0.02.tar.gz, BFAIST, 2017; MetaCPAN )
Minion-Command-minion-version/lib/Minion/Command/minion/version.pm ( view source; MetaCPAN )
(sub { $_->proxy->detect })
      ->get('fastapi.metacpan.org/v1/release/Minion')
      ->result->json->{version};
  } or return;
 
  my $msg = 'This version is up to date, have fun!';
  $msg = 'Thank
RabbitMQ-Consumer-Batcher ( J/JA/JASEI/RabbitMQ-Consumer-Batcher-0.1.1.tar.gz, JASEI, 2017; MetaCPAN )
RabbitMQ-Consumer-Batcher/lib/RabbitMQ/Consumer/Batcher/Message.pm ( view source; MetaCPAN )
r' => (
    is       => 'ro',
    #bless(
    #    {
    #        'content_type'  => 'application/json',
    #        'priority'      => 1,
    #        'timestamp'     => 1498807603,
    #        'us
Telegram-CamshotBot ( P/PA/PAVELSR/Telegram-CamshotBot-0.03.tar.gz, PAVELSR, 2017; MetaCPAN )
Telegram-CamshotBot/lib/Telegram/CamshotBot.pm ( view source; MetaCPAN )
random_caption abs_path_of_sample_mojo_conf fev);
use Mojolicious::Lite;
use Mojolicious::Plugin::JSONConfig;
use Mojolicious::Plugin::Webtail;
use WWW::Telegram::BotAPI;
use Date::Format;
use Telegra
ot',
  getcwd.'/camshotbot.conf.json',
  abs_path_of_sample_mojo_conf(__PACKAGE__),
);

print "Using config: ".$config_file_path."\n";

my $config_values = plugin 'JSONConfig' => { file => $config_fil


post '/'.$telegram_token => sub {
  my $c = shift;
  my $update = $c->req->json;
  $c->answer($update);
  $c->render(json => "ok");
};

get '/' => sub {
	shift->render(text => 'bot is running');
};
Wing-Client ( C/CO/COLINK/Wing-Client-1.1000.tar.gz, COLINK, 2017; MetaCPAN )
Wing-Client/lib/Wing/Client.pm ( view source; MetaCPAN )
::Client::VERSION = '1.1000';
use HTTP::Thin;
use HTTP::Request::Common;
use HTTP::CookieJar;
use JSON;
use URI;
use Ouch;
use Moo;


=head1 NAME

Wing::Client - A simple client to Wing's web services
 _process_response {
    my $self = shift;
    my $response = shift;
    my $result = eval { from_json($response->decoded_content) }; 
    if ($@) {
        ouch 500, 'Server returned unparsable conte
ta};
    }
}

=head1 PREREQS

L<HTTP::Thin>
L<Ouch>
L<HTTP::Request::Common>
L<HTTP::CookieJar>
L<JSON>
L<URI>
L<Moo>

=head1 SUPPORT

=over

=item Repository

L<http://github.com/rizen/Wing-Client>

CPAN-Testers-WWW-Reports ( B/BA/BARBIE/CPAN-Testers-WWW-Reports-3.60.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Reports/vhost/toolkit/osname.pl ( view source; MetaCPAN )
als;
use Labyrinth::Variables;

use Labyrinth::Plugin::Content;
use Labyrinth::Plugin::CPAN;

use JSON::XS;
use File::Find::Rule;
use File::Slurp;
use Getopt::Long;

use CPAN::Testers::Common::Article
ixed");
}

sub _check_arch_os {
    my $row = shift;

    my $data = decode_json($row->{report});

    my $fact = decode_json($data->{'CPAN::Testers::Fact::LegacyReport'}{content});
    my $textreport
Perinci-Access-HTTP-Client ( P/PE/PERLANCAR/Perinci-Access-HTTP-Client-0.24.tar.gz, PERLANCAR, 2017; MetaCPAN )
Perinci-Access-HTTP-Client/lib/Perinci/Access/HTTP/Client.pm ( view source; MetaCPAN )
$res = $self->check_request($rreq);
    return $res if $res;

    state $json = do {
        require JSON::MaybeXS;
        JSON::MaybeXS->new->allow_nonref;
    };

    state $ua;
    state $callback
eq->{$_};
        if (!defined($hv) || ref($hv)) {
            $hk = "$hk-j-";
            $hv = $json->encode($hv);
        }
        $http_req->header($hk => $hv);
    }
    $ua->{__log_level} = $se
ap-fmt'      => 'json');

    my %args;
    if ($rreq->{args}) {
        for (keys %{$rreq->{args}}) {
            $args{$_} = $rreq->{args}{$_};
        }
    }
    my $args_s = $json->encode(\%args)
Plack-Session-Store-RedisFast ( A/AK/AKZHAN/Plack-Session-Store-RedisFast-0.05.tar.gz, AKZHAN, 2017; MetaCPAN )
Plack-Session-Store-RedisFast/lib/Plack/Session/Store/RedisFast.pm ( view source; MetaCPAN )
t::Encoder::JSONXS;
        $instance = Plack::Session::Store::RedisFast::Encoder::JSONXS->new;
        1;
    } or do {
        require Plack::Session::Store::RedisFast::Encoder::MojoJSON;
        $i
ast::Encoder::MojoJSON->new;
      }
      or do {
        require Plack::Session::Store::RedisFast::Encoder::JSON;
        $instance = Plack::Session::Store::RedisFast::Encoder::JSON->new;
      };
 
en through L</redis> param.

Default implementation of serializer handle is L<JSON::XS>; otherwise L<Mojo::JSON> or L<JSON>.

May be overriden through L</inflate> and L</deflate> param.

=head1 SYNOPS
Perinci-Access-Simple-Client ( P/PE/PERLANCAR/Perinci-Access-Simple-Client-0.23.tar.gz, PERLANCAR, 2017; MetaCPAN )
Perinci-Access-Simple-Client/lib/Perinci/Access/Simple/Client.pm ( view source; MetaCPAN )
               "uri=%s", $srvsch, $host, $port, $path, $args, $uri);

    require JSON::MaybeXS;
    state $json = JSON::MaybeXS->new->allow_nonref;

    my $attempts = 0;
    my $do_retry;
    my $e;
        my $req_json;
        eval { $req_json = $json->encode($req) };
        $e = $@;
        return [400, "Can't encode request as JSON: $e"] if $e;

        $out->write("j$req_json\015\012");
   
     log_trace("Sent request to server: %s", $req_json);

        # XXX alarm/timeout
        my $line = $in->getline;
        log_trace("Got line from server: %s", $line);
        if (!$line) {
     
WebDAO ( Z/ZA/ZAG/WebDAO-2.26.tar.gz, ZAG, 2017; MetaCPAN )
WebDAO/lib/WebDAO/Engine.pm ( view source; MetaCPAN )
    #special handle HASH refs ( interpret as json)
    if ( ( ref($res) eq 'HASH' ) and $response->wantformat('json') ) {
        $res = $response->set_json( $res );
    }
    #check if  response moda
WebDAO ( Z/ZA/ZAG/WebDAO-2.26.tar.gz, ZAG, 2017; MetaCPAN )
WebDAO/lib/WebDAO/Response.pm ( view source; MetaCPAN )
$data;
    return $self;
}

sub json : lvalue {
    my $self = shift;
    $self->{__json};

}

sub set_json {
    my $self = shift;
    my $data = shift;
    $self->json = $data;
    return $self;
}

Dist-Zilla-Plugin-SlackNotify ( S/SL/SLEUNG/Dist-Zilla-Plugin-SlackNotify-0.003.tar.gz, SLEUNG, 2017; MetaCPAN )
Dist-Zilla-Plugin-SlackNotify/lib/Dist/Zilla/Plugin/SlackNotify.pm ( view source; MetaCPAN )
sh a notification on Slack after release

use Moose;
with 'Dist::Zilla::Role::AfterRelease';

use JSON;
use LWP::UserAgent;
use Dist::Zilla::Plugin::EmailNotify;

use namespace::autoclean;

has webhoo
= $ua->post( $self->webhook_url,
            'Content-Type' => 'application/json',
            Content        => encode_json( \%payload ),
        );
    }

    return $res->is_success;
}

sub _build_
Plack-Session-Store-RedisFast ( A/AK/AKZHAN/Plack-Session-Store-RedisFast-0.05.tar.gz, AKZHAN, 2017; MetaCPAN )
Plack-Session-Store-RedisFast/lib/Plack/Session/Store/RedisFast/Encoder/JSONXS.pm ( view source; MetaCPAN )
package Plack::Session::Store::RedisFast::Encoder::JSONXS;

use strict;
use warnings;

use 5.008_005;

use JSON::XS ();

sub new {
    return JSON::XS->new->utf8->allow_nonref;
}

1;

__END__

=pod

=
oding utf-8

=head1 NAME

Plack::Session::Store::RedisFast::JSONXS - L<JSON::XS> adapter for Redis session store.

=head1 DESCRIPTION

L<JSON::XS>-based implementation of L<Plack::Session::Store::Redi
flate>.

=head1 SYNOPSIS

    use Plack::Session::Store::RedisFast::JSONXS;

    my $encoder = Plack::Session::Store::RedisFast::JSONXS->new;

    my $bytes = $encoder->encode( $hashref );

    my $ha
Mojolicious-Command-generate-qx_mojo_app ( O/OE/OETIKER/Mojolicious-Command-generate-qx_mojo_app-0.4.0.tar.gz, OETIKER, 2017; MetaCPAN )
Mojolicious-Command-generate-qx_mojo_app/lib/Mojolicious/Command/generate/qx_mojo_app.pm ( view source; MetaCPAN )
 => 'frontend/Makefile.am',
        'frontend/Manifest.json' => 'frontend/Manifest.json',
        'frontend/config.json' => 'frontend/config.json',
        'frontend/source/class/app/Application.js' =
CPAN-Testers-WWW-Statistics ( B/BA/BARBIE/CPAN-Testers-WWW-Statistics-1.23.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Statistics/lib/CPAN/Testers/WWW/Statistics/Leaderboard.pm ( view source; MetaCPAN )
d by the Pages module to create the leaderboard pages.

Previously this information was held in a JSON file, but maintaining accurate
data has been problematic.

Note that this package should not be c
Log-Log4perl-Appender-Graylog ( D/DI/DIMENTOX/Log-Log4perl-Appender-Graylog-1.7.tar.gz, DIMENTOX, 2017; MetaCPAN )
Log-Log4perl-Appender-Graylog/lib/Data/DTO/GELF.pm ( view source; MetaCPAN )
ur $VERSION = 1.7;
use strict;
use warnings;

use Moose;
use namespace::autoclean;

use JSON::Tiny qw(encode_json);
use Sys::Hostname;
use Data::UUID;
use POSIX qw(strftime);

use Log::Log4perl;

use 
;
    { $self->short_message() }    #fire off lazy message builder
    return {%$self};
}

sub TO_JSON {
    my $self = shift;
    { $self->short_message() }    #fire off lazy message builder
    retu
CPAN-Testers-WWW-Statistics ( B/BA/BARBIE/CPAN-Testers-WWW-Statistics-1.23.tar.gz, BARBIE, 2017; MetaCPAN )
CPAN-Testers-WWW-Statistics/lib/CPAN/Testers/WWW/Statistics/Pages.pm ( view source; MetaCPAN )
:Basename;
use File::Copy;
use File::Path;
use File::Slurp;
use HTML::Entities;
use IO::File;
use JSON;
use Sort::Versions;
use Template;
#use Time::HiRes qw ( time );
use Time::Piece;
use Try::Tiny;
item * update_full

Full update of data and pages.

=item * update_data

Update data and store in JSON format.

=item * build_basics

Create the basic set of pages,those require no statistical calcula
  return  unless(-f $storage);
        my $data = read_file($storage);
        my $store = decode_json($data);
        return $store->{$type};
    }

#    for $type (qw(stats dists fails perls pass pl

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.