Coro-Twiggy

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

distribution_type:  module
configure_requires:
    ExtUtils::MakeMaker:  0
build_requires:
    ExtUtils::MakeMaker:  0
requires:
    AnyEvent:  0
    Coro:      6.07
    Twiggy:    0.1020
resources:
    bugtracker:  https://github.com/unera/coro-twiggy/issues
    homepage:    https://github.com/unera/coro-twiggy
no_index:
    directory:
        - t
        - inc
generated_by:       ExtUtils::MakeMaker version 6.57_05
meta-spec:
    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
    version:  1.4

Makefile.PL  view on Meta::CPAN

    PREREQ_PM         => {
            Coro        => '6.07',
            AnyEvent    => 0,
            Twiggy      => '0.1020'
    }, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/Coro/Twiggy.pm', # retrieve abstract from module
       AUTHOR         => 'Dmitry E. Oboukhov <unera@debian.org>') : ()),
    META_MERGE => {
        resources => {
            homepage => 'https://github.com/unera/coro-twiggy',
            bugtracker => 'https://github.com/unera/coro-twiggy/issues',
        }
    },
    LICENSE => 'perl'
);

debian/changelog  view on Meta::CPAN

libcoro-twiggy-perl (0.03-1) unstable; urgency=low

  * PSGI can throw utf8 exception.

 -- Dmitry E. Oboukhov <unera@debian.org>  Fri, 13 Jul 2012 22:14:56 +0400

libcoro-twiggy-perl (0.02-1) unstable; urgency=low

  * Initial release. (Closes: #681296)

 -- Dmitry E. Oboukhov <unera@debian.org>  Thu, 12 Jul 2012 11:31:48 +0400

debian/control  view on Meta::CPAN

Source: libcoro-twiggy-perl
Section: perl
Homepage: http://search.cpan.org/dist/Coro-Twiggy/
Maintainer: Dmitry E. Oboukhov <unera@debian.org>
Build-Depends: debhelper (>= 7), cdbs,
 libanyevent-perl,
 libcoro-perl,
 twiggy
Standards-Version: 3.9.3
Priority: extra
VCS-Browser: https://github.com/unera/coro-twiggy

Package: libcoro-twiggy-perl
Depends: ${perl:Depends}, ${misc:Depends}, ${shlibs:Depends},
 libanyevent-perl,
 libcoro-perl,
 twiggy
Architecture: all
Description: Coro interface for Twiggy
 The package provides Coro(utine) interface for Twiggy webserver,
 so You can use Twiggy as http backend of Coro applications.

debian/rules  view on Meta::CPAN

include /usr/share/cdbs/1/class/perl-makemaker.mk

MAIN_MODULE	= lib/Coro/Twiggy.pm

DEBVERSION = $(shell dpkg-parsechangelog \
	|grep ^Version|awk '{print $$2}'|sed 's/-.*//' )
PERLVERSION = $(shell grep '^our[[:space:]]\+$$VERSION' $(MAIN_MODULE) \
	|head -n 1 \
	|awk '{print $$4}'|sed "s/[';']//g" )

install/libcoro-twiggy-perl::
	test $(DEBVERSION) = $(PERLVERSION)
	make tardist

clean::
	rm -f Makefile.old	
	rm -fr .pc
	rm -f Coro-Twiggy-*.tar.gz*

tarball:
	cd .. && tar \
		--exclude=debian \
		--exclude=.git \
		-czf libcoro-twiggy-perl_$(DEBVERSION).orig.tar.gz \
		libcoro-twiggy-perl-$(DEBVERSION)

lib/Coro/Twiggy.pm  view on Meta::CPAN

        ]
    };


    my $server = Coro::Twiggy->new(host => '127.0.0.1', port => 8080);
    $server->register_service( $application );


=head1 DESCRIPTION

The server starts Your application in L<Coro/async> coroutine and uses its
return value to respond to client.

Application have to return an B<ARRAYREF> with the following items:

=over

=item *

HTTP-code;

lib/Coro/Twiggy.pm  view on Meta::CPAN

            }
        }
    }
}


1;

=head1 VCS

L<https://github.com/unera/coro-twiggy>

=head1 AUTHOR

 Dmitry E. Oboukhov, <unera@debian.org>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2012 by Dmitry E. Oboukhov

This library is free software; you can redistribute it and/or modify



( run in 0.284 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )