Group
Extension

Matches 35358

OvhApi ( M/MA/MAXS/OvhApi-1.1.tar.gz, MAXS, 2020; MetaCPAN )
OvhApi/lib/OvhApi/Answer.pm ( view source; MetaCPAN )
        qw{ carp croak };
use JSON            ();



# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Class variables

my $Json = JSON->new->allow_nonref;

# End -
 {
            return $content->{'message'};
        }
        else
        {
            return 'JSON decoding error';
        }
    }
    else
    {
        return '';
    }
}

sub toString
{
    my
{'response'}->content };
    }

    eval { $content = $Json->decode($self->{'response'}->content); 1; } or do {
        carp 'Failed to parse JSON content from the answer: ', $self->{'response'}->cont
OvhApi ( M/MA/MAXS/OvhApi-1.1.tar.gz, MAXS, 2020; MetaCPAN )
OvhApi/lib/OvhApi.pm ( view source; MetaCPAN )
;

use Carp            qw{ carp croak };
use List::Util      'first';
use LWP::UserAgent  ();
use JSON            ();
use Digest::SHA     'sha1_hex';


# # # # # # # # # # # # # # # # # # # # # # # # 
 # # # # # # # #
# Class variables

my $UserAgent = LWP::UserAgent->new(timeout => 10);
my $Json      = JSON->new->allow_nonref;

my @accessRuleMethods = qw{ GET POST PUT DELETE };
my %configKey = (
 
e 'get' and $method ne 'delete')
    {
        $body = $Json->encode($params{'body'});

        $httpHeaders{'Content-type'} = 'application/json';
        $content{'Content'} = $body;
    }

    unles
Dist-Zilla-Plugin-TestMLIncluder ( I/IN/INGY/Dist-Zilla-Plugin-TestMLIncluder-0.19.tar.gz, INGY, 2020; MetaCPAN )
Dist-Zilla-Plugin-TestMLIncluder/lib/Dist/Zilla/Plugin/TestMLIncluder.pm ( view source; MetaCPAN )
n/testml-cpan};
    $file->content($content);

    # Then precompile the TestML .t files to Lingy/JSON:
    my $compiler = TestML::Compiler->new;
    my $lingy = $compiler->compile($content, $file->na
s {
  my $self = shift;
  $self->zilla->register_prereqs(
    {
      type  => 'requires',
      phase => 'test',
    },
    'JSON::PP' => 0,
  );
}

__PACKAGE__->meta->make_immutable;

no Moose;

1;
Dancer2-Plugin-Interchange6 ( S/SY/SYSPETE/Dancer2-Plugin-Interchange6-0.204.tar.gz, SYSPETE, 2020; MetaCPAN )
Dancer2-Plugin-Interchange6/lib/Dancer2/Plugin/Interchange6/Cart.pm ( view source; MetaCPAN )
ge6::Schema::Result::Cart>.

=cut

use strict;
use warnings;

use Interchange6::Types -types;
use JSON::MaybeXS ();
use MooseX::CoverableModifiers;
use Module::Runtime 'use_module';

use Moo;
extends 
= $self->dbic_cart_products->order_by( 'cart_position',
        'cart_products_id' );

    my $json = JSON::MaybeXS->new;

    while ( my $record = $rset->next ) {

        push @products,
          {
->weight,
            combine       => $record->combine,
            $record->extra ? ( extra => $json->decode( $record->extra ) ) : (),
          };
    }

    # use seed to avoid hooks
    $self->se
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Script/Help/populate.pod ( view source; MetaCPAN )
ation set names (basically these are the file
names of your fixture configurations, without the '.json' part.

=head2 includes (I,lib,libs,include)

Optional.

Adds the listed paths to @INC.  Handy du
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/RunScript/Trait/Populate.pm ( view source; MetaCPAN )
e::Spec::Functions 'catdir', 'catfile';
use JSON::MaybeXS;

requires 'schema';

sub populate {
  my ($self, @sets) = @_;

  my $fixtures_init_args =
    JSON::MaybeXS->new->decode( $ENV{DBIC_MIGRATION
BIx::Class::Fixtures> to populate
them to the current database.

When naming sets, you skip the '.json' extension.

=head2 set_has_fixtures

Requires $arg

Given a set name, returns a boolean about if
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/RunScript/Trait/Dump.pm ( view source; MetaCPAN )
dir', 'catfile';
use File::Path 'mkpath';
use JSON::MaybeXS;

requires 'schema';

sub dump {
  my ($self, @sets) = @_;

  my $fixtures_init_args =
    JSON::MaybeXS->new->decode( $ENV{DBIC_MIGRATION_F
 => $self->schema,
    configs => [map { "$_.json" } @sets],
    directory_template => sub {
      my ($fixture, $params, $set) = @_;
      $set =~s/\.json//;
      my $fixture_conf_dir = catdir($ENV{
<DBIx::Class::Fixtures> to dump
them from the current database.

When naming sets, you skip the '.json' extension.

=head1 SEE ALSO

L<DBIx::Class::Migration>, L<DBIx::Class::Migration::RunScript>

=h
DD-Dummy ( P/PE/PERLANCAR/DD-Dummy-0.009.tar.gz, PERLANCAR, 2020; MetaCPAN )
DD-Dummy/lib/DD.pm ( view source; MetaCPAN )
 eq 'JSON::Color') {
        require JSON::Color;
        if    ($_action eq 'dd'     ) { print  JSON::Color::encode_json(\@_)."\n"; return @_ }
        elsif ($_action eq 'dd_warn') { warn   JSON::Co
de_json(\@_)."\n"; return @_ }
        elsif ($_action eq 'dd_warn') { die    JSON::Color::encode_json(\@_)."\n"            }
        elsif ($_action eq 'dmp'    ) { return JSON::Color::encode_json(\@
 'JSON::MaybeXS') {
        require JSON::MaybeXS;
        if    ($_action eq 'dd'     ) { print  JSON::MaybeXS::encode_json(\@_)."\n"; return @_ }
        elsif ($_action eq 'dd_warn') { warn   JSON:
Stencil-Source-Awncorp ( A/AW/AWNCORP/Stencil-Source-Awncorp-0.01.tar.gz, AWNCORP, 2020; MetaCPAN )
Stencil-Source-Awncorp/lib/Stencil/Source/Awncorp/Project.pm ( view source; MetaCPAN )
!CHANGES
!CODE_OF_CONDUCT.md
!CONTRIBUTING.md
!INSTALL
!LICENSE
!Makefile.PL
!MANIFEST.SKIP
!META.json
!META.yml
!OVERVIEW.md
!README
!README.md
!STABILITY.md
!TEMPLATE
!VERSION
!build
!cpanfile
!dist
der = Al Newkirk
copyright_year = 2019

[Authority]
authority = cpan:AWNCORP
do_munging = 0

[MetaJSON]
[MetaYAML]
[OurPkgVersion]
[GatherDir]
[ManifestSkip]
[FakeRelease]
[ReadmeAnyFromPod]
[ReadmeAn
Web-Microformats2 ( J/JM/JMAC/Web-Microformats2-0.511.tar.gz, JMAC, 2020; MetaCPAN )
Web-Microformats2/lib/Web/Microformats2.pm ( view source; MetaCPAN )
 = '0.511';

1;

=pod

=head1 NAME

Web::Microformats2 - Read Microformats2 metadata from HTML or JSON

=head1 SYNOPSIS

 use Web::Microformats2;
 use v5.10;

 my $mf2_parser = Web::Microformats2::Par
roperty is: '$name'";
 }

 my $serialized_mf2_doc = $mf2_doc->as_json;

 my $other_mf2_doc = Web::Microformats2::Document->new_from_json(
    $serialized_mf2_doc_from_somewhere_else
 );

=head1 DESCRI
eryable in-memory object. They can also serialize this object
as JSON (using the Microformats2 rules for this), or read an already
JSON-serialized Microformats2 structure for further analysis.

See L<
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Script/Help/dump_all_sets.pod ( view source; MetaCPAN )
ation set names (basically these are the file
names of your fixture configurations, without the '.json' part.

=head2 includes (I,lib,libs,include)

Optional.

Adds the listed paths to @INC.  Handy du
Web-Microformats2 ( J/JM/JMAC/Web-Microformats2-0.511.tar.gz, JMAC, 2020; MetaCPAN )
Web-Microformats2/lib/Web/Microformats2/Parser.pm ( view source; MetaCPAN )
);
use HTML::TreeBuilder::XPath;
use HTML::Entities;
use v5.10;
use Scalar::Util qw(blessed);
use JSON;
use DateTime::Format::ISO8601;
use URI;
use Carp;

use Web::Microformats2::Item;
use Web::Microf
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Script/Help/prepare.pod ( view source; MetaCPAN )
ll also generate diffs and copy any fixture
configs etc (as well as generating a fresh 'all_table.json' fixture config). For
safety reasons, we never overwrite any fixture configs (even if
C<overwrite
Web-Microformats2 ( J/JM/JMAC/Web-Microformats2-0.511.tar.gz, JMAC, 2020; MetaCPAN )
Web-Microformats2/lib/Web/Microformats2/Item.pm ( view source; MetaCPAN )
_property, but don't look for or insist on
#                    prefixes. Good for inflating from JSON, which has no
#                    prefix information.
sub add_base_property {
    my $self = shi
{ 'no_prefixes' } ) {
        @types = map { "h-$_" } @types;
    }

    return @types;
}

sub TO_JSON {
    my $self = shift;

    my $data = {
        properties => $self->properties,
        type =
a
L<Web::Microformats2::Document> instance, itself created by running
Microformats2-laden HTML or JSON through a L<Web::Microformats2::Parser>
object.

See L<Web::Microformats2> for further context an
Web-Microformats2 ( J/JM/JMAC/Web-Microformats2-0.511.tar.gz, JMAC, 2020; MetaCPAN )
Web-Microformats2/lib/Web/Microformats2/Document.pm ( view source; MetaCPAN )
b::Microformats2::Document;
use Moo;
use MooX::HandlesVia;
use Encode qw(encode_utf8);
use JSON qw(decode_json);
use List::Util qw(any);
use Types::Standard qw(HashRef ArrayRef InstanceOf);

use Web::
ub as_json {
    my $self = shift;

    my $data_for_json = {
        rels => $self->rels,
        'rel-urls' => $self->rel_urls,
        items => $self->top_level_items,
    };

    return JSON->new-
or_json );
}

sub as_raw_data {
    my $self = shift;

    return decode_json( $self->as_json );
}

sub new_from_json {
    my $class = shift;

    my ( $json ) = @_;

    my $data_ref = decode_json (
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Tutorial/ThirdMigration.pod ( view source; MetaCPAN )
     /2
          (Same as before)
        /3
          /conf
            all_tables.json
            countries.json
      /migrations
        /_common
          (Same as before)
        /_source
    
otice that C<prepare>
made a fresh C<all_tables.json> for you, which has added your new bridge table
and it also copied over your custom C<countries.json> from the previous version.
Please note that t
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Tutorial/SecondMigration.pod ( view source; MetaCPAN )
/fixtures
        /1
          (Same as before)
        /2
          /conf
            all_tables.json
      /migrations
        /_common
          (Same as before)
        /_source
          (system 
base-schema.db

Ok, we got a bunch more files.  You can see that we've created a new
C<all_tables.json> fixture configuration, which if you peek inside, you will
see has been updated to include your n
      (Same as before)
        /2
          /conf
            all_tables.json

By default we build you a fresh C<all_tables.json> that should reflect any new
or removed tables.  Additionally, if there
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Script/Help/dump_named_sets.pod ( view source; MetaCPAN )
ation set names (basically these are the file
names of your fixture configurations, without the '.json' part.

=head2 includes (I,lib,libs,include)

Optional.

Adds the listed paths to @INC.  Handy du
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration/Tutorial/FirstMigration.pod ( view source; MetaCPAN )
have the following:

    /share
      /fixtures
        /1
          /conf
            all_tables.json
      /migrations
        /_source  (There's stuff in here, but we won't peek!)
        /SQLite
 
rve.  In any case you
can take a quick peek to get the idea:

C</share/fixtures/1/conf/all_tables.json>

    {
       "sets" : [
          {
             "quantity" : "all",
             "class" : "Cd
     },
       "has_many" : {
          "fetch" : 0
       }
    }

L<DBIx::Class::Fixtures> uses JSON for its configuration.  In this case you
can note that we are just dumping all the rows in all th
DBIx-Class-Migration ( J/JJ/JJNAPIORK/DBIx-Class-Migration-0.075.tar.gz, JJNAPIORK, 2020; MetaCPAN )
DBIx-Class-Migration/lib/DBIx/Class/Migration.pm ( view source; MetaCPAN )
 DBIx::Class::Migration;

our $VERSION = "0.075";
$VERSION = eval $VERSION;

use Moo;
use JSON::MaybeXS qw(JSON);
use File::Copy 'cp';
use File::Spec::Functions 'catdir', 'catfile', 'updir';
use File:
  class=> $_,
    quantity => "all",
  } } @_;
}

sub _create_all_fixture_config_from_sources {
  JSON->new->pretty(1)->encode({
    "belongs_to" => { "fetch" => 0 },
    "has_many" => { "fetch" => 0 
s = $self->_filter_views(@sources);
  my $all_tables_path = catfile($fixture_conf_dir,'all_tables.json');
  _create_all_fixture_set($all_tables_path, @real_tables);

  if(my $previous = _has_previous_

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