]> Dogcows Code - chaz/graphql-client/commitdiff
Version 0.605 dist
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 30 Mar 2022 01:40:28 +0000 (19:40 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 30 Mar 2022 01:40:28 +0000 (19:40 -0600)
17 files changed:
Changes
LICENSE
MANIFEST
META.json
META.yml
Makefile.PL
README
bin/graphql
lib/GraphQL/Client.pm
lib/GraphQL/Client/CLI.pm
lib/GraphQL/Client/http.pm
lib/GraphQL/Client/https.pm
t/00-report-prereqs.t
t/cli.t
xt/author/distmeta.t [moved from xt/release/distmeta.t with 100% similarity]
xt/author/eol.t
xt/author/no-tabs.t

diff --git a/Changes b/Changes
index 72f769399531aecf726c965a5cc5a0494894ede4..eb94e63a834d5c077155942e443afa3c1e533d59 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 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.
 
diff --git a/LICENSE b/LICENSE
index f87adb0747a64037b1f4e2f5ba7297ef12504969..108986c5925e9f0af7367e3e37cc8cc3c9452c7c 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -292,21 +292,21 @@ Definitions:
 
   - "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
@@ -373,7 +373,7 @@ products derived from this software without specific prior written permission.
 
 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
 
index b03df1818e9073a1929e708da6586d4cf1209336..943fb60d92e8d7baae158d43f31e0315e8abcff2 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,4 @@
-# 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
@@ -22,6 +22,7 @@ t/lib/MockTransport.pm
 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
@@ -30,4 +31,3 @@ xt/author/pod-syntax.t
 xt/author/portability.t
 xt/release/consistent-version.t
 xt/release/cpan-changes.t
-xt/release/distmeta.t
index c19e73782f2c8f5263fa3eceae266123c758d75d..967ae892fbc1f9b06e02858680b003687be7dc6c 100644 (file)
--- a/META.json
+++ b/META.json
@@ -1,10 +1,10 @@
 {
    "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"
 }
 
index 6353c3fe7e2d625d314bc450c85d66c2a50ab152..1b87c760b01bd8a8285c7d290ada9e0368ddabf1 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,7 +1,7 @@
 ---
 abstract: 'Command-line GraphQL client'
 author:
-  - 'Charles McGarvey <chazmcgarvey@brokenzipper.com>'
+  - 'Charles McGarvey <ccm@cpan.org>'
 build_requires:
   ExtUtils::MakeMaker: '0'
   File::Spec: '0'
@@ -17,7 +17,7 @@ build_requires:
 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
@@ -33,19 +33,19 @@ no_index:
 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'
@@ -69,8 +69,10 @@ resources:
   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'
index 4199bc6375833bc58dc9ec332bdb5ae7d16a9796..dfdd55c9dfac19fbe3285b82f9569d496a7893fc 100644 (file)
@@ -1,4 +1,4 @@
-# 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;
 
@@ -8,7 +8,7 @@ use ExtUtils::MakeMaker;
 
 my %WriteMakefileArgs = (
   "ABSTRACT" => "Command-line GraphQL client",
-  "AUTHOR" => "Charles McGarvey <chazmcgarvey\@brokenzipper.com>",
+  "AUTHOR" => "Charles McGarvey <ccm\@cpan.org>",
   "CONFIGURE_REQUIRES" => {
     "ExtUtils::MakeMaker" => 0
   },
@@ -48,7 +48,7 @@ my %WriteMakefileArgs = (
     "Test::More" => 0,
     "lib" => 0
   },
-  "VERSION" => "0.604",
+  "VERSION" => "0.605",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff --git a/README b/README
index b6afcd6bebca8854cd35b2a03aef4c77bac3bd56..1d6ad75753c1e94a3710d5094338908c33ecb1c8 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ NAME
 
 VERSION
 
-    version 0.604
+    version 0.605
 
 SYNOPSIS
 
@@ -286,7 +286,11 @@ BUGS
 
 AUTHOR
 
-    Charles McGarvey <chazmcgarvey@brokenzipper.com>
+    Charles McGarvey <ccm@cpan.org>
+
+CONTRIBUTOR
+
+    jwright <jwright@ecstuning.com>
 
 COPYRIGHT AND LICENSE
 
index db8e7c52a824bd101c9ea315de81a69d0750258f..4b523aaead5c7a87dfca5614f6af9fe9d2d0c588 100755 (executable)
@@ -10,7 +10,7 @@ use strict;
 
 use GraphQL::Client::CLI;
 
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
 
 GraphQL::Client::CLI->main(@ARGV);
 
@@ -26,7 +26,7 @@ graphql - Command-line GraphQL client
 
 =head1 VERSION
 
-version 0.604
+version 0.605
 
 =head1 SYNOPSIS
 
@@ -346,7 +346,13 @@ feature.
 
 =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
 
index 8fd2368420fbc5197e2ea0baeec815ce5da96133..1dec7b251c11754f9dc5e84d7a2f014fea8db99d 100644 (file)
@@ -8,7 +8,7 @@ use Module::Load qw(load);
 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(@_) }
@@ -171,7 +171,7 @@ GraphQL::Client - A GraphQL client
 
 =head1 VERSION
 
-version 0.604
+version 0.605
 
 =head1 SYNOPSIS
 
@@ -361,7 +361,7 @@ feature.
 
 =head1 AUTHOR
 
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
 
 =head1 COPYRIGHT AND LICENSE
 
index 902fc4c1f97c3146d9e8a494e325ad78fd43e8df..888b535b4a9e98e3d6788234f4845ecfb7b09af3 100644 (file)
@@ -11,7 +11,7 @@ use JSON::MaybeXS;
 use Text::ParseWords;
 use namespace::clean;
 
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
 
 my $JSON = JSON::MaybeXS->new(canonical => 1);
 
@@ -138,6 +138,7 @@ sub _get_options {
 
     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}) };
