diff options
author | taca <taca@pkgsrc.org> | 2013-02-11 12:43:13 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2013-02-11 12:43:13 +0000 |
commit | 907bf851ae2e829eaad9d5d66d71b0a8a57d4296 (patch) | |
tree | 179e26c255ecc20de53deaf0a93df77ea73a7a0c | |
parent | f6c94c72b30a26246d77b229854c44921c2a2208 (diff) | |
download | pkgsrc-907bf851ae2e829eaad9d5d66d71b0a8a57d4296.tar.gz |
Add ruby-http_router package version 0.10.2.
# HTTP Router
## What is it?
This is an HTTP router for use in either a web framework, or on it's own using
Rack. It takes a set of routes and attempts to find the best match for
it. Take a look at the examples directory for how you'd use it in the Rack
context.
## Features
* Ordered route resolution.
* Supports variables, and globbing, both named and unnamed.
* Regex support for variables.
* Request condition support.
* Partial matches.
* Supports interstitial variables (e.g.
/my-:variable-brings.all.the.boys/yard) and unnamed variable /one/:/two
* Very fast and small code base (~1,000 loc).
* Sinatra via https://github.com/joshbuddy/http_router_sinatra
-rw-r--r-- | www/ruby-http_router/DESCR | 20 | ||||
-rw-r--r-- | www/ruby-http_router/Makefile | 14 | ||||
-rw-r--r-- | www/ruby-http_router/PLIST | 65 | ||||
-rw-r--r-- | www/ruby-http_router/distinfo | 5 |
4 files changed, 104 insertions, 0 deletions
diff --git a/www/ruby-http_router/DESCR b/www/ruby-http_router/DESCR new file mode 100644 index 00000000000..7ad83879ab6 --- /dev/null +++ b/www/ruby-http_router/DESCR @@ -0,0 +1,20 @@ +# HTTP Router + +## What is it? + +This is an HTTP router for use in either a web framework, or on it's own using +Rack. It takes a set of routes and attempts to find the best match for +it. Take a look at the examples directory for how you'd use it in the Rack +context. + +## Features + +* Ordered route resolution. +* Supports variables, and globbing, both named and unnamed. +* Regex support for variables. +* Request condition support. +* Partial matches. +* Supports interstitial variables (e.g. + /my-:variable-brings.all.the.boys/yard) and unnamed variable /one/:/two +* Very fast and small code base (~1,000 loc). +* Sinatra via https://github.com/joshbuddy/http_router_sinatra diff --git a/www/ruby-http_router/Makefile b/www/ruby-http_router/Makefile new file mode 100644 index 00000000000..80a0abfe0d9 --- /dev/null +++ b/www/ruby-http_router/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1 2013/02/11 12:43:13 taca Exp $ + +DISTNAME= http_router-0.10.2 +CATEGORIES= www + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://github.com/joshbuddy/http_router/ +COMMENT= Kick-ass HTTP router for use in Rack +LICENSE= mit + +DEPENDS+= ${RUBY_PKGPREFIX}-url_mount>=0.2.1<0.3:../../www/ruby-url_mount + +.include "../../lang/ruby/gem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ruby-http_router/PLIST b/www/ruby-http_router/PLIST new file mode 100644 index 00000000000..d770ac9c8ee --- /dev/null +++ b/www/ruby-http_router/PLIST @@ -0,0 +1,65 @@ +@comment $NetBSD: PLIST,v 1.1 2013/02/11 12:43:13 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.gitignore +${GEM_LIBDIR}/.rspec +${GEM_LIBDIR}/Gemfile +${GEM_LIBDIR}/LICENSE +${GEM_LIBDIR}/README.md +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/benchmarks/gen2.rb +${GEM_LIBDIR}/benchmarks/generation_bm.rb +${GEM_LIBDIR}/benchmarks/rack_mount.rb +${GEM_LIBDIR}/benchmarks/rack_recognition_bm.rb +${GEM_LIBDIR}/benchmarks/rec2.rb +${GEM_LIBDIR}/benchmarks/recognition_bm.rb +${GEM_LIBDIR}/examples/glob.ru +${GEM_LIBDIR}/examples/rack_mapper.ru +${GEM_LIBDIR}/examples/simple.ru +${GEM_LIBDIR}/examples/static/config.ru +${GEM_LIBDIR}/examples/static/favicon.ico +${GEM_LIBDIR}/examples/static/images/cat1.jpg +${GEM_LIBDIR}/examples/static/images/cat2.jpg +${GEM_LIBDIR}/examples/static/images/cat3.jpg +${GEM_LIBDIR}/examples/variable.ru +${GEM_LIBDIR}/examples/variable_with_regex.ru +${GEM_LIBDIR}/http_router.gemspec +${GEM_LIBDIR}/js/lib/http_router.coffee +${GEM_LIBDIR}/js/lib/http_router.js +${GEM_LIBDIR}/js/package.json +${GEM_LIBDIR}/js/test/test.coffee +${GEM_LIBDIR}/js/test/test.js +${GEM_LIBDIR}/lib/http_router.rb +${GEM_LIBDIR}/lib/http_router/node.rb +${GEM_LIBDIR}/lib/http_router/node/arbitrary.rb +${GEM_LIBDIR}/lib/http_router/node/free_regex.rb +${GEM_LIBDIR}/lib/http_router/node/glob.rb +${GEM_LIBDIR}/lib/http_router/node/glob_regex.rb +${GEM_LIBDIR}/lib/http_router/node/lookup.rb +${GEM_LIBDIR}/lib/http_router/node/path.rb +${GEM_LIBDIR}/lib/http_router/node/regex.rb +${GEM_LIBDIR}/lib/http_router/node/request.rb +${GEM_LIBDIR}/lib/http_router/node/root.rb +${GEM_LIBDIR}/lib/http_router/node/spanning_regex.rb +${GEM_LIBDIR}/lib/http_router/node/variable.rb +${GEM_LIBDIR}/lib/http_router/rack.rb +${GEM_LIBDIR}/lib/http_router/rack/builder.rb +${GEM_LIBDIR}/lib/http_router/rack/url_map.rb +${GEM_LIBDIR}/lib/http_router/regex_route.rb +${GEM_LIBDIR}/lib/http_router/request.rb +${GEM_LIBDIR}/lib/http_router/response.rb +${GEM_LIBDIR}/lib/http_router/route.rb +${GEM_LIBDIR}/lib/http_router/util.rb +${GEM_LIBDIR}/lib/http_router/version.rb +${GEM_LIBDIR}/test/common/generate.txt +${GEM_LIBDIR}/test/common/http_recognize.txt +${GEM_LIBDIR}/test/common/recognize.txt +${GEM_LIBDIR}/test/generation.rb +${GEM_LIBDIR}/test/generic.rb +${GEM_LIBDIR}/test/helper.rb +${GEM_LIBDIR}/test/rack/test_route.rb +${GEM_LIBDIR}/test/recognition.rb +${GEM_LIBDIR}/test/test_misc.rb +${GEM_LIBDIR}/test/test_mounting.rb +${GEM_LIBDIR}/test/test_recognition.rb +${GEM_LIBDIR}/test/test_trailing_slash.rb +${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/www/ruby-http_router/distinfo b/www/ruby-http_router/distinfo new file mode 100644 index 00000000000..c4106253bd9 --- /dev/null +++ b/www/ruby-http_router/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/02/11 12:43:13 taca Exp $ + +SHA1 (http_router-0.10.2.gem) = 6915567ec42c411e35a12a0807abb825d792f755 +RMD160 (http_router-0.10.2.gem) = 3595b8c7a779cada03a5fb62199635e2220e9bea +Size (http_router-0.10.2.gem) = 156160 bytes |