BSD Ports

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

Construct absolute paths and full URLs for a Sinatra application

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
www, rubygems
Package size
4.2 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

SystemPortVersion
FreeBSDwww/rubygem-emk-sinatra-url-for0.2.1
DragonFlywww/rubygem-emk-sinatra-url-for0.2.1
HardenedBSDwww/rubygem-emk-sinatra-url-for0.2.1
GhostBSDwww/rubygem-emk-sinatra-url-for0.2.1

Install

Binary package:

pkg install rubygem-emk-sinatra-url-for

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rubygem-emk-sinatra-url-for>0:www/rubygem-emk-sinatra-url-for

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.2.10.2.10.2.10.2.10.2.1
FreeBSD:14:quarterly0.2.10.2.1n/a0.2.10.2.1
FreeBSD:15:latest0.2.10.2.1n/a0.2.10.2.1
FreeBSD:15:quarterly0.2.10.2.1n/an/an/a
FreeBSD:16:latest0.2.10.2.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 14

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/emk-sinatra-url-for-0.2.1.gem5632f2c9dfe5f1c8a162efeafc4c8cc1734fe536bee0d5b64f17049b4e956958a565
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.