devel/rubygem-http_accept_language 2.1.1 FreeBSD
Rails plugin to extract Accept-Language HTTP header into array
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, rubygems
- Package size
- 9.3 KiB, 22.6 KiB installed
Description
HttpAcceptLanguage is a gem, which helps you detect the users preferred language, as sent by the "Accept-Language" HTTP header.
The algorithm is based on RFC 2616, with one exception: when a user requests "en-US" and "en" is an available language, "en" is deemed compatible with "en-US". The RFC specifies that the requested language must either exactly match the available language or must exactly match a prefix of the available language. This means that when the user requests "en" and "en-US" is available, "en-US" would be compatible, but not the other way around. This is usually not what you're looking for.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/rubygem-http_accept_language | 2.1.1 |
| DragonFly | devel/rubygem-http_accept_language | 2.1.1 |
| HardenedBSD | devel/rubygem-http_accept_language | 2.1.1 |
| GhostBSD | devel/rubygem-http_accept_language | 2.1.1 |
Install
Binary package:
pkg install rubygem-http_accept_language
From the ports tree:
cd /usr/ports/devel/rubygem-http_accept_language/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rubygem-http_accept_language>0:devel/rubygem-http_accept_language
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 | 2.1.1 | 2.1.1 | 2.1.1 | 2.1.1 | 2.1.1 |
| FreeBSD:14:quarterly | 2.1.1 | 2.1.1 | n/a | 2.1.1 | 2.1.1 |
| FreeBSD:15:latest | 2.1.1 | 2.1.1 | n/a | 2.1.1 | 2.1.1 |
| FreeBSD:15:quarterly | 2.1.1 | 2.1.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1.1 | 2.1.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 6
Required by 1
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/http_accept_language-2.1.1.gem | 10752 | 0043f0d55a148cf45b604dbdd197cb36437133e990016c68c892d49dbea31634 |
Master sites 1
- RG
Commit history 0
No commits in the history this site was built from.