Group
Extension

Matches 35358

Puppet-Orchestrator ( M/MQ/MQTECH/Puppet-Orchestrator-0.002.tar.gz, MQTECH, 2019; MetaCPAN )
Puppet-Orchestrator/lib/Puppet/Orchestrator.pm ( view source; MetaCPAN )
onnects to the Puppet Orchestrator API (i.e. Puppet Tasks)




package Puppet::Orchestrator;

use JSON;
use LWP::UserAgent;
use HTTP::Request;
use Log::MixedColor;
use 5.10.0;
use Moose;
use Moose::Ex
ge' )){
    require MooseX::Storage;
    MooseX::Storage->import();
    with Storage('format' => 'JSON', 'io' => 'File', traits => ['DisableCycleDetection']);
}
my $log = Log::MixedColor->new;




has
opts );
    if( $type eq 'POST' ){
        $data = encode_json( $data ) if ref $data;
        $req->header( 'Content-Type' => 'application/json' );
        $req->content( $data );
    }
    my $respon
Puppet-DB ( M/MQ/MQTECH/Puppet-DB-0.001.tar.gz, MQTECH, 2019; MetaCPAN )
Puppet-DB/lib/Puppet/DB.pm ( view source; MetaCPAN )
age Puppet::DB;

use 5.10.0;
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request;
use JSON;
use Time::Local;
use Moose;
use Moose::Exporter;
use String::ShortHostname;
use Module::Load::Co
the following code can silently fail
#eval {
#require MooseX::Storage;
#with Storage('format' => 'JSON', 'io' => 'File', traits => ['DisableCycleDetection']);
#1;
#};
if ( check_install( module => 'Mo
   require MooseX::Storage;
    MooseX::Storage->import();
    with Storage(
        'format' => 'JSON',
        'io'     => 'File',
        traits   => ['DisableCycleDetection']
    );
}


# Connect 
WebService-HipChat ( I/IR/IRONCAMEL/WebService-HipChat-0.2001.tar.gz, IRONCAMEL, 2019; MetaCPAN )
WebService-HipChat/lib/WebService/HipChat.pm ( view source; MetaCPAN )
e::Client';

our $VERSION = '0.2001'; # VERSION

use Carp qw(croak);
use MIME::Entity;
use JSON qw(encode_json);

has auth_token => ( is => 'ro', required => 1 );

has '+base_url' => ( default => 'htt
      my $msg_json = encode_json({ message => $msg });
        $Mime->attach(
            Type     => 'application/json',
            Encoding => '7bit',
            Data     => $msg_json,
        );
=head2 update_room

    update_room($room, {
        is_archived         => JSON::false,
        is_guest_accessible => JSON::false,
        name                => "Jokes",
        owner              
WWW-Scraper-ISBN-Amazon_Driver ( B/BA/BARBIE/WWW-Scraper-ISBN-Amazon_Driver-1.00.tar.gz, BARBIE, 2019; MetaCPAN )
WWW-Scraper-ISBN-Amazon_Driver/lib/WWW/Scraper/ISBN/AmazonUS_Driver.pm ( view source; MetaCPAN )
##############################################################
# Modules

use WWW::Mechanize;
use JSON;

###########################################################################
# Variables

my $AM
th ));
        }
    }

    # The images
    my ($json) = $html =~ /var colorImages = ([^;]+);/si;
    if($json) {
        my $code = decode_json($json);
        my @order = grep {$_} $code->{initial}
WWW-Scraper-ISBN-Amazon_Driver ( B/BA/BARBIE/WWW-Scraper-ISBN-Amazon_Driver-1.00.tar.gz, BARBIE, 2019; MetaCPAN )
WWW-Scraper-ISBN-Amazon_Driver/lib/WWW/Scraper/ISBN/AmazonUK_Driver.pm ( view source; MetaCPAN )
##############################################################
# Modules

use WWW::Mechanize;
use JSON;

###########################################################################
# Variables

my $AM
on} =~ s! +! !g;
    }

    # The images
    my ($json) = $html =~ /var colorImages = ([^;]+);/si;
    if($json) {
        my $code = decode_json($json);
        my @order = grep {$_} $code->{initial}
Bencher-Scenario-DataUndump ( P/PE/PERLANCAR/Bencher-Scenario-DataUndump-0.002.tar.gz, PERLANCAR, 2019; MetaCPAN )
Bencher-Scenario-DataUndump/lib/Bencher/Scenario/DataUndump.pm ( view source; MetaCPAN )
 SEE ALSO

L<https://www.reddit.com/r/perl/comments/czhwe6/syntax_differences_from_data_dumper_to_json/ez95r7c?utm_source=share&utm_medium=web2x>

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1
Puppet-Classify ( M/MQ/MQTECH/Puppet-Classify-0.003.tar.gz, MQTECH, 2019; MetaCPAN )
Puppet-Classify/lib/Puppet/Classify.pm ( view source; MetaCPAN )
ACT: Connects to the Puppet Classifier API (PE Console groups)




package Puppet::Classify;

use JSON;
use LWP::UserAgent;
use HTTP::Request;
use Puppet::DB;
use Log::MixedColor;
use 5.10.0;
use Moos
ge' )){
    require MooseX::Storage;
    MooseX::Storage->import();
    with Storage('format' => 'JSON', 'io' => 'File', traits => ['DisableCycleDetection']);
}
my $log = Log::MixedColor->new;





