Group
Extension

Matches 35358

CHI-Config ( K/KE/KENTNL/CHI-Config-0.001001-TRIAL.tar.gz, KENTNL, 2014; MetaCPAN )
CHI-Config/lib/CHI/Config.pm ( view source; MetaCPAN )
( such as serializers )
      # be configurable as well and they can't really be defined as-is in JSON
      {
          type => 'driver',
          name => 'myproject.roflmayo',
          config => {
t.roflmayo');

  # Do stuff with $cache and get default behaviour

  # User creates ~/.chi/config.json
  [
    {
      'type' : 'driver',
      'name' : 'myproject.roflmayo',
      'config': {
       
onfig_paths => ['./foo'] )

Would automatically attempt to load any files called

  foo.yml
  foo.json
  foo.ini

And load them with the relevant helpers.

See L<< C<Config::Any>|Config::Any >> for de
Dist-Zilla-Plugin-Bitbucket ( A/AP/APOCAL/Dist-Zilla-Plugin-Bitbucket-0.001.tar.gz, APOCAL, 2014; MetaCPAN )
Dist-Zilla-Plugin-Bitbucket/lib/Dist/Zilla/Plugin/Bitbucket/Meta.pm ( view source; MetaCPAN )
 = '0.001';
our $AUTHORITY = 'cpan:APOCAL';

# ABSTRACT: Add a Bitbucket repo's info to META.{yml,json}

use Moose;

extends 'Dist::Zilla::Plugin::Bitbucket';
with 'Dist::Zilla::Role::MetaProvider';

ata

=head1 NAME

Dist::Zilla::Plugin::Bitbucket::Meta - Add a Bitbucket repo's info to META.{yml,json}

=head1 VERSION

  This document describes v0.001 of Dist::Zilla::Plugin::Bitbucket::Meta - rele
illa> plugin adds some information about the distribution's Bitbucket
repository to the META.{yml,json} files, using the official L<CPAN::Meta>
specification.

This module currently sets the following
ArangoDB2 ( E/EW/EWARNCKE/ArangoDB2-0.11.tar.gz, EWARNCKE, 2014; MetaCPAN )
ArangoDB2/lib/ArangoDB2/Graph.pm ( view source; MetaCPAN )
B2::Base
);

use Data::Dumper;
use JSON::XS;

use ArangoDB2::Graph::EdgeDefinition;
use ArangoDB2::Graph::VertexCollection;
use ArangoDB2::Traversal;

my $JSON = JSON::XS->new->utf8;



# create
#
# P
 my $res = $self->arango->http->post(
        $self->api_path('gharial'),
        undef,
        $JSON->encode($args),
    ) or return;
    # copy param data from res to self
    $self->_build_self($r
ArangoDB2 ( E/EW/EWARNCKE/ArangoDB2-0.11.tar.gz, EWARNCKE, 2014; MetaCPAN )
ArangoDB2/lib/ArangoDB2/Base.pm ( view source; MetaCPAN )
package ArangoDB2::Base;

use strict;
use warnings;

use Carp qw(croak);
use Data::Dumper;
use JSON::XS;
use Scalar::Util qw(blessed weaken);



# new
#
# Arango organizes data hierarchically: Databas
value  or set JSON bool value.
# setting value returns self.
sub _get_set_bool
{
    my($self, $param, $value, $validate) = @_;

    if (defined $value) {
        # accept "true" as JSON bool false
  
 eq "true") {
            $value = JSON::XS::true;
        }
        # accept "false" as JSON bool false
        elsif ($value eq "false") {
            $value = JSON::XS::false;
        }
        # u
ArangoDB2 ( E/EW/EWARNCKE/ArangoDB2-0.11.tar.gz, EWARNCKE, 2014; MetaCPAN )
ArangoDB2/lib/ArangoDB2/Query.pm ( view source; MetaCPAN )

use warnings;

use base qw(
    ArangoDB2::Base
);

use Data::Dumper;
use JSON::XS;

use ArangoDB2::Cursor;

my $JSON = JSON::XS->new->utf8;



# new
#
# create new instance
sub new
{
    my($class, 
  my $res = $self->arango->http->post(
        $self->api_path('cursor'),
        undef,
        $JSON->encode($args),
    ) or return;

    return ArangoDB2::Cursor->new($self->arango, $self->databas
    return $self->arango->http->post(
        $self->api_path('explain'),
        undef,
        $JSON->encode({query => $self->query}),
    );
}

# parse
#
# POST /_api/query
sub parse
{
    my($self
Dancer-Plugin-Auth-RBAC-Credentials-Catmandu ( N/NJ/NJFRANCK/Dancer-Plugin-Auth-RBAC-Credentials-Catmandu-0.01.tar.gz, NJFRANCK, 2014; MetaCPAN )
Dancer-Plugin-Auth-RBAC-Credentials-Catmandu/lib/Dancer/Plugin/Auth/RBAC/Credentials/Catmandu.pm ( view source; MetaCPAN )
already, and will have the following format

=over

=item id

identifier of the user

=item data

json data, in the following form:

{

    _id: "njfranck",
    login: "njfranck",
    name: "Nicolas F
ZMQ ( D/DM/DMAKI/ZMQ-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
ZMQ/lib/ZMQ/Serializer.pm ( view source; MetaCPAN )
use JSON ();

    ZMQ::register_read_type(json => \&JSON::decode_json);
    ZMQ::register_write_type(json => \&JSON::encode_json);

    my $sock = $ctx->socket( ... );

    $sock->sendmsg_as( json => 
$payload );
    my $payload = $sock->recvmsg_as( 'json' );

=head1 DESCRIPTION

You can add a simple serialization/deserialization mechanism to ZMQ by enabling this module.

To enable serialization, y
le, for JSON we do
the following (this is already done for you in ZMQ.pm if you have
JSON.pm installed):

    use JSON ();
    ZMQ::Serializer::register_write_type('json' => \&JSON::encode_json);
    
WebService-MailJet ( K/KA/KANISHKA/WebService-MailJet-0.003.tar.gz, KANISHKA, 2014; MetaCPAN )
WebService-MailJet/Readme.pod ( view source; MetaCPAN )
end

    my $json = $mailjet->send('apikey');

    All "post" methos are called on send_post

    my $data = ( 'name' =>'Name' , 'DateType'=> "str", 'NameSpace' : 'static' );

    my $json = $mailjet-
actmetadata' , %data);

    All "put" methos are called on send_put

    my $data = ( 'title' => 'Update title of the Newsletter' );

    my $json = $mailjet->send_put('newsletter/123' , %data);

=cut
JE ( S/SP/SPROUT/JE-0.066.tar.gz, SPROUT, 2014; MetaCPAN )
JE/lib/JE/Number.pm ( view source; MetaCPAN )
Number')->prop(shift)->apply(
		$self,$$self[1]->upgrade(@_)
	);
}

sub value {
	shift->[0]
}
*TO_JSON=*value;

sub exists { !1 }

sub typeof    { 'number' }
sub class     { 'Number' }
sub id        {
Dist-Zilla-Plugin-Authority ( A/AP/APOCAL/Dist-Zilla-Plugin-Authority-1.009.tar.gz, APOCAL, 2014; MetaCPAN )
Dist-Zilla-Plugin-Authority/lib/Dist/Zilla/Plugin/Authority.pm ( view source; MetaCPAN )
 bugtracker rt cpants kwalitee diff irc mailto
metadata placeholders metacpan RJBS FLORA dist ini json username yml

=for Pod::Coverage metadata munge_files

=head1 NAME

Dist::Zilla::Plugin::Authorit
larations in your perl files:

	our $AUTHORITY = 'cpan:APOCAL';

Your metadata ( META.yml or META.json ) will have an entry looking like this:

	x_authority => 'cpan:APOCAL'

=head1 ATTRIBUTES

=head2
App-cpangrep ( T/TS/TSIBLEY/App-cpangrep-0.07.tar.gz, TSIBLEY, 2014; MetaCPAN )
App-cpangrep/lib/App/cpangrep.pm ( view source; MetaCPAN )
ur $VERSION = '0.07';

use Config;
use URI::Escape qw(uri_escape);
use LWP::UserAgent;
use JSON qw(decode_json);
use CPAN::DistnameInfo;
use List::Util qw(sum);

our $SERVER = "http://grep.cpan.me";
o
ngth($content) . " bytes");

    my $result = eval { decode_json($content) };
    if ($@ or not $result) {
        warn "Error decoding JSON response: $@\n";
        debug($content);
        return;
 
Test-Apocalypse ( A/AP/APOCAL/Test-Apocalypse-1.006.tar.gz, APOCAL, 2014; MetaCPAN )
Test-Apocalypse/lib/Test/Apocalypse/Dependencies.pm ( view source; MetaCPAN )
check for metadata dependencies

use Test::More;
use File::Slurp 9999.13;
use YAML::Any 0.72;
use JSON::Any 1.25;
use File::Find::Rule 0.32;
use Perl::PrereqScanner 1.000;
use Test::Deep 0.108;
use CP
a
	my $runtime_req;
	my $test_req;
	my $provides;
	if ( -e 'META.json' ) {
		my $file = read_file( 'META.json' );
		my $metadata = JSON::Any->new->Load( $file );
		$runtime_req = $metadata->{'prereqs'
	$provides = $metadata->{'provides'} if exists $metadata->{'provides'};
	} else {
		die 'No META.(json|yml) found!';
	}

	# Okay, scan the files
	my $found_runtime = CPAN::Meta::Requirements->new;
	my
Dist-Zilla-PluginBundle-Apocalyptic ( A/AP/APOCAL/Dist-Zilla-PluginBundle-Apocalyptic-0.005.tar.gz, APOCAL, 2014; MetaCPAN )
Dist-Zilla-PluginBundle-Apocalyptic/lib/Dist/Zilla/PluginBundle/Apocalyptic.pm ( view source; MetaCPAN )
x' => 1,
		}
	],
	qw(
		License
		ModuleBuildTiny
		MakeMaker::Fallback
	),
	qw(
		MetaYAML
		MetaJSON
		InstallGuide
		DOAP
		Covenant
		CPANFile
	),
	);

#	; -- special stuff for README files
#		we 
]	; create Makefile.PL file for older Perls
	[MetaYAML]			; create META.yml file
	[MetaJSON]			; create META.json file
	[ReadmeAnyFromPod]			; create README file
	[ReadmeAnyFromPod / PodRoot]	; create
Test-Apocalypse ( A/AP/APOCAL/Test-Apocalypse-1.006.tar.gz, APOCAL, 2014; MetaCPAN )
Test-Apocalypse/lib/Test/Apocalypse/FileChecks.pm ( view source; MetaCPAN )
'SIGNATURE' ) {
		push( @files, 'SIGNATURE' );
	}

	# check META.json if it's there
	if ( -e 'META.json' ) {
		push( @files, 'META.json' );
	}

	plan tests => ( ( scalar @files ) * 4 ) + ( ( scalar @p
JE ( S/SP/SPROUT/JE-0.066.tar.gz, SPROUT, 2014; MetaCPAN )
JE/lib/JE.pm ( view source; MetaCPAN )
have overloaded operators)

=item -

The JavaScript datatypes provide C<TO_JSON> methods for compatibility with
L<JSON.pm|JSON>.

=back

JE's greatest weakness is that it's slow (well, what did you ex
JE ( S/SP/SPROUT/JE-0.066.tar.gz, SPROUT, 2014; MetaCPAN )
JE/lib/JE/String.pm ( view source; MetaCPAN )
(@_)
	);
}


sub value {
	defined $_[0][1] ? $_[0][1] : ($_[0][1] = desurrogify($_[0][0]));
}
*TO_JSON=*value;

sub value16 {
	defined $_[0][0] ? $_[0][0] : ($_[0][0] = surrogify($_[0][1]));
}


sub t
JE ( S/SP/SPROUT/JE-0.066.tar.gz, SPROUT, 2014; MetaCPAN )
JE/lib/JE/Boolean.pm ( view source; MetaCPAN )

		$self,$$self[1]->upgrade(@_)
	);
}


sub value { warn caller if !ref $_[0];shift->[0] }
sub TO_JSON { \(0+shift->[0]) }

sub exists { !1 }

sub typeof    { 'boolean' }
sub class     { 'Boolean' }
s
JE ( S/SP/SPROUT/JE-0.066.tar.gz, SPROUT, 2014; MetaCPAN )
JE/lib/JE/Object/Array.pm ( view source; MetaCPAN )
ugh which you can modify the
object, use C<@$a>.

=cut

sub value { [@{$${+shift}{array}}] };
*TO_JSON=*value;


sub exists {
	my ($self, $name) =  (shift, @_);
	my $guts = $$self;

	if ($name eq 'len
VM-EC2 ( L/LD/LDS/VM-EC2-1.28.tar.gz, LDS, 2014; MetaCPAN )
VM-EC2/lib/VM/EC2/Security/Credentials.pm ( view source; MetaCPAN )
oken from its JSON representation (e.g. as returned
 # from instance metadata of an instance that is assigned an IAM role
 my $token = VM::EC2::Security::Credentials->new_from_json($json);

 # open a 
ew_from_json {
    my $class = shift;
    my ($data,$endpoint) = @_;
    eval "require JSON; 1" or die "no JSON module installed: $@"
	unless JSON->can('decode');
    my $hash = JSON::from_json($data)
VM-EC2 ( L/LD/LDS/VM-EC2-1.28.tar.gz, LDS, 2014; MetaCPAN )
VM-EC2/lib/VM/EC2/Security/Policy.pm ( view source; MetaCPAN )
 JSON string that can be passed to
VM::EC2->get_federation_token(), or other AWS libraries.

=head1 STRING OVERLOADING

When used in a string context, this object will interpolate into the
policy JSON
text. In addition,
please see DISCLAIMER.txt for disclaimers of warranty.

=cut

use strict;

use JSON;
use VM::EC2;

use Carp 'croak';
use overload
    '""'     => 'as_string',
    fallback => 1;

su
cal $self->{statements};
        $self->deny('*');
        return $self->as_string;
    }

    my $json = JSON->new();
    $json->canonical(1);

    return $json->encode({Statement => \@list});
}

1;

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