BSD Ports

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

SystemPortVersion
FreeBSDdevel/rubygem-http_accept_language2.1.1
DragonFlydevel/rubygem-http_accept_language2.1.1
HardenedBSDdevel/rubygem-http_accept_language2.1.1
GhostBSDdevel/rubygem-http_accept_language2.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.12.1.12.1.12.1.12.1.1
FreeBSD:14:quarterly2.1.12.1.1n/a2.1.12.1.1
FreeBSD:15:latest2.1.12.1.1n/a2.1.12.1.1
FreeBSD:15:quarterly2.1.12.1.1n/an/an/a
FreeBSD:16:latest2.1.12.1.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
rubygem/http_accept_language-2.1.1.gem107520043f0d55a148cf45b604dbdd197cb36437133e990016c68c892d49dbea31634
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.