ar
opts );
    if( $type eq 'POST' ){
        $data = encode_json( $data ) if ref $data;
        $req->header( 'Content-Type' => 'application/json' );
        $req->content( $data );
    }
    my $respon
Dist-Banshee ( L/LE/LEONT/Dist-Banshee-0.002.tar.gz, LEONT, 2019; MetaCPAN )
Dist-Banshee/lib/Dist/Banshee/Mint.pm ( view source; MetaCPAN )
";
	return;
}

sub keep_patches {
	keep_file($_) for grep { /\.patch$/ } read_dir('.banshee');
	return;
}

sub keep_config {
	keep_file($_) for grep { /\.json$/ } read_dir('.banshee');
	return;
}

1;
Dist-Banshee ( L/LE/LEONT/Dist-Banshee-0.002.tar.gz, LEONT, 2019; MetaCPAN )
Dist-Banshee/lib/Dist/Banshee/Core.pm ( view source; MetaCPAN )
ving (.*?)$/ms;
	}

	return @updated;
}

sub add_meta {
	my ($files, $meta) = @_;
	$files->{'META.json'} = $meta->as_string;
	$files->{'META.yml'}  = $meta->as_string({ version => 1.4 });
	return;
}

WWW-AzimuthAero ( P/PA/PAVELSR/WWW-AzimuthAero-0.4.tar.gz, PAVELSR, 2019; MetaCPAN )
WWW-AzimuthAero/lib/WWW/AzimuthAero.pm ( view source; MetaCPAN )
= $self->{ua}->get($url);
    $self->{last_transaction} = $get_req;

    my $res = $get_req->res->json;

    if ( ref( $res->{available_to} ) eq 'ARRAY' ) {

        my @dates;
        for my $interva
aero/ru/flights?from=' . $from . '&to=' . $to;
            my $res = $self->{ua}->get($url)->res->json;
            say $i;
            $res{$from} = $to if ( ref( $res->{available_to} ) ne 'ARRAY' );
WWW-AzimuthAero ( P/PA/PAVELSR/WWW-AzimuthAero-0.4.tar.gz, PAVELSR, 2019; MetaCPAN )
WWW-AzimuthAero/lib/WWW/AzimuthAero/RouteMap.pm ( view source; MetaCPAN )
 print $rm->all_cities()    
    print join(',' map { "\'". $_ ."\'" } $rm->all_cities() ); # for json array

=head2 get

Universal accessor function for route map, wrapper under L<WWW::AzimuthAero::R
WWW-AzimuthAero ( P/PA/PAVELSR/WWW-AzimuthAero-0.4.tar.gz, PAVELSR, 2019; MetaCPAN )
WWW-AzimuthAero/lib/WWW/AzimuthAero/Mock.pm ( view source; MetaCPAN )
 'MOW',
            date => '23.06.2019'
        }
    };
}

