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
This commit is contained in:
parent
f6c94c72b3
commit
907bf851ae
4 changed files with 104 additions and 0 deletions
20
www/ruby-http_router/DESCR
Normal file
20
www/ruby-http_router/DESCR
Normal file
|
@ -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
|
14
www/ruby-http_router/Makefile
Normal file
14
www/ruby-http_router/Makefile
Normal file
|
@ -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"
|
65
www/ruby-http_router/PLIST
Normal file
65
www/ruby-http_router/PLIST
Normal file
|
@ -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
|
5
www/ruby-http_router/distinfo
Normal file
5
www/ruby-http_router/distinfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue