head	1.3;
access;
symbols
	pkgsrc-2026Q1:1.3.0.18
	pkgsrc-2026Q1-base:1.3
	pkgsrc-2025Q4:1.3.0.16
	pkgsrc-2025Q4-base:1.3
	pkgsrc-2025Q3:1.3.0.14
	pkgsrc-2025Q3-base:1.3
	pkgsrc-2025Q2:1.3.0.12
	pkgsrc-2025Q2-base:1.3
	pkgsrc-2025Q1:1.3.0.10
	pkgsrc-2025Q1-base:1.3
	pkgsrc-2024Q4:1.3.0.8
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.6
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.4
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.3.0.2
	pkgsrc-2024Q1-base:1.3
	pkgsrc-2023Q4:1.2.0.12
	pkgsrc-2023Q4-base:1.2
	pkgsrc-2023Q3:1.2.0.10
	pkgsrc-2023Q3-base:1.2
	pkgsrc-2023Q2:1.2.0.8
	pkgsrc-2023Q2-base:1.2
	pkgsrc-2023Q1:1.2.0.6
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.4
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.2
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.1.0.20
	pkgsrc-2022Q2-base:1.1
	pkgsrc-2022Q1:1.1.0.18
	pkgsrc-2022Q1-base:1.1
	pkgsrc-2021Q4:1.1.0.16
	pkgsrc-2021Q4-base:1.1
	pkgsrc-2021Q3:1.1.0.14
	pkgsrc-2021Q3-base:1.1
	pkgsrc-2021Q2:1.1.0.12
	pkgsrc-2021Q2-base:1.1
	pkgsrc-2021Q1:1.1.0.10
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.8
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.6
	pkgsrc-2020Q3-base:1.1
	pkgsrc-2020Q2:1.1.0.4
	pkgsrc-2020Q2-base:1.1
	pkgsrc-2020Q1:1.1.0.2
	pkgsrc-2020Q1-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2024.02.05.15.53.07;	author taca;	state Exp;
branches;
next	1.2;
commitid	vA7NtfpnVduebgXE;

1.2
date	2022.08.31.14.56.22;	author taca;	state Exp;
branches;
next	1.1;
commitid	kP1u2sOCCM73G2SD;

1.1
date	2020.01.19.08.23.06;	author taca;	state Exp;
branches;
next	;
commitid	ehjTbyfAqQDdchTB;


desc
@@


1.3
log
@www/ruby-http-accept: update to 2.2.1

2.2.1 (2024-02-05)

What's Changed

* Update README with how to require the code by @@ianoxley in #18
* Modernize gem by @@ioquatix in #19

New Contributors

* @@ianoxley made their first contribution in #18
* @@ioquatix made their first contribution in #19
@
text
@@@comment $NetBSD: PLIST,v 1.2 2022/08/31 14:56:22 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/lib/http/accept.rb
${GEM_LIBDIR}/lib/http/accept/charsets.rb
${GEM_LIBDIR}/lib/http/accept/content_type.rb
${GEM_LIBDIR}/lib/http/accept/encodings.rb
${GEM_LIBDIR}/lib/http/accept/languages.rb
${GEM_LIBDIR}/lib/http/accept/media_types.rb
${GEM_LIBDIR}/lib/http/accept/media_types/map.rb
${GEM_LIBDIR}/lib/http/accept/parse_error.rb
${GEM_LIBDIR}/lib/http/accept/quoted_string.rb
${GEM_LIBDIR}/lib/http/accept/sort.rb
${GEM_LIBDIR}/lib/http/accept/version.rb
${GEM_LIBDIR}/license.md
${GEM_LIBDIR}/readme.md
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
@


1.2
log
@www/ruby-http-accept: update to 2.2.0

2.2.0 (2022-08-02)

* Tidy up specs.
* Improve default constructor.
* Remove code climate badge.
* Merge pull request #14 from socketry/olleolleolle-add-27
* Handle q-values up to 6 decimal places.
* Modernize gem.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.1 2020/01/19 08:23:06 taca Exp $
d14 2
@


1.1
log
@www/ruby-http-accept: add version 2.1.1 package

Add ruby-http-accept version 2.1.1 package.

# HTTP::Accept

Provides a robust set of parsers for dealing with HTTP Accept,
Accept-Language, Accept-Encoding, Accept-Charset headers.

## Motivation

I've been developing some tools for building RESTful endpoints and part of
that involved versioning.  After reviewing the options, I settled on using
the Accept: application/json;version=1 method as outlined here.

The version=1 part of the media-type is a parameter as defined by RFC7231
Section 3.1.1.1.  After reviewing several existing different options for
parsing the Accept: header, I noticed a disturbing trend: header.split(',').
Because parameters may contain quoted strings which contain commas, this is
clearly not an appropriate way to parse the header.

I am concerned about correctness, security and performance.  As such, I
implemented this gem to provide a simple high level interface for both
parsing and correctly interpreting these headers.
@
text
@d1 1
a1 1
@@comment $NetBSD$
a2 7
${GEM_LIBDIR}/.gitignore
${GEM_LIBDIR}/.rspec
${GEM_LIBDIR}/.travis.yml
${GEM_LIBDIR}/Gemfile
${GEM_LIBDIR}/README.md
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/http-accept.gemspec
@

