From 8ddc1124e8ffbd2ef3ca18fc1447d44ddd47c659 Mon Sep 17 00:00:00 2001 From: jeremy Date: Wed, 8 Dec 2010 21:27:56 +0000 Subject: [PATCH] Import ruby-rack-mount, one of the dependencies for Rails 3. Rack::Mount is a stackable dynamic tree based Rack router. Rack::Mount supports Rack's +X-Cascade+ convention to continue trying routes if the response returns pass. This allows multiple routes to be nested or stacked on top of each other. Since the application endpoint can trigger the router to continue matching, middleware can be used to add arbitrary conditions to any route. This allows you to route based on other request attributes, session information, or even data dynamically pulled from a database. ok landry --- www/ruby-rack-mount/Makefile | 23 ++++++++++++++++ www/ruby-rack-mount/distinfo | 5 ++++ www/ruby-rack-mount/pkg/DESCR | 8 ++++++ www/ruby-rack-mount/pkg/PLIST | 49 +++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 www/ruby-rack-mount/Makefile create mode 100644 www/ruby-rack-mount/distinfo create mode 100644 www/ruby-rack-mount/pkg/DESCR create mode 100644 www/ruby-rack-mount/pkg/PLIST diff --git a/www/ruby-rack-mount/Makefile b/www/ruby-rack-mount/Makefile new file mode 100644 index 00000000000..33806b60561 --- /dev/null +++ b/www/ruby-rack-mount/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/12/08 21:27:56 jeremy Exp $ + +COMMENT= stackable dynamic tree based Rack router + +DISTNAME= rack-mount-0.6.13 +CATEGORIES= www + +HOMEPAGE= https://github.com/josh/rack-mount + +# MIT +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= lang/ruby + +BUILD_DEPENDS = ${RUN_DEPENDS} +RUN_DEPENDS = www/ruby-rack,${MODRUBY_FLAVOR}>=1.0.0 + +CONFIGURE_STYLE= ruby gem + +.include diff --git a/www/ruby-rack-mount/distinfo b/www/ruby-rack-mount/distinfo new file mode 100644 index 00000000000..5b6b6d42388 --- /dev/null +++ b/www/ruby-rack-mount/distinfo @@ -0,0 +1,5 @@ +MD5 (rack-mount-0.6.13.gem) = KDHamLZ3mJ82SVQ5noczDw== +RMD160 (rack-mount-0.6.13.gem) = o/yJVqzRPVLqctL5MN8mobNG6C8= +SHA1 (rack-mount-0.6.13.gem) = 6k7x8ceW0C8hxlho6ORQrnVimak= +SHA256 (rack-mount-0.6.13.gem) = xgOfv8LTtHHg3ZTULUDUdMPSjKjsKApqOcpgaBTlbYw= +SIZE (rack-mount-0.6.13.gem) = 30208 diff --git a/www/ruby-rack-mount/pkg/DESCR b/www/ruby-rack-mount/pkg/DESCR new file mode 100644 index 00000000000..26a544b2b3c --- /dev/null +++ b/www/ruby-rack-mount/pkg/DESCR @@ -0,0 +1,8 @@ +Rack::Mount is a stackable dynamic tree based Rack router. Rack::Mount +supports Rack's +X-Cascade+ convention to continue trying routes if the +response returns pass. This allows multiple routes to be nested or +stacked on top of each other. Since the application endpoint can trigger +the router to continue matching, middleware can be used to add arbitrary +conditions to any route. This allows you to route based on other request +attributes, session information, or even data dynamically pulled from a +database. diff --git a/www/ruby-rack-mount/pkg/PLIST b/www/ruby-rack-mount/pkg/PLIST new file mode 100644 index 00000000000..5f650633bd0 --- /dev/null +++ b/www/ruby-rack-mount/pkg/PLIST @@ -0,0 +1,49 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/08 21:27:56 jeremy Exp $ +${GEM_LIB}/cache/${DISTNAME}.gem +${GEM_LIB}/gems/${DISTNAME}/ +${GEM_LIB}/gems/${DISTNAME}/LICENSE +${GEM_LIB}/gems/${DISTNAME}/README.rdoc +${GEM_LIB}/gems/${DISTNAME}/lib/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/analysis/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/analysis/frequency.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/analysis/histogram.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/analysis/splitting.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/code_generation.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/generatable_regexp.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/multimap.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/prefix.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/regexp_with_named_groups.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/route.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/route_set.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp/parser.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp/parser.y +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp/tokenizer.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/strexp/tokenizer.rex +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/utils.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/multimap/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/multimap/multimap.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/multimap/multiset.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/multimap/nested_multimap.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/ +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/alternation.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/anchor.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/atom.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/character.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/character_class.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/collection.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/expression.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/group.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/options.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/parser.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/tokenizer.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/vendor/regin/regin/version.rb +${GEM_LIB}/gems/${DISTNAME}/lib/rack/mount/version.rb +${GEM_LIB}/specifications/${DISTNAME}.gemspec