Skip to content

Commit 1ca2d0d

Browse files
authored
Merge pull request metacpan#862 from metacpan/jberger/mojo
Monster Mojo
2 parents 2154364 + bf0cd75 commit 1ca2d0d

34 files changed

+972
-205
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ install:
7070
- AUTHOR_TESTING=0 cpm install -L $PERL_CARTON_PATH --resolver $CPAN_RESOLVER --workers $(test-jobs) || (tail -n 500 -f ~/.perl-cpm/build.log; false)
7171

7272
before_script:
73-
- "perl -i -pe 's/(servers :)9900/localhost:9200/' metacpan_server_testing.conf"
7473
- bin/wait-for-open http://localhost:9200/
7574
- coverage-setup
7675

bin/api.pl

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env perl
2+
3+
use strict;
4+
use warnings;
5+
6+
=head2 DESCRIPTION
7+
8+
This is the API web server interface.
9+
10+
# On vagrant VM
11+
./bin/run morbo bin/api.pl
12+
13+
To run the api web server, run the following on one of the servers:
14+
15+
# Run the daemon on a local port (tunnel to display on your browser)
16+
./bin/run bin/api.pl daemon
17+
18+
Start Minion worker on vagrant:
19+
20+
cd /home/vagrant/metacpan-api
21+
./bin/run bin/api.pl minion worker
22+
23+
Get status on jobs and workers.
24+
25+
On production:
26+
27+
sh /home/metacpan/bin/metacpan-api-carton-exec bin/api.pl minion job -s
28+
29+
On vagrant:
30+
31+
cd /home/vagrant/metacpan-api
32+
./bin/run bin/api.pl minion job -s
33+
34+
=cut
35+
36+
use lib 'lib';
37+
38+
# Start command line interface for application
39+
require Mojolicious::Commands;
40+
Mojolicious::Commands->start_app('MetaCPAN::API');

bin/queue.pl

Lines changed: 0 additions & 31 deletions
This file was deleted.

bin/queue.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api.pl

cpanfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ requires 'Module::Metadata', '1.000022';
100100
requires 'Module::Pluggable';
101101
requires 'Module::Runtime';
102102
requires 'Mojo::Pg', '>= 4.08';
103+
requires 'Mojolicious::Plugin::Web::Auth', '0.000004';
103104
requires 'Moose', ' >= 2.1403';
104105
requires 'Moose::Role';
105106
requires 'Moose::Util';
@@ -176,6 +177,9 @@ requires 'strictures', 1;
176177
requires 'utf8';
177178
requires 'version', '0.9901';
178179
requires 'warnings';
180+
requires 'Mojolicious::Plugin::MountPSGI';
181+
requires 'Mojolicious::Plugin::OpenAPI';
182+
requires 'YAML::XS', '0.67'; # Mojolicious::Plugin::OpenAPI YAML loading
179183

180184
test_requires 'App::Prove';
181185
test_requires 'CPAN::Faker', '0.010';

cpanfile.snapshot

