diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-08-09 05:36:05 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-08-09 05:36:05 +0000 |
commit | f81fe777cb6739c65d912b5dee302d6e09d49fc3 (patch) | |
tree | 21c6c0548c5cdd37db1b3cdf5a1e975d1a45a6f0 /www/rubygem-emk-sinatra-url-for | |
parent | c1b1283a3334ff80df35c16fdbc468bbd0c9ab82 (diff) | |
download | ports-f81fe777cb6739c65d912b5dee302d6e09d49fc3.tar.gz ports-f81fe777cb6739c65d912b5dee302d6e09d49fc3.zip |
Notes
Diffstat (limited to 'www/rubygem-emk-sinatra-url-for')
-rw-r--r-- | www/rubygem-emk-sinatra-url-for/Makefile | 22 | ||||
-rw-r--r-- | www/rubygem-emk-sinatra-url-for/distinfo | 3 | ||||
-rw-r--r-- | www/rubygem-emk-sinatra-url-for/pkg-descr | 10 |
3 files changed, 35 insertions, 0 deletions
diff --git a/www/rubygem-emk-sinatra-url-for/Makefile b/www/rubygem-emk-sinatra-url-for/Makefile new file mode 100644 index 000000000000..d763d2d844e7 --- /dev/null +++ b/www/rubygem-emk-sinatra-url-for/Makefile @@ -0,0 +1,22 @@ +# Ports collection makefile for: rubygem-emk-sinatra-url-for +# Date created: 5 Aug 2010 +# Whom: Eric Freeman <freebsdports@chillibear.com> +# +# $FreeBSD$ +# + +PORTNAME= emk-sinatra-url-for +PORTVERSION= 0.2.1 +CATEGORIES= www rubygems +MASTER_SITES= RG + +MAINTAINER= freebsdports@chillibear.com +COMMENT= Construct absolute paths and full URLs for a Sinatra application + +RUN_DEPENDS= rubygem-sinatra>=0.9.1:${PORTSDIR}/www/rubygem-sinatra + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include <bsd.port.mk> diff --git a/www/rubygem-emk-sinatra-url-for/distinfo b/www/rubygem-emk-sinatra-url-for/distinfo new file mode 100644 index 000000000000..cc42e8d2aae6 --- /dev/null +++ b/www/rubygem-emk-sinatra-url-for/distinfo @@ -0,0 +1,3 @@ +MD5 (rubygem/emk-sinatra-url-for-0.2.1.gem) = ba1095dde7e2437c6f35988859063cd7 +SHA256 (rubygem/emk-sinatra-url-for-0.2.1.gem) = f2c9dfe5f1c8a162efeafc4c8cc1734fe536bee0d5b64f17049b4e956958a565 +SIZE (rubygem/emk-sinatra-url-for-0.2.1.gem) = 5632 diff --git a/www/rubygem-emk-sinatra-url-for/pkg-descr b/www/rubygem-emk-sinatra-url-for/pkg-descr new file mode 100644 index 000000000000..d68835887e62 --- /dev/null +++ b/www/rubygem-emk-sinatra-url-for/pkg-descr @@ -0,0 +1,10 @@ +sinatra-url-for constructs absolute paths and full URLs for +handlers in a Sinatra application. Assuming that your application +is running on example.com, and that it has been mapped to /myapp, +you should be able call url_for from within a handler as follows: + + url_for "/" # Returns "/myapp/" + url_for "/foo" # Returns "/myapp/foo" + url_for "/foo", :full # Returns "http://example.com/myapp/foo" + +WWW: http://github.com/emk/sinatra-url-for |