BSD Ports

www/rubygem-emk-sinatra-url-for 0.2.1 DragonFly

Construct absolute paths and full URLs for a Sinatra application

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
rubygems, www
Package size
3.6 KiB, 6.5 KiB installed

Description

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"

In the other systems

The newest version among them is 0.2.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/rubygem-emk-sinatra-url-for0.2.1 newestnone known-[email protected]-
FreeBSDwww/rubygem-emk-sinatra-url-for0.2.1 newestnone known-[email protected]-
HardenedBSDwww/rubygem-emk-sinatra-url-for0.2.1 newestno data-[email protected]-
GhostBSDwww/rubygem-emk-sinatra-url-for0.2.1 newestno data-[email protected]-

Install

Binary package:

pkg install rubygem-emk-sinatra-url-for

From DPorts:

cd /usr/dports/www/rubygem-emk-sinatra-url-for && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3

No port depends on this one.