svn commit: r438211 - in head/devel: . rubygem-http_accept_language
Joseph Mingrone
jrm at FreeBSD.org
Mon Apr 10 21:09:32 UTC 2017
Author: jrm
Date: Mon Apr 10 21:09:30 2017
New Revision: 438211
URL: https://svnweb.freebsd.org/changeset/ports/438211
Log:
New port, www/rubygem-http_accept_language: Rails plugin to extract
Accept-Language HTTP header into array
Adding this because it is a dependency of the upcoming www/mastodon port.
WWW: https://github.com/iain/http_accept_language/
Approved by: swills (mentor, implicit)
Added:
head/devel/rubygem-http_accept_language/
head/devel/rubygem-http_accept_language/Makefile (contents, props changed)
head/devel/rubygem-http_accept_language/distinfo (contents, props changed)
head/devel/rubygem-http_accept_language/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Mon Apr 10 20:58:24 2017 (r438210)
+++ head/devel/Makefile Mon Apr 10 21:09:30 2017 (r438211)
@@ -5307,6 +5307,7 @@
SUBDIR += rubygem-hitimes
SUBDIR += rubygem-hoe
SUBDIR += rubygem-holidays
+ SUBDIR += rubygem-http_accept_language
SUBDIR += rubygem-i18n
SUBDIR += rubygem-icalendar
SUBDIR += rubygem-ice_cube
Added: head/devel/rubygem-http_accept_language/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-http_accept_language/Makefile Mon Apr 10 21:09:30 2017 (r438211)
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= http_accept_language
+PORTVERSION= 2.1.0
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= jrm at FreeBSD.org
+COMMENT= Rails plugin to extract Accept-Language HTTP header into array
+
+LICENSE= MIT
+
+NO_ARCH= yes
+
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
Added: head/devel/rubygem-http_accept_language/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-http_accept_language/distinfo Mon Apr 10 21:09:30 2017 (r438211)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1491858194
+SHA256 (rubygem/http_accept_language-2.1.0.gem) = 503511738158a62b16579b753662852c5ee50006e815c64de787ca9803743545
+SIZE (rubygem/http_accept_language-2.1.0.gem) = 10752
Added: head/devel/rubygem-http_accept_language/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-http_accept_language/pkg-descr Mon Apr 10 21:09:30 2017 (r438211)
@@ -0,0 +1,12 @@
+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.
+
+WWW: https://github.com/iain/http_accept_language/
More information about the svn-ports-all
mailing list