@@ -368,7 +369,7 @@ GraphQL::Client::CLI - Implementation of the graphql CLI program
 
 =head1 VERSION
 
-version 0.604
+version 0.605
 
 =head1 DESCRIPTION
 
@@ -397,7 +398,7 @@ feature.
 
 =head1 AUTHOR
 
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
 
 =head1 COPYRIGHT AND LICENSE
 
index 79a5f2af67ca82595ffe8e1eb2a500b3844d3eea..7c5fd7b412445fed4bd19cf3fdcf2bbf214ab4e0 100644 (file)
@@ -9,7 +9,7 @@ use HTTP::AnyUA::Util qw(www_form_urlencode);
 use HTTP::AnyUA;
 use namespace::clean;
 
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
 
 sub _croak { require Carp; goto &Carp::croak }
 
@@ -171,7 +171,7 @@ GraphQL::Client::http - GraphQL over HTTP
 
 =head1 VERSION
 
-version 0.604
+version 0.605
 
 =head1 SYNOPSIS
 
@@ -316,7 +316,7 @@ feature.
 
 =head1 AUTHOR
 
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
 
 =head1 COPYRIGHT AND LICENSE
 
index 937f9ada39cfa6ab8341e360344d7ab8909b930f..6a56eb49989724c231ea50ac17f4ed9a81e5bada 100644 (file)
@@ -6,7 +6,7 @@ use strict;
 
 use parent 'GraphQL::Client::http';
 
-our $VERSION = '0.604'; # VERSION
+our $VERSION = '0.605'; # VERSION
 
 sub new {
     my $class = shift;
@@ -27,7 +27,7 @@ GraphQL::Client::https - GraphQL over HTTPS
 
 =head1 VERSION
 
-version 0.604
+version 0.605
 
 =head1 DESCRIPTION
 
@@ -48,7 +48,7 @@ feature.
 
 =head1 AUTHOR
 
-Charles McGarvey <chazmcgarvey@brokenzipper.com>
+Charles McGarvey <ccm@cpan.org>
 
 =head1 COPYRIGHT AND LICENSE
 
index c72183a1bebf16b344dc1a660fee5207cee16e05..c3a94ca1da25657cbfbae83860d3d64ac9c030ff 100644 (file)
@@ -3,7 +3,7 @@
 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;
 
@@ -188,6 +188,6 @@ if ( @dep_errors ) {
     );
 }
 
-pass;
+pass('Reported prereqs');
 
 # vim: ts=4 sts=4 sw=4 et:
diff --git a/t/cli.t b/t/cli.t
index a32af83b333f6189b694c70185f0d36b0e2a0cc6..142f2e5ad37979fcb045da8bb728c4d6adc48c8f 100755 (executable)
--- a/t/cli.t
+++ b/t/cli.t
@@ -44,6 +44,29 @@ subtest 'get_options' => sub {
     }
 };
 
+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',
similarity index 100%
rename from xt/release/distmeta.t
rename to xt/author/distmeta.t
index afb6494cdee2433aa0ccb04b5b5f2c1dfbd859b5..e84dca43fd4917470e94701aca7112d496461e84 100644 (file)
@@ -23,6 +23,7 @@ my @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',
@@ -30,8 +31,7 @@ my @files = (
     '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;
index 68ac37ba75ed0ce99828a4fe01abc094f5ea2083..9c4e0afafe788bb1197f70aae3d5fe98bf81282b 100644 (file)
@@ -23,6 +23,7 @@ my @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',
@@ -30,8 +31,7 @@ my @files = (
     '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;
This page took 0.044304 seconds and 4 git commands to generate.