sub filename {
    return 't/ua_mock.json';
}


sub generate {
    my $self      = shift;
    my $mock_data = $self->mock_data->{get};

   
cks

=head2 mock_data

Return data that is used for mock at unit tests

=head2 generate

Generate json mock data

=head1 AUTHOR

Pavel Serikov <pavelsr@cpan.org>

=head1 COPYRIGHT AND LICENSE

This so
App-TestOnTap ( K/KN/KNTH/App-TestOnTap-1.001.tar.gz, KNTH, 2019; MetaCPAN )
App-TestOnTap/lib/App/TestOnTap.pod ( view source; MetaCPAN )
v.json
  -- -- meta.json
  -- -- summary.json
  -- -- testinfo.json
  -- -- preprocess.txt
  -- -- postprocess.txt
  -- -- result/
  -- -- -- init.pl.json
  -- -- -- basic_file_handling_setup.pl.json
ture_processing_setup.pl.json
  -- -- -- filehandl/
  -- -- -- -- fh1.pl.json
  -- -- -- -- fh2.pl.json
  -- -- -- picproc/
  -- -- -- -- pp1.pl.json
  -- -- -- -- pp2.pl.json
  -- -- tap/
  -- -- -- 
- -- -- -- fh2.pl.tap
  -- -- -- picproc/
  -- -- -- -- pp1.pl.tap
  -- -- -- -- pp2.pl.tap

All 'json' files are in UTF-8.

The described format version here is '1.0', and is indicated in the meta-da
App-TestOnTap ( K/KN/KNTH/App-TestOnTap-1.001.tar.gz, KNTH, 2019; MetaCPAN )
App-TestOnTap/lib/App/TestOnTap/WorkDirManager.pm ( view source; MetaCPAN )
ile::Copy::Recursive qw(dircopy);
use File::Temp qw(tempdir);
use File::Slurp qw(write_file);
use JSON;
use Net::Domain qw(hostfqdn);
use POSIX qw(uname);

# CTOR
#
sub new
{
	my $class = shift;
	my $
kdir/save/testontap/tap"),
						result =>  slashify("$workdir/save/testontap/result"),
						json => JSON->new()->utf8()->pretty()->canonical(),
						orderstrategy => undef,
						dispensedorder => 
	my $name = shift;
	my $data = shift;
	
	my $file = slashify("$name.json");
	mkpath(dirname($file));
	write_file($file, $self->{json}->encode($data)) || die("Failed to write '$file': $!\n");
}

sub __
Minion-Notifier ( J/JB/JBERGER/Minion-Notifier-0.08.tar.gz, JBERGER, 2019; MetaCPAN )
Minion-Notifier/lib/Minion/Notifier/Transport/Pg.pm ( view source; MetaCPAN )
:Notifier::Transport::Pg;

use Mojo::Base 'Minion::Notifier::Transport';

use Mojo::Pg;
use Mojo::JSON;

has pg => sub { die 'A Mojo::Pg instance is required' };

has channel => 'minion_notifier_job';
o::JSON::decode_json $payload;
    $self->emit(notified => @$args);
  });
}

