Permalink
Browse files

use Milla

  • Loading branch information...
1 parent 4f6255a commit f6bb5513b4acfffb130e376fe41bd8ab20b61577 @miyagawa committed Jun 12, 2013
Showing with 295 additions and 197 deletions.
  1. +7 −0 .gitignore
  2. +0 −2 .shipit
  3. +2 −0 Changes
  4. +0 −48 MANIFEST
  5. +0 −15 MANIFEST.SKIP
  6. +82 −0 META.json
  7. +73 −17 Makefile.PL
  8. +0 −97 README
  9. +117 −0 README.md
  10. +12 −0 cpanfile
  11. +2 −0 dist.ini
  12. +0 −5 xt/perlcritic.t
  13. +0 −4 xt/pod.t
  14. +0 −9 xt/podspell.t
View
@@ -3,3 +3,10 @@ Makefile
inc/
pm_to_blib
*~
+/Twiggy-*
+/.build
+/_build_params
+/Build
+!Build/
+!META.json
+
View
@@ -1,2 +0,0 @@
-steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
-git.push_to = origin
View
@@ -1,5 +1,7 @@
Revision history for Perl extension Twiggy
+{{$NEXT}}
+
0.1021 Fri Oct 19 15:09:17 PDT 2012
- Repackage with the latest Module::Install
View
@@ -1,48 +0,0 @@
-.gitignore
-bin/twiggy
-Changes
-eg/chat-websocket/chat.psgi
-eg/chat-websocket/static/DUI.js
-eg/chat-websocket/static/jquery-1.3.2.min.js
-eg/chat-websocket/static/jquery.cookie.js
-eg/chat-websocket/static/jquery.ev.js
-eg/chat-websocket/static/jquery.md5.js
-eg/chat-websocket/static/jquery.oembed.js
-eg/chat-websocket/static/pretty.js
-eg/chat-websocket/static/screen.css
-eg/chat-websocket/static/Stream.js
-eg/chat-websocket/templates/index.mt
-eg/chat-websocket/templates/room.mt
-eg/chat-websocket/templates/test.js
-inc/Module/Install.pm
-inc/Module/Install/AuthorTests.pm
-inc/Module/Install/Base.pm
-inc/Module/Install/Can.pm
-inc/Module/Install/Fetch.pm
-inc/Module/Install/Makefile.pm
-inc/Module/Install/Metadata.pm
-inc/Module/Install/ReadmeFromPod.pm
-inc/Module/Install/Repository.pm
-inc/Module/Install/Scripts.pm
-inc/Module/Install/Win32.pm
-inc/Module/Install/WriteAll.pm
-lib/AnyEvent/Server/PSGI.pm
-lib/Plack/Handler/Twiggy.pm
-lib/Twiggy.pm
-lib/Twiggy/Server.pm
-lib/Twiggy/Server/SS.pm
-Makefile.PL
-MANIFEST This list of files
-META.yml
-README
-t/00_compile.t
-t/anyevent.t
-t/anyevent_extensions.t
-t/anyevent_manyconnections.t
-t/anyevent_server_starter.t
-t/anyevent_slow_post.t
-t/deflater.t
-t/disconnect.t
-xt/perlcritic.t
-xt/pod.t
-xt/podspell.t
View
@@ -1,15 +0,0 @@
-\bRCS\b
-\bCVS\b
-\.svn/
-\.git/
-^MANIFEST\.
-^Makefile$
-~$
-\.old$
-^blib/
-^pm_to_blib
-^MakeMaker-\d
-\.gz$
-\.cvsignore
-\.shipit
-MYMETA
View
@@ -0,0 +1,82 @@
+{
+ "abstract" : "AnyEvent HTTP server for PSGI (like Thin)",
+ "author" : [
+ "Tatsuhiko Miyagawa"
+ ],
+ "dynamic_config" : 0,
+ "generated_by" : "Dist::Milla version v1.0.2, Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.131560",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "Twiggy",
+ "no_index" : {
+ "directory" : [
+ "t",
+ "xt",
+ "inc",
+ "share",
+ "eg",
+ "examples"
+ ]
+ },
+ "prereqs" : {
+ "configure" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "6.30"
+ }
+ },
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41"
+ }
+ },
+ "runtime" : {
+ "requires" : {
+ "AnyEvent" : "0",
+ "HTTP::Status" : "0",
+ "Plack" : "0.99",
+ "Try::Tiny" : "0",
+ "perl" : "5.008001"
+ }
+ },
+ "test" : {
+ "requires" : {
+ "LWP::UserAgent" : "0",
+ "Test::More" : "0",
+ "Test::Requires" : "0",
+ "Test::TCP" : "0"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "https://github.com/miyagawa/Twiggy/issues"
+ },
+ "homepage" : "https://github.com/miyagawa/Twiggy",
+ "repository" : {
+ "type" : "git",
+ "url" : "https://github.com/miyagawa/Twiggy.git",
+ "web" : "https://github.com/miyagawa/Twiggy"
+ }
+ },
+ "version" : "0.1021",
+ "x_contributors" : [
+ "Adam Thomason <ad@mthomason.net>",
+ "Chia-liang Kao <clkao@clkao.org>",
+ "Kazuho Oku <kazuho@kazdev.in.labs.cybozu.co.jp>",
+ "Moritz Onken <onken@netcubed.de>",
+ "Pedro Melo <melo@simplicidade.org>",
+ "Sergey Zasenko <d3fin3@gmail.com>",
+ "Tatsuhiko Miyagawa <miyagawa@gmail.com>",
+ "Tomas Doran (t0m) <t0m@state51.co.uk>",
+ "Yuval Kogman <nothingmuch@woobling.org>",
+ "hidekiy <hideki.yamamura@gmail.com>",
+ "lestrrat <lestrrat+github@gmail.com>"
+ ]
+}
+
View
@@ -1,17 +1,73 @@
-use inc::Module::Install 0.91;
-name 'Twiggy';
-all_from 'lib/Twiggy.pm';
-readme_from 'lib/Twiggy.pm';
-requires 'Plack', 0.99;
-requires 'AnyEvent';
-requires 'HTTP::Status';
-requires 'Try::Tiny';
-recommends 'HTTP::Parser::XS';
-recommends 'EV';
-install_script 'bin/twiggy';
-test_requires 'Test::Requires';
-test_requires 'Test::More';
-test_requires 'Test::TCP';
-author_tests('xt');
-auto_set_repository;
-WriteAll;
+
+use strict;
+use warnings;
+
+use 5.008001;
+
+use ExtUtils::MakeMaker 6.30;
+
+
+
+my %WriteMakefileArgs = (
+ "ABSTRACT" => "AnyEvent HTTP server for PSGI (like Thin)",
+ "AUTHOR" => "Tatsuhiko Miyagawa",
+ "BUILD_REQUIRES" => {},
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
+ },
+ "DISTNAME" => "Twiggy",
+ "EXE_FILES" => [],
+ "LICENSE" => "perl",
+ "NAME" => "Twiggy",
+ "PREREQ_PM" => {
+ "AnyEvent" => 0,
+ "HTTP::Status" => 0,
+ "Plack" => "0.99",
+ "Try::Tiny" => 0
+ },
+ "TEST_REQUIRES" => {
+ "LWP::UserAgent" => 0,
+ "Test::More" => 0,
+ "Test::Requires" => 0,
+ "Test::TCP" => 0
+ },
+ "VERSION" => "0.1021",
+ "test" => {
+ "TESTS" => "t/*.t"
+ }
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+ my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+ my $pp = $WriteMakefileArgs{PREREQ_PM};
+ for my $mod ( keys %$br ) {
+ if ( exists $pp->{$mod} ) {
+ $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+ }
+ else {
+ $pp->{$mod} = $br->{$mod};
+ }
+ }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+ unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+
View
@@ -1,97 +0,0 @@
-NAME
- Twiggy - AnyEvent HTTP server for PSGI (like Thin)
-
-SYNOPSIS
- twiggy --listen :8080
-
- See "twiggy -h" for more details.
-
- use Twiggy::Server;
-
- my $server = Twiggy::Server->new(
- host => $host,
- port => $port,
- );
- $server->register_service($app);
-
- AE::cv->recv;
-
-DESCRIPTION
- Twiggy is a lightweight and fast HTTP server with unique features such
- as:
-
- PSGI
- Can run any PSGI applications. Fully supports *psgi.nonblocking* and
- *psgi.streaming* interfaces.
-
- AnyEvent
- This server uses AnyEvent and runs in a non-blocking event loop, so
- it's best to run event-driven web applications that runs I/O bound
- jobs or delayed responses such as long-poll, WebSocket or streaming
- content (server push).
-
- This software used to be called Plack::Server::AnyEvent but was
- renamed to Twiggy. See "NAMING" for details.
-
- Fast header parser
- Uses XS/C based HTTP header parser for the best performance.
- (optional, install the HTTP::Parser::XS module to enable it; see
- also Plack::HTTPParser for more information).
-
- Lightweight and Fast
- The memory required to run twiggy is 6MB and it can serve more than
- 4500 req/s with a single process on Perl 5.10 with MacBook Pro 13"
- late 2009.
-
- Superdaemon aware
- Supports Server::Starter for hot deploy and graceful restarts.
-
- To use it, instead of the usual:
-
- plackup --server Twiggy --port 8111 app.psgi
-
- install Server::Starter and use:
-
- start_server --port 8111 plackup --server Twiggy app.psgi
-
-ENVIRONMENT
- The following environment variables are supported.
-
- TWIGGY_DEBUG
- Set to true to enable debug messages from Twiggy.
-
-NAMING
- Twiggy?
- Because it is like Thin <http://code.macournoyer.com/thin/>, Ruby's Rack
- web server using EventMachine. You know, Twiggy is thin :)
-
- Why the cute name instead of more descriptive namespace? Are you on drugs?
- I'm sick of naming Perl software like
- HTTP::Server::PSGI::How::Its::Written::With::What::Module and people
- call it HSPHIWWWM on IRC. It's hard to say on speeches and newbies would
- ask questions what they stand for every day. That's crazy.
-
- This module actually includes the longer alias and an empty subclass
- AnyEvent::Server::PSGI for those who like to type more ::'s. It would
- actually help you find this software by searching for *PSGI Server
- AnyEvent* on CPAN, which i believe is a good thing.
-
- Yes, maybe I'm on drugs. We'll see.
-
-LICENSE
- This module is licensed under the same terms as Perl itself.
-
-AUTHOR
- Tatsuhiko Miyagawa
-
- Tokuhiro Matsuno
-
- Yuval Kogman
-
- Hideki Yamamura
-
- Daisuke Maki
-
-SEE ALSO
- Plack AnyEvent Tatsumaki
-
Oops, something went wrong.

0 comments on commit f6bb551

Please sign in to comment.