Skip to content

Commit

Permalink
release v0.004
Browse files Browse the repository at this point in the history
    [Added]

    - /uploads API for querying the CPAN uploads information table. See
      http://api.cpantesters.org/docs/?url=/v1#!/default/uploads for
      details.

    - Upload feeds to get push notifications of new CPAN uploads via
      WebSockets. Subscribe to any /uploads endpoint to get a feed of
      new information from that endpoint.
  • Loading branch information
preaction committed Dec 18, 2016
1 parent bfcd1f7 commit 264bace
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
18 changes: 13 additions & 5 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@
"runtime" : {
"requires" : {
"Alien::SwaggerUI" : "0",
"CPAN::Testers::Schema" : "0.002",
"CPAN::Testers::Schema" : "0.004",
"File::Share" : "0",
"Import::Base" : "0.012",
"Log::Any" : "1.045",
"Log::Any::Adapter::MojoLog" : "0.02",
"Mercury" : "0.010",
"Mojolicious" : "6",
"Mojolicious::Plugin::Config" : "0",
"Mojolicious::Plugin::OpenAPI" : "0",
"perl" : "5.024"
}
Expand All @@ -52,22 +54,28 @@
"File::Spec" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"SQL::Translator" : "0.11018",
"Test::Lib" : "0",
"Test::More" : "1.001005"
}
}
},
"provides" : {
"CPAN::Testers::API" : {
"file" : "lib/CPAN/Testers/API.pm",
"version" : "0.003"
"version" : "0.004"
},
"CPAN::Testers::API::Base" : {
"file" : "lib/CPAN/Testers/API/Base.pm",
"version" : "0.003"
"version" : "0.004"
},
"CPAN::Testers::API::Controller::Release" : {
"file" : "lib/CPAN/Testers/API/Controller/Release.pm",
"version" : "0.003"
"version" : "0.004"
},
"CPAN::Testers::API::Controller::Upload" : {
"file" : "lib/CPAN/Testers/API/Controller/Upload.pm",
"version" : "0.004"
}
},
"release_status" : "stable",
Expand All @@ -83,7 +91,7 @@
},
"x_IRC" : "irc://irc.perl.org/#cpantesters-discuss"
},
"version" : "0.003",
"version" : "0.004",
"x_authority" : "cpan:PREACTION",
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0216"
}
Expand Down
12 changes: 10 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,23 @@ my %WriteMakefileArgs = (
"NAME" => "CPAN::Testers::API",
"PREREQ_PM" => {
"Alien::SwaggerUI" => 0,
"CPAN::Testers::Schema" => "0.002",
"CPAN::Testers::Schema" => "0.004",
"File::Share" => 0,
"Import::Base" => "0.012",
"Log::Any" => "1.045",
"Log::Any::Adapter::MojoLog" => "0.02",
"Mercury" => "0.010",
"Mojolicious" => 6,
"Mojolicious::Plugin::Config" => 0,
"Mojolicious::Plugin::OpenAPI" => 0
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"SQL::Translator" => "0.11018",
"Test::Lib" => 0,
"Test::More" => "1.001005"
},
"VERSION" => "0.004",
Expand All @@ -52,7 +56,7 @@ my %WriteMakefileArgs = (

my %FallbackPrereqs = (
"Alien::SwaggerUI" => 0,
"CPAN::Testers::Schema" => "0.002",
"CPAN::Testers::Schema" => "0.004",
"ExtUtils::MakeMaker" => 0,
"File::Share" => 0,
"File::Spec" => 0,
Expand All @@ -61,8 +65,12 @@ my %FallbackPrereqs = (
"Import::Base" => "0.012",
"Log::Any" => "1.045",
"Log::Any::Adapter::MojoLog" => "0.02",
"Mercury" => "0.010",
"Mojolicious" => 6,
"Mojolicious::Plugin::Config" => 0,
"Mojolicious::Plugin::OpenAPI" => 0,
"SQL::Translator" => "0.11018",
"Test::Lib" => 0,
"Test::More" => "1.001005"
);

Expand Down
21 changes: 20 additions & 1 deletion README.mkdn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CPAN::Testers::API - REST API for CPAN Testers data

# VERSION

version 0.003
version 0.004

# STATUS

Expand Down Expand Up @@ -71,6 +71,25 @@ The resulting JSON looks like so:
]
}

# CONFIG

This application can be configured by setting the `MOJO_CONFIG`
environment variable to the path to a configuration file. The
configuration file is a Perl script containing a single hash reference,
like:

# api.conf
{
broker => 'ws://127.0.0.1:5000',
}

The possible configuration keys are below:

## broker

The URL to a [Mercury](https://metacpan.org/pod/Mercury) message broker, starting with `ws://`. This
broker is used to forward messages to every connected user.

# SEE ALSO

[Mojolicious](https://metacpan.org/pod/Mojolicious), [Mojolicious::Plugin::OpenAPI](https://metacpan.org/pod/Mojolicious::Plugin::OpenAPI),
Expand Down
6 changes: 5 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
requires "Alien::SwaggerUI" => "0";
requires "CPAN::Testers::Schema" => "0.002";
requires "CPAN::Testers::Schema" => "0.004";
requires "File::Share" => "0";
requires "Import::Base" => "0.012";
requires "Log::Any" => "1.045";
requires "Log::Any::Adapter::MojoLog" => "0.02";
requires "Mercury" => "0.010";
requires "Mojolicious" => "6";
requires "Mojolicious::Plugin::Config" => "0";
requires "Mojolicious::Plugin::OpenAPI" => "0";
requires "perl" => "5.024";

Expand All @@ -13,6 +15,8 @@ on 'test' => sub {
requires "File::Spec" => "0";
requires "IO::Handle" => "0";
requires "IPC::Open3" => "0";
requires "SQL::Translator" => "0.11018";
requires "Test::Lib" => "0";
requires "Test::More" => "1.001005";
};

Expand Down

0 comments on commit 264bace

Please sign in to comment.