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
| System | Port | Version |
|---|---|---|
| FreeBSD | www/rubygem-emk-sinatra-url-for | 0.2.1 |
| DragonFly | www/rubygem-emk-sinatra-url-for | 0.2.1 |
| HardenedBSD | www/rubygem-emk-sinatra-url-for | 0.2.1 |
| GhostBSD | www/rubygem-emk-sinatra-url-for | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.2.1 | 0.2.1 | 0.2.1 | 0.2.1 | 0.2.1 |
| FreeBSD:14:quarterly | 0.2.1 | 0.2.1 | n/a | 0.2.1 | 0.2.1 |
| FreeBSD:15:latest | 0.2.1 | 0.2.1 | n/a | 0.2.1 | 0.2.1 |
| FreeBSD:15:quarterly | 0.2.1 | 0.2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.2.1 | 0.2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 1
rubygem-sinatra>=0.9.1.1: www/rubygem-sinatra
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 14
Required by 1
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/emk-sinatra-url-for-0.2.1.gem | 5632 | f2c9dfe5f1c8a162efeafc4c8cc1734fe536bee0d5b64f17049b4e956958a565 |
Master sites 1
- RG
Commit history 0
No commits in the history this site was built from.