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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | www/rubygem-emk-sinatra-url-for | 0.2.1 newest | none known | - | [email protected] | - |
| FreeBSD | www/rubygem-emk-sinatra-url-for | 0.2.1 newest | none known | - | [email protected] | - |
| HardenedBSD | www/rubygem-emk-sinatra-url-for | 0.2.1 newest | no data | - | [email protected] | - |
| GhostBSD | www/rubygem-emk-sinatra-url-for | 0.2.1 newest | no 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.