Revision history for GraphQL-Client.
+0.605 2022-03-29 19:39:31-06:00 America/Denver
+ * Fix bug preventing use of transport headers with CLI. (thanks jwrightecs)
+
0.604 2020-03-22 03:44:44-06:00 MST7MDT
* Add --filter JSONPATH argument to CLI.
- "Package" refers to the collection of files distributed by the Copyright
Holder, and derivatives of that collection of files created through
- textual modification.
+ textual modification.
- "Standard Version" refers to such a Package if it has not been modified,
or has been modified in accordance with the wishes of the Copyright
- Holder.
+ Holder.
- "Copyright Holder" is whoever is named in the copyright or copyrights for
- the package.
+ the package.
- "You" is you, if you're thinking about copying or distributing this Package.
- "Reasonable copying fee" is whatever you can justify on the basis of media
cost, duplication charges, time of people involved, and so on. (You will
not be required to justify it to the Copyright Holder, but only to the
- computing community at large as a market that must bear the fee.)
+ computing community at large as a market that must bear the fee.)
- "Freely Available" means that no fee is charged for the item itself, though
there may be fees involved in handling the item. It also means that
recipients of the item may redistribute it under the same conditions they
- received it.
+ received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.014.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.024.
Changes
LICENSE
MANIFEST
t/lib/MockUA.pm
xt/author/clean-namespaces.t
xt/author/critic.t
+xt/author/distmeta.t
xt/author/eol.t
xt/author/minimum-version.t
xt/author/no-tabs.t
xt/author/portability.t
xt/release/consistent-version.t
xt/release/cpan-changes.t
-xt/release/distmeta.t
{
"abstract" : "Command-line GraphQL client",
"author" : [
- "Charles McGarvey <chazmcgarvey@brokenzipper.com>"
+ "Charles McGarvey <ccm@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010",
+ "generated_by" : "Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"provides" : {
"GraphQL::Client" : {
"file" : "lib/GraphQL/Client.pm",
- "version" : "0.604"
+ "version" : "0.605"
},
"GraphQL::Client::CLI" : {
"file" : "lib/GraphQL/Client/CLI.pm",
- "version" : "0.604"
+ "version" : "0.605"
},
"GraphQL::Client::Error" : {
"file" : "lib/GraphQL/Client.pm",
- "version" : "0.604"
+ "version" : "0.605"
},
"GraphQL::Client::http" : {
"file" : "lib/GraphQL/Client/http.pm",
- "version" : "0.604"
+ "version" : "0.605"
},
"GraphQL::Client::https" : {
"file" : "lib/GraphQL/Client/https.pm",
- "version" : "0.604"
+ "version" : "0.605"
}
},
"release_status" : "stable",
"web" : "https://github.com/chazmcgarvey/graphql-client"
}
},
- "version" : "0.604",
+ "version" : "0.605",
"x_authority" : "cpan:CCM",
- "x_generated_by_perl" : "v5.28.0",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.15",
+ "x_contributors" : [
+ "jwright <jwright@ecstuning.com>"
+ ],
+ "x_generated_by_perl" : "v5.34.1",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.27",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
---
abstract: 'Command-line GraphQL client'
author:
- - 'Charles McGarvey <chazmcgarvey@brokenzipper.com>'
+ - 'Charles McGarvey <ccm@cpan.org>'
build_requires:
ExtUtils::MakeMaker: '0'
File::Spec: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
provides:
GraphQL::Client:
file: lib/GraphQL/Client.pm
- version: '0.604'
+ version: '0.605'
GraphQL::Client::CLI:
file: lib/GraphQL/Client/CLI.pm
- version: '0.604'
+ version: '0.605'
GraphQL::Client::Error:
file: lib/GraphQL/Client.pm
- version: '0.604'
+ version: '0.605'
GraphQL::Client::http:
file: lib/GraphQL/Client/http.pm
- version: '0.604'
+ version: '0.605'
GraphQL::Client::https:
file: lib/GraphQL/Client/https.pm
- version: '0.604'
+ version: '0.605'
recommends:
HTTP::Tiny: '0'
Pod::Usage: '0'
bugtracker: https://github.com/chazmcgarvey/graphql-client/issues
homepage: https://github.com/chazmcgarvey/graphql-client
repository: https://github.com/chazmcgarvey/graphql-client.git
-version: '0.604'
+version: '0.605'
x_authority: cpan:CCM
-x_generated_by_perl: v5.28.0
+x_contributors:
+ - 'jwright <jwright@ecstuning.com>'
+x_generated_by_perl: v5.34.1
x_serialization_backend: 'YAML::Tiny version 1.73'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.014.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.024.
use strict;
use warnings;
my %WriteMakefileArgs = (
"ABSTRACT" => "Command-line GraphQL client",
- "AUTHOR" => "Charles McGarvey <chazmcgarvey\@brokenzipper.com>",
+ "AUTHOR" => "Charles McGarvey <ccm\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"Test::More" => 0,
"lib" => 0
},
- "VERSION" => "0.604",
+ "VERSION" => "0.605",
"test" => {
"TESTS" => "t/*.t"
}
VERSION
- version 0.604
+ version 0.605
SYNOPSIS
AUTHOR
- Charles McGarvey <chazmcgarvey@brokenzipper.com>
+ Charles McGarvey <ccm@cpan.org>
+
+CONTRIBUTOR
+
+ jwright <jwright@ecstuning.com>
COPYRIGHT AND LICENSE
use GraphQL::Client::CLI;
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
GraphQL::Client::CLI->main(@ARGV);
=head1 VERSION
-version 0.604
+version 0.605
=head1 SYNOPSIS
=head1 AUTHOR
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
+
+=head1 CONTRIBUTOR
+
+=for stopwords jwright
+
+jwright <jwright@ecstuning.com>
=head1 COPYRIGHT AND LICENSE
use Scalar::Util qw(reftype);
use namespace::clean;
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
sub _croak { require Carp; goto &Carp::croak }
sub _throw { GraphQL::Client::Error->throw(@_) }
=head1 VERSION
-version 0.604
+version 0.605
=head1 SYNOPSIS
=head1 AUTHOR
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
=head1 COPYRIGHT AND LICENSE
use Text::ParseWords;
use namespace::clean;
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
my $JSON = JSON::MaybeXS->new(canonical => 1);
my $transport = eval { _expand_vars($options{transport}) };
die "Two or more --transport keys are incompatible.\n" if $@;
+ $options{transport} = $transport if ref $transport eq 'HASH' && %$transport;
if (ref $options{variables}) {
$options{variables} = eval { _expand_vars($options{variables}) };
=head1 VERSION
-version 0.604
+version 0.605
=head1 DESCRIPTION
=head1 AUTHOR
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
=head1 COPYRIGHT AND LICENSE
use HTTP::AnyUA;
use namespace::clean;
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
sub _croak { require Carp; goto &Carp::croak }
=head1 VERSION
-version 0.604
+version 0.605
=head1 SYNOPSIS
=head1 AUTHOR
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
=head1 COPYRIGHT AND LICENSE
use parent 'GraphQL::Client::http';
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
sub new {
my $class = shift;
=head1 VERSION
-version 0.604
+version 0.605
=head1 DESCRIPTION
=head1 AUTHOR
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
=head1 COPYRIGHT AND LICENSE
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028
use Test::More tests => 1;
);
}
-pass;
+pass('Reported prereqs');
# vim: ts=4 sts=4 sw=4 et:
}
};
+subtest 'get_options_transport' => sub {
+ my $expected = {
+ format => 'json:pretty',
+ filter => undef,
+ help => undef,
+ manual => undef,
+ operation_name => undef,
+ outfile => undef,
+ query => 'bar',
+ transport => { headers => {'X-Test' => 'value', 'X-Test-2' => 'val2' } },
+ unpack => 0,
+ url => 'foo',
+ variables => undef,
+ version => undef,
+ };
+
+ my $r = GraphQL::Client::CLI->_get_options(qw{--url foo --query bar --transport headers.X-Test=value --transport headers.X-Test-2=val2});
+ is_deeply($r, $expected, '--url, --query set option and correctly expanded transport options') or diag explain $r;
+};
+
+
+
+
subtest 'expand_vars' => sub {
my $r = GraphQL::Client::CLI::_expand_vars({
'foo.bar' => 'baz',
't/lib/MockUA.pm',
'xt/author/clean-namespaces.t',
'xt/author/critic.t',
+ 'xt/author/distmeta.t',
'xt/author/eol.t',
'xt/author/minimum-version.t',
'xt/author/no-tabs.t',
'xt/author/pod-syntax.t',
'xt/author/portability.t',
'xt/release/consistent-version.t',
- 'xt/release/cpan-changes.t',
- 'xt/release/distmeta.t'
+ 'xt/release/cpan-changes.t'
);
eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
't/lib/MockUA.pm',
'xt/author/clean-namespaces.t',
'xt/author/critic.t',
+ 'xt/author/distmeta.t',
'xt/author/eol.t',
'xt/author/minimum-version.t',
'xt/author/no-tabs.t',
'xt/author/pod-syntax.t',
'xt/author/portability.t',
'xt/release/consistent-version.t',
- 'xt/release/cpan-changes.t',
- 'xt/release/distmeta.t'
+ 'xt/release/cpan-changes.t'
);
notabs_ok($_) foreach @files;