view release on metacpan or search on metacpan
inc/Module/Install/Metadata.pm view on Meta::CPAN
}
sub write_mymeta_json {
my $self = shift;
# We need JSON to write the MYMETA.json file
unless ( eval { require JSON; 1; } ) {
return 1;
}
# Generate the data
my $meta = $self->_write_mymeta_data or return 1;
# Save as the MYMETA.yml file
print "Writing MYMETA.json\n";
Module::Install::_write(
'MYMETA.json',
JSON->new->pretty(1)->canonical->encode($meta),
);
}
sub _write_mymeta_data {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
"SUZUKI Masashi <m15.suzuki.masashi@gmail.com>",
"htk291 <htk0129@gmail.com>",
"htk291 <htk291@gmail.com>",
"kiryuanzu <anzu.nagato.1005@gmail.com>"
],
"x_serialization_backend" : "JSON::PP version 2.97001",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
"version" : "6.029"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
"version" : "6.029"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
"Ricardo Signes <rjbs@semiotic.systems>",
"Sean Zellmer <sean@lejeunerenard.com>"
],
"x_generated_by_perl" : "v5.37.2",
"x_rjbs_perl_window" : "no-mercy",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.30",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/RPC.pm view on Meta::CPAN
use B;
use B::Deparse;
use Continuity;
use IO::Handle;
# use Devel::Pointer;
use JSON;
use Data::Dumper;
use Devel::Caller 'caller_cv';
use PadWalker 'peek_sub';
use Scalar::Util 'blessed';
my $comment = <<'EOF';
Todo:
* Accept JSON as input too, for the parameters!
* When taking apart CODE, do closes_over() too, not just peek_my().
* Weaken references held in %registry.
lib/Acme/RPC.pm view on Meta::CPAN
* We don't dump references found inside CODE in the main view.
But if they request a dump for that object, dump it.
Likewise, we're not dumping arrays and hashes, but if they request a dump on it, dump it.
* JSON output on the default tree view too.
We'd have to sanitize our tree...
* Document that people need to use Event::loop or something; an Acme module to insert calls to cede would be awesome for this
* Package names like foo:: should be hyperlinked too; should be able call ?oid=whatever&action=new&args=whatever on them
lib/Acme/RPC.pm view on Meta::CPAN
* action=call on coderefs and blessed objects, with an args parameter, or arg1, arg2, arg3, etc, and a method parameter for blessed objs.
* json will croak if a reference contains objects in side it somewhere. Should handle this gracefully.
* Offer JSON output! Not just Data::Dumper. Do this for action=dump, action=call, and the default tree view.
* If Devel::Leak won't give us refs... have to do an Acme::State style crawl from main::,
but crawling into each sub and looking at its lexicals with PadWalker.
Could make for a nice tree view.
Would also make it easy to filter out the variables that hold refs.
lib/Acme/RPC.pm view on Meta::CPAN
} elsif( blessed($ob) and UNIVERSAL::isa($ob, 'ARRAY') ) {
$ob = [ @$ob ];
} elsif( blessed($ob) and UNIVERSAL::isa($ob, 'SCALAR') ) {
$ob = \ ${$ob};
} elsif( blessed($ob) ) {
$request->print("object not blessed hash, array or scalar... no logic for converting to JSON, sorry");
return;
}
return $ob;
}
lib/Acme/RPC.pm view on Meta::CPAN
Gives an index of packages, subroutines, variables in those subroutines, closures in those variables, and so on.
=item C<< output=json >>
Output a JavaScript datastructures (JSON) instead of Perl style L<Data::Dumper> or HTML.
The main index page otherwise prints out HTML (under the assumption that a human will be digging through it)
and other things mostly emit L<Data::Dumper> formatted text.
=item C<< oid=(number) >>
=item C<< path=/path/to/something >>
There are two ways to specify or reference an object: by it's C<oid> or by the path to navigate to it from the
main index screen.
JSON and HTML output from the main index screen specifies the oids of each item and the paths can be derived from
the labels in the graph.
With no action specified, it defaults to C<dump>.
=item C<< action=call >>
lib/Acme/RPC.pm view on Meta::CPAN
=head2 TODO
C<oidarg[n]> to pass in an arbitrary other object as a parameter.
JSON posted to the server to specify arguments.
JSON posted to the server to specify the entire function/method call.
=head2 BUGS
There is no security. At all.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Rando.pm view on Meta::CPAN
$Acme::Rando::VERSION = '0.1';
use strict;
use warnings;
use HTTP::Tiny;
use JSON;
use parent 'Exporter';
our @EXPORT = qw(rando);
lib/Acme/Rando.pm view on Meta::CPAN
unless ($res->{success}) {
return "These aren't the droids you're looking for: $res->{reason}"
}
my $dat = JSON::decode_json($res->{content});
return $dat->{quote};
}
=head1 AUTHORS
view all matches for this distribution
view release on metacpan or search on metacpan
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@SCHWIGON/MetaConfig",
"version" : "5.039"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@SCHWIGON/MetaJSON",
"version" : "5.039"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
"config" : {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Metadata.pm view on Meta::CPAN
}
sub write_mymeta_json {
my $self = shift;
# We need JSON to write the MYMETA.json file
unless ( eval { require JSON; 1; } ) {
return 1;
}
# Generate the data
my $meta = $self->_write_mymeta_data or return 1;
# Save as the MYMETA.yml file
print "Writing MYMETA.json\n";
Module::Install::_write(
'MYMETA.json',
JSON->new->pretty(1)->canonical->encode($meta),
);
}
sub _write_mymeta_data {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
"Dist::Zilla::Plugin::License" : "0",
"Dist::Zilla::Plugin::MakeMaker" : "0",
"Dist::Zilla::Plugin::Manifest" : "0",
"Dist::Zilla::Plugin::ManifestSkip" : "0",
"Dist::Zilla::Plugin::MetaConfig" : "0",
"Dist::Zilla::Plugin::MetaJSON" : "0",
"Dist::Zilla::Plugin::MetaNoIndex" : "0",
"Dist::Zilla::Plugin::MetaProvides::Package" : "2.004003",
"Dist::Zilla::Plugin::MetaYAML" : "0",
"Dist::Zilla::Plugin::NextRelease::Grouped" : "0.0200",
"Dist::Zilla::Plugin::PodSyntaxTests" : "0",
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "MetaConfig",
"version" : "6.017"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "MetaJSON",
"version" : "6.017"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
"config" : {
"x_authority" : "cpan:CSSON",
"x_contributors" : [
"Karen Etheridge <ether@cpan.org>"
],
"x_generated_by_perl" : "v5.20.1",
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0114",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/ReturnValue.pm view on Meta::CPAN
use File::Temp qw(tempdir);
use File::Path;
use File::Copy;
use Archive::Any;
use Data::Dumper;
use JSON;
use Encode;
use Moose;
use List::Util qw(any);
with qw(MooseX::Getopt);
lib/Acme/ReturnValue.pm view on Meta::CPAN
has 'cpan' => (is=>'ro',isa=>'Path::Class::Dir',coerce=>1);
has 'dump_to' => (is=>'ro',isa=>'Path::Class::Dir',coerce=>1,default=>'returnvalues');
has 'json_encoder' => (is=>'ro',lazy_build=>1);
sub _build_json_encoder {
return JSON->new->pretty;
}
sub run {
view all matches for this distribution
view release on metacpan or search on metacpan
t/manifest.t
t/pod-coverage.t
t/pod.t
t/util.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
[@Filter]
bundle = @Classic
remove = PodVersion
[AutoVersion]
[MetaJSON]
[NextRelease]
[PodWeaver]
[AutoPrereq]
[UploadToCPAN]
view all matches for this distribution
view release on metacpan or search on metacpan
t/my_code.pl
t/my_safe_code.pl
t/my_unsafe_code.pl
t/use-no.pl
META.yml Module meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
".github/",
".github/*",
".github/**",
".clang-format"
],
"x_serialization_backend" : "JSON::PP version 4.16",
"x_static_install" : 0
}
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST This list of files
MANIFEST.SKIP
README
t/Acme-September-Eternal.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
"license" : [
"http://dev.perl.org/licenses/"
]
},
"version" : "0.03",
"x_serialization_backend" : "JSON::PP version 4.16"
}
view all matches for this distribution
view release on metacpan or search on metacpan
}
},
"version" : "0.003",
"x_authority" : "cpan:TEAM",
"x_generated_by_perl" : "v5.34.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.27",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
view all matches for this distribution
view release on metacpan or search on metacpan
"web" : "https://github.com/Songmu/Acme-Songmu"
}
},
"version" : "v0.1.0",
"x_authority" : "cpan:SONGMU",
"x_serialization_backend" : "JSON::PP version 2.27400_02",
"x_static_install" : 1
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/pod-coverage.t
t/pod.t
t/09-changes.t
examples/bogo.pl
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
t/pod-coverage.t
t/pod.t
t/09-changes.t
examples/bozo.pl
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
t/test1.t
t/test1_alt.t
t/test2.t
t/test2_alt.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
[PkgVersion]
[AutoPrereqs]
[GithubMeta]
[ChangelogFromGit]
[MetaYAML]
[MetaJSON]
[MakeMaker]
[ModuleBuild]
[ManifestSkip]
[Manifest]
[PodWeaver]
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL
MANIFEST This list of files
SREZIC.pm
t/test.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
"url" : "https://github.com/JerilynFranz/perl-Acme-Sub-Parms.git",
"web" : "https://github.com/JerilynFranz/perl-Acme-Sub-Parms"
}
},
"version" : "1.03",
"x_serialization_backend" : "JSON::PP version 2.27400_02"
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/pod-spell.t view on Meta::CPAN
add_stopwords(qw(
Jozef Kutej
OFC
API
JSON
json
TBD
html
RT
CPAN
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
"license" : [
"http://www.perlfoundation.org/artistic_license_2_0"
]
},
"version" : "0.01",
"x_serialization_backend" : "JSON::PP version 4.04"
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/a2.t
t/README
t/testrules.yml
t/log/dummy
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
view all matches for this distribution
view release on metacpan or search on metacpan
"IPC::Open3" : "0",
"Perl::Critic" : "1.123",
"Perl::Tidy" : "20140711",
"Pod::Coverage::TrustPod" : "0",
"Test::CPAN::Changes" : "0.19",
"Test::CPAN::Meta::JSON" : "0.16",
"Test::Code::TidyAll" : "0.24",
"Test::EOL" : "0",
"Test::Mojibake" : "0",
"Test::More" : "0.88",
"Test::NoTabs" : "0",
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@DROLSKY/MetaConfig",
"version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@DROLSKY/MetaJSON",
"version" : "5.043"
},
{
"class" : "Dist::Zilla::Plugin::SurgicalPodWeaver",
"config" : {
"class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
"name" : "@DROLSKY/Test::CPAN::Changes",
"version" : "0.009"
},
{
"class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON",
"name" : "@DROLSKY/Test::CPAN::Meta::JSON",
"version" : "0.004"
},
{
"class" : "Dist::Zilla::Plugin::Test::EOL",
"config" : {
view all matches for this distribution