count of Datum records from the database.\n"; exit(1) }
# fetch all the data available (posibly json), process it,
# create Datum objects, store it in DB and return an array
# of the Datum objects
type (SQLite or MySQL), and DB connection options. The example configuration at 't/example-config.json' can be used as a quick start. Make a copy if that file and do not modify that file directly as t
ave or don't save data to files (json and pl hashtables). Default is ".($do_save_to_file?"yes":"no").".]\n"
. "[--(no)save-to-db : save or don't save data to DB (json and pl hashtables). Default is "
<<'EXA'
db-search-and-make-new-db.pl --config-file-source config/config.json --config-file-destination config/destination.json --tablename 'Datum' --conditions "{'name'=>'Hackney'}" --attributes "{'r
e::SSLLabs::EndpointDetails();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
if ( defined $self->{details} ) {
$self->{details} =
WebSer
_) for @{$self->headers};
} else {
$tx->req->headers->header('Content-Type' => 'application/json');
}
return $self;
}
method set_identity($ua, $tx, %args) {
$tx->req->headers->header('Us
::Client->new(url => 'https://httpbin.org');
# $client->resource('post');
# $client->update(json => {...});
=cut
=head1 DESCRIPTION
This package provides an abstraction and method for rapidly
ient->resource('post')->create(
json => {active => 1}
);
# is equivalent to
my $tx2 = $client->resource('post')->dispatch(
method => 'post',
json => {active => 1}
);
[$tx1, $t
ol;
use strict;
use warnings;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub id {
my ($self) = @_;
r
ey;
use strict;
use warnings;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub strength {
my ($self) = @_;
fo;
use strict;
use warnings;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub version {
my ($self) = @_;
es;
use strict;
use warnings;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub status_details {
my ($self)
WebService::SSLLabs::Suite();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
if ( defined $self->{list} ) {
my @suites =
Service::SSLLabs::SimClient();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
$self->{client} = WebService::SSLLabs::SimClient->ne
w::Timesheet;
use App::Jiffy::Util::Duration qw/round/;
use YAML::Any qw( LoadFile );
use JSON::MaybeXS 'JSON';
use Getopt::Long;
Getopt::Long::Configure("pass_through");
use Moo;
has cfg => (
i
duration ) ); $_ } @entries;
}
if ( $options->{json} ) {
my $json = JSON::MaybeXS->new( pretty => 1, convert_blessed => 1 );
print $json->encode( \@entries );
} else {
$options->{fr
ntries Found\n";
return;
}
if ( $options->{json} ) {
my $json = JSON::MaybeXS->new( pretty => 1, convert_blessed => 1 );
print $json->encode( \@entries );
} else {
$options->{fr
bService::SSLLabs::Endpoint();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
if ( defined $self->{endpoints} ) {
my @endpoints = @{ $self->{endpoi
ured qw(:all);
use Carp;
use File::Spec;
use File::Temp;
use IPC::Open3;
use Symbol 'gensym';
use JSON;
use Net::DNS;
use Data::Validate::IP qw(is_ipv4 is_ipv6);
use Data::Validate::Domain qw(is_domai
n_results
{
my $self = shift;
my $cmd = $self->command_line;
my $sres = $self->_from_json($self->_slurp_file($self->scan_results_file));
my %up_hosts;
$self->logger->warn("No res
rn $str;
}
# internal method _from_json
# Does what it implies. Will convert JSON format into a Perl data structure.
#
# Returns Perl data structure.
sub _from_json
{
my $self = shift;
my $da
Runner;
use strict;
use File::Find qw(find);
use File::Spec::Functions qw(catfile abs2rel);
use JSON -support_by_pp; # -support_by_pp is used to make Perl on Mac happy
use Serge::Util qw(subst_macro
my $json_components = $self->run_weblate_cli('--format json list-components '.$self->{data}->{project}, 1);
my $json_components_tree = $self->parse_json($json_components);
my $json_compon
ents_list = $self->parse_list($json_components_tree);
my @components = map { $_->{slug} } @$json_components_list;
my %translations = ();
my %langs_hash = map { $_ => 1 } @$langs;
fo
d import
'Example::re3' => (variant => 'B'), # supply generator arguments
'JSON::*' => (-prefix => 'json_'), # add prefix
'License::*' => (
# filtering options
-has_tag
package Catmandu::Validator::JSONSchema;
use Catmandu::Sane;
use Moo;
use Catmandu::Util qw(:is :check);
use JSON::Validator;
our $VERSION = "0.15";
with qw(Catmandu::Validator);
has schema => (
has _validator => (
is => 'ro',
lazy => 1,
builder => sub {
my $validator = JSON::Validator->new;
$validator->schema($_[0]->schema);
$validator;
}
);
sub val
:Validator::JSONSchema - An implementation of Catmandu::Validator to support JSON Schema
=begin markdown
# STATUS
[;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
if ( defined $self->{certs} ) {
my @certs =
Service::SSLLabs::DrownHost();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
$self->{key} = WebService::SSLLabs::Key->new( $self
st;
use strict;
use warnings;
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub ip {
my ($self) = @_;
r
rict;
use warnings;
use URI();
our $VERSION = '0.33';
sub new {
my ( $class, $json ) = @_;
my $self = $json;
bless $self, $class;
return $self;
}
sub alt_names {
my ($self) = @_