sub send {
  my ($self, $id, $message) = @_;
  $self->pg->pubsub->notify(
    $self->channel,
    Mojo::JSON::encode_json([
Minion-Notifier ( J/JB/JBERGER/Minion-Notifier-0.08.tar.gz, JBERGER, 2019; MetaCPAN )
Minion-Notifier/lib/Minion/Notifier/Transport/Redis.pm ( view source; MetaCPAN )
er::Transport::Redis;

use Mojo::Base 'Minion::Notifier::Transport';

use Mojo::Redis2;
use Mojo::JSON;

has redis => sub { die 'A Mojo::Redis2 instance is required' };

has channel => 'minion_notifie
jo::JSON::decode_json $payload;
    $self->emit(notified => @$args);
  });
  $self->redis->subscribe([$channel], sub {});
}

sub send {
  my ($self, $id, $message) = @_;
  my $payload = Mojo::JSON::en
code_json([$id, $message]);
  Mojo::IOLoop->delay(sub{
    $self->redis->publish($self->channel, $payload, shift->begin);
  })->wait;
}

1;

Minion-Notifier ( J/JB/JBERGER/Minion-Notifier-0.08.tar.gz, JBERGER, 2019; MetaCPAN )
Minion-Notifier/lib/Minion/Notifier/Transport/WebSocket.pm ( view source; MetaCPAN )
 my $self = shift;
  $self->ua->websocket($self->url => sub {
    my ($ua, $tx) = @_;
    $tx->on(json => sub {
      my ($tx, $data) = @_;
      $self->emit(notified => @$data);
    });
  });
}

sub 
send {
  my ($self, $id, $message) = @_;
  $self->ua->websocket($self->url => sub {
    my ($ua, $tx) = @_;
    $tx->send({json => [$id, $message]}); #TODO finish after send?
  });
}


1;

Mojo-RabbitMQ-Client ( S/SE/SEBAPOD/Mojo-RabbitMQ-Client-0.3.1.tar.gz, SEBAPOD, 2019; MetaCPAN )
Mojo-RabbitMQ-Client/lib/Mojo/RabbitMQ/Client/Publisher.pm ( view source; MetaCPAN )
age Mojo::RabbitMQ::Client::Publisher;
use Mojo::Base -base;

use Mojo::Promise;
use Mojo::JSON qw(encode_json);
use Scalar::Util 'weaken';
require Mojo::RabbitMQ::Client;

use constant DEBUG => $ENV{
%$headers);

      if (ref($body)) {
        $headers{content_type} = 'application/json';
        $body = encode_json $body;
      }

      return $self->channel->publish_p(
        exchange    => $ex
.0.1:5672/?exchange=mojo&routing_key=mojo'
  );

  $publisher->publish_p(
    {encode => { to => 'json'}},
    routing_key => 'mojo_mq'
  )->then(sub {
    say "Message published";
  })->catch(sub {
 
Mojo-RabbitMQ-Client ( S/SE/SEBAPOD/Mojo-RabbitMQ-Client-0.3.1.tar.gz, SEBAPOD, 2019; MetaCPAN )
Mojo-RabbitMQ-Client/lib/Mojo/RabbitMQ/Client.pm ( view source; MetaCPAN )
=mojo'
  );

  $publisher->publish('plain text');

  $publisher->publish(
    {encode => { to => 'json'}},
    routing_key => 'mojo_mq'
  )->then(sub {
    say "Message published";
  })->catch(sub {
 
Devel-QuickCover ( G/GO/GONZUS/Devel-QuickCover-0.900014.tar.gz, GONZUS, 2019; MetaCPAN )
Devel-QuickCover/bin/qc-html.pl ( view source; MetaCPAN )
st::MD5 qw(md5_hex);
use File::Path qw(make_path);
use Path::Tiny qw(path);
use Getopt::Long;
use JSON::MaybeXS;
use Sereal qw(encode_sereal decode_sereal);
use Devel::QuickCover::Report;

my $QC_DATA
"$COVERDB/runs/";

my $JSON          = JSON::MaybeXS->new->utf8->indent;
my $DEVEL_COVER_DB_FORMAT = 'Sereal';
$ENV{DEVEL_COVER_DB_FORMAT}
    and $DEVEL_COVER_DB_FORMAT = 'JSON';

exit main();

sub m
DB_FORMAT eq 'JSON') {
       return $JSON->decode(shift);
    }
    return decode_sereal(shift);
}

sub coverdb_encode {
    if ($DEVEL_COVER_DB_FORMAT eq 'JSON') {
        return $JSON->encode(shift

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