Lines changed: 97 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ DISTRIBUTIONS
813813
MooseX::Emulate::Class::Accessor::Fast 0.00903
814814
MooseX::Getopt 0.48
815815
MooseX::MethodAttributes::Role::AttrContainer::Inheritable 0.24
816+
MooseX::Role::WithOverloading 0.09
816817
Path::Class 0.09
817818
Plack 0.9991
818819
Plack::Middleware::Conditional 0
@@ -3821,6 +3822,19 @@ DISTRIBUTIONS
38213822
JSON::PP 2.27300
38223823
Scalar::Util 0
38233824
perl 5.006
3825+
JSON-Validator-2.15
3826+
pathname: J/JH/JHTHORSEN/JSON-Validator-2.15.tar.gz
3827+
provides:
3828+
JSON::Validator 2.15
3829+
JSON::Validator::Error undef
3830+
JSON::Validator::Joi undef
3831+
JSON::Validator::OpenAPI undef
3832+
JSON::Validator::OpenAPI::Dancer2 undef
3833+
JSON::Validator::OpenAPI::Mojolicious undef
3834+
JSON::Validator::Ref undef
3835+
requirements:
3836+
ExtUtils::MakeMaker 0
3837+
Mojolicious 7.28
38243838
JSON-XS-3.04
38253839
pathname: M/ML/MLEHMANN/JSON-XS-3.04.tar.gz
38263840
provides:
@@ -4281,17 +4295,6 @@ DISTRIBUTIONS
42814295
requirements:
42824296
ExtUtils::MakeMaker 0
42834297
perl 5.006
4284-
Mac-SystemDirectory-0.10
4285-
pathname: E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz
4286-
provides:
4287-
Mac::SystemDirectory 0.10
4288-
requirements:
4289-
Exporter 0
4290-
ExtUtils::MakeMaker 0
4291-
XSLoader 0
4292-
perl 5.006
4293-
strict 0
4294-
warnings 0
42954298
MailTools-2.19
42964299
pathname: M/MA/MARKOV/MailTools-2.19.tar.gz
42974300
provides:
@@ -4720,8 +4723,8 @@ DISTRIBUTIONS
47204723
URI::db 0.15
47214724
URI::file 4.21
47224725
perl 5.010001
4723-
Mojolicious-7.56
4724-
pathname: S/SR/SRI/Mojolicious-7.56.tar.gz
4726+
Mojolicious-8.06
4727+
pathname: S/SR/SRI/Mojolicious-8.06.tar.gz
47254728
provides:
47264729
Mojo undef
47274730
Mojo::Asset undef
@@ -4741,6 +4744,7 @@ DISTRIBUTIONS
47414744
Mojo::DOM::CSS undef
47424745
Mojo::DOM::HTML undef
47434746
Mojo::Date undef
4747+
Mojo::DynamicMethods undef
47444748
Mojo::EventEmitter undef
47454749
Mojo::Exception undef
47464750
Mojo::File undef
@@ -4790,30 +4794,28 @@ DISTRIBUTIONS
47904794
Mojo::UserAgent::Transactor undef
47914795
Mojo::Util undef
47924796
Mojo::WebSocket undef
4793-
Mojolicious 7.56
4797+
Mojolicious 8.06
47944798
Mojolicious::Command undef
4799+
Mojolicious::Command::Author::cpanify undef
4800+
Mojolicious::Command::Author::generate undef
4801+
Mojolicious::Command::Author::generate::app undef
4802+
Mojolicious::Command::Author::generate::lite_app undef
4803+
Mojolicious::Command::Author::generate::makefile undef
4804+
Mojolicious::Command::Author::generate::plugin undef
4805+
Mojolicious::Command::Author::inflate undef
47954806
Mojolicious::Command::cgi undef
4796-
Mojolicious::Command::cpanify undef
47974807
Mojolicious::Command::daemon undef
47984808
Mojolicious::Command::eval undef
4799-
Mojolicious::Command::generate undef
4800-
Mojolicious::Command::generate::app undef
4801-
Mojolicious::Command::generate::lite_app undef
4802-
Mojolicious::Command::generate::makefile undef
4803-
Mojolicious::Command::generate::plugin undef
48044809
Mojolicious::Command::get undef
4805-
Mojolicious::Command::inflate undef
48064810
Mojolicious::Command::prefork undef
48074811
Mojolicious::Command::psgi undef
48084812
Mojolicious::Command::routes undef
4809-
Mojolicious::Command::test undef
48104813
Mojolicious::Command::version undef
48114814
Mojolicious::Commands undef
48124815
Mojolicious::Controller undef
48134816
Mojolicious::Lite undef
48144817
Mojolicious::Plugin undef
48154818
Mojolicious::Plugin::Config undef
4816-
Mojolicious::Plugin::Config::Sandbox undef
48174819
Mojolicious::Plugin::DefaultHelpers undef
48184820
Mojolicious::Plugin::EPLRenderer undef
48194821
Mojolicious::Plugin::EPRenderer undef
@@ -4839,9 +4841,47 @@ DISTRIBUTIONS
48394841
ExtUtils::MakeMaker 0
48404842
IO::Socket::IP 0.37
48414843
JSON::PP 2.27103
4842-
Pod::Simple 3.09
4844+
List::Util 1.41
48434845
Time::Local 1.2
48444846
perl 5.010001
4847+
Mojolicious-Plugin-MountPSGI-0.13
4848+
pathname: M/MR/MRAMBERG/Mojolicious-Plugin-MountPSGI-0.13.tar.gz
4849+
provides:
4850+
Mojolicious::Plugin::MountPSGI 0.13
4851+
Mojolicious::Plugin::MountPSGI::Proxy undef
4852+
requirements:
4853+
ExtUtils::MakeMaker 0
4854+
Mojolicious 7.70
4855+
Plack 0
4856+
Mojolicious-Plugin-OpenAPI-2.01
4857+
pathname: J/JH/JHTHORSEN/Mojolicious-Plugin-OpenAPI-2.01.tar.gz
4858+
provides:
4859+
Mojolicious::Plugin::OpenAPI 2.01
4860+
Mojolicious::Plugin::OpenAPI::Cors undef
4861+
Mojolicious::Plugin::OpenAPI::Security undef
4862+
requirements:
4863+
ExtUtils::MakeMaker 0
4864+
JSON::Validator 2.14
4865+
Mojolicious-Plugin-Web-Auth-0.15
4866+
pathname: H/HA/HAYAJO/Mojolicious-Plugin-Web-Auth-0.15.tar.gz
4867+
provides:
4868+
Mojolicious::Plugin::Web::Auth 0.15
4869+
Mojolicious::Plugin::Web::Auth::Base undef
4870+
Mojolicious::Plugin::Web::Auth::OAuth undef
4871+
Mojolicious::Plugin::Web::Auth::OAuth2 undef
4872+
Mojolicious::Plugin::Web::Auth::Site::Dropbox undef
4873+
Mojolicious::Plugin::Web::Auth::Site::Facebook undef
4874+
Mojolicious::Plugin::Web::Auth::Site::Github undef
4875+
Mojolicious::Plugin::Web::Auth::Site::Google undef
4876+
Mojolicious::Plugin::Web::Auth::Site::Instagram undef
4877+
Mojolicious::Plugin::Web::Auth::Site::Twitter undef
4878+
Mojolicious::Plugin::Web::Auth::Site::Yandex undef
4879+
requirements:
4880+
IO::Socket::SSL 1.77
4881+
Module::Build::Tiny 0.035
4882+
Mojolicious 3.02
4883+
Net::OAuth 0.28
4884+
perl 5.008005
48454885
Moo-2.003003
48464886
pathname: H/HA/HAARG/Moo-2.003003.tar.gz
48474887
provides:
@@ -5512,6 +5552,30 @@ DISTRIBUTIONS
55125552
perl 5.008001
55135553
strict 0
55145554
warnings 0
5555+
MooseX-Role-WithOverloading-0.17
5556+
pathname: E/ET/ETHER/MooseX-Role-WithOverloading-0.17.tar.gz
5557+
provides:
5558+
MooseX::Role::WithOverloading 0.17
5559+
MooseX::Role::WithOverloading::Meta::Role 0.17
5560+
MooseX::Role::WithOverloading::Meta::Role::Application 0.17
5561+
MooseX::Role::WithOverloading::Meta::Role::Application::Composite 0.17
5562+
MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToClass 0.17
5563+
MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToInstance 0.17
5564+
MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToRole 0.17
5565+
MooseX::Role::WithOverloading::Meta::Role::Application::FixOverloadedRefs 0.17
5566+
MooseX::Role::WithOverloading::Meta::Role::Application::ToClass 0.17
5567+
MooseX::Role::WithOverloading::Meta::Role::Application::ToInstance 0.17
5568+
MooseX::Role::WithOverloading::Meta::Role::Application::ToRole 0.17
5569+
MooseX::Role::WithOverloading::Meta::Role::Composite 0.17
5570+
requirements:
5571+
ExtUtils::MakeMaker 0
5572+
Moose 0.94
5573+
Moose::Exporter 0
5574+
Moose::Role 1.15
5575+
aliased 0
5576+
namespace::autoclean 0.16
5577+
namespace::clean 0.19
5578+
perl 5.006
55155579
MooseX-StrictConstructor-0.21
55165580
pathname: D/DR/DROLSKY/MooseX-StrictConstructor-0.21.tar.gz
55175581
provides:
@@ -9186,6 +9250,15 @@ DISTRIBUTIONS
91869250
requirements:
91879251
ExtUtils::MakeMaker 0
91889252
perl 5.008001
9253+
YAML-LibYAML-0.75
9254+
pathname: T/TI/TINITA/YAML-LibYAML-0.75.tar.gz
9255+
provides:
9256+
YAML::LibYAML 0.75
9257+
YAML::XS 0.75
9258+
YAML::XS::LibYAML undef
9259+
requirements:
9260+
ExtUtils::MakeMaker 0
9261+
perl 5.008001
91899262
YAML-Syck-1.30
91909263
pathname: T/TO/TODDR/YAML-Syck-1.30.tar.gz
91919264
provides:

0 commit comments

Comments
 (0)