From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 9 05:40:16 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5659110656B5 for ; Mon, 9 Aug 2010 05:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BB168FC1C for ; Mon, 9 Aug 2010 05:40:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o795eGO9095482 for ; Mon, 9 Aug 2010 05:40:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o795eGqp095475; Mon, 9 Aug 2010 05:40:16 GMT (envelope-from gnats) Date: Mon, 9 Aug 2010 05:40:16 GMT Message-Id: <201008090540.o795eGqp095475@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/149359: commit references a PR X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2010 05:40:16 -0000 The following reply was made to PR ports/149359; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/149359: commit references a PR Date: Mon, 9 Aug 2010 05:36:14 +0000 (UTC) miwi 2010-08-09 05:36:05 UTC FreeBSD ports repository Modified files: www Makefile Added files: www/rubygem-emk-sinatra-url-for Makefile distinfo pkg-descr Log: 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 PR: ports/149359 Submitted by: Eric Freeman Revision Changes Path 1.2657 +1 -0 ports/www/Makefile 1.1 +22 -0 ports/www/rubygem-emk-sinatra-url-for/Makefile (new) 1.1 +3 -0 ports/www/rubygem-emk-sinatra-url-for/distinfo (new) 1.1 +10 -0 ports/www/rubygem-emk-sinatra-url-for/pkg-descr (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"