head 1.4;
access;
symbols
pkgsrc-2023Q4:1.4.0.32
pkgsrc-2023Q4-base:1.4
pkgsrc-2023Q3:1.4.0.30
pkgsrc-2023Q3-base:1.4
pkgsrc-2023Q2:1.4.0.28
pkgsrc-2023Q2-base:1.4
pkgsrc-2023Q1:1.4.0.26
pkgsrc-2023Q1-base:1.4
pkgsrc-2022Q4:1.4.0.24
pkgsrc-2022Q4-base:1.4
pkgsrc-2022Q3:1.4.0.22
pkgsrc-2022Q3-base:1.4
pkgsrc-2022Q2:1.4.0.20
pkgsrc-2022Q2-base:1.4
pkgsrc-2022Q1:1.4.0.18
pkgsrc-2022Q1-base:1.4
pkgsrc-2021Q4:1.4.0.16
pkgsrc-2021Q4-base:1.4
pkgsrc-2021Q3:1.4.0.14
pkgsrc-2021Q3-base:1.4
pkgsrc-2021Q2:1.4.0.12
pkgsrc-2021Q2-base:1.4
pkgsrc-2021Q1:1.4.0.10
pkgsrc-2021Q1-base:1.4
pkgsrc-2020Q4:1.4.0.8
pkgsrc-2020Q4-base:1.4
pkgsrc-2020Q3:1.4.0.6
pkgsrc-2020Q3-base:1.4
pkgsrc-2020Q2:1.4.0.4
pkgsrc-2020Q2-base:1.4
pkgsrc-2020Q1:1.4.0.2
pkgsrc-2020Q1-base:1.4
pkgsrc-2019Q4:1.2.0.24
pkgsrc-2019Q4-base:1.2
pkgsrc-2019Q3:1.2.0.20
pkgsrc-2019Q3-base:1.2
pkgsrc-2019Q2:1.2.0.18
pkgsrc-2019Q2-base:1.2
pkgsrc-2019Q1:1.2.0.16
pkgsrc-2019Q1-base:1.2
pkgsrc-2018Q4:1.2.0.14
pkgsrc-2018Q4-base:1.2
pkgsrc-2018Q3:1.2.0.12
pkgsrc-2018Q3-base:1.2
pkgsrc-2018Q2:1.2.0.10
pkgsrc-2018Q2-base:1.2
pkgsrc-2018Q1:1.2.0.8
pkgsrc-2018Q1-base:1.2
pkgsrc-2017Q4:1.2.0.6
pkgsrc-2017Q4-base:1.2
pkgsrc-2017Q3:1.2.0.4
pkgsrc-2017Q3-base:1.2
pkgsrc-2017Q2:1.1.0.2
pkgsrc-2017Q2-base:1.1;
locks; strict;
comment @# @;
1.4
date 2020.03.08.14.19.09; author taca; state Exp;
branches;
next 1.3;
commitid 44lxPmQluhGHABZB;
1.3
date 2020.03.08.14.17.56; author taca; state Exp;
branches;
next 1.2;
commitid 73uXcbBKnooiABZB;
1.2
date 2017.07.13.15.34.08; author taca; state Exp;
branches;
next 1.1;
commitid 8bg7o79S1zNE95Zz;
1.1
date 2017.06.04.15.54.12; author taca; state Exp;
branches;
next ;
commitid hDVWErtBzzyfw4Uz;
desc
@@
1.4
log
@devel/ruby-iniparse: add USE_LANGUAGES
Add "USE_LANGUAGES= # none".
@
text
@# $NetBSD: Makefile,v 1.3 2020/03/08 14:17:56 taca Exp $
DISTNAME= iniparse-1.5.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@@NetBSD.org
HOMEPAGE= https://github.com/antw/iniparse
COMMENT= Pure Ruby library for parsing INI documents
LICENSE= apache-2.0
USE_LANGUAGES= # none
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
@
1.3
log
@devel/ruby-iniparse: update to 1.5.0
Update ruby-iniparse to 1.5.0.
### 1.5.0
* OptionCollection no longer yields duplicate keys as an array, but instead yields each key in turn.
For example, given an INI file:
[test]
a = 1
a = 2
b = 3
IniParse would previously yield a single "a" key: an array containing two `Line`s:
doc['test'].map { |line| line }
# => [[, ], ]
Instead, each key/value pair will be yielded in turn:
doc['test'].map { |line| line }
# => [, , ]
Directly accessing values via `[]` will still return an array of values as before:
doc['test']['a']
# => [1, 2]
* LineCollection#each may be called without a block, returning an Enumerator.
doc = IniParse.parse(<<~EOF)
[test]
a = x
b = y
EOF
doc[test].each
# => #
This allows for chaining as in the standard library:
doc['test'].map.with_index { |a, i| { index: i, value: a.value } }
# => [{ index: 0, value: 'x' }, { index: 1, value: 'y' }]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2017/07/13 15:34:08 taca Exp $
d11 2
@
1.2
log
@Update ruby-iniparse to 1.4.4.
1.4.4 2017/07/04
* Fix handling files with DOS line endings
* Improve error message with unparseable lines
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2017/06/04 15:54:12 taca Exp $
d3 1
a3 1
DISTNAME= iniparse-1.4.4
@
1.1
log
@Add ruby-iniparse package version 1.4.3.
IniParse is a pure Ruby library for parsing
INI[http://en.wikipedia.org/wiki/INI_file] configuration and data files.
=== Main features
* Support for duplicate options. While not common, some INI files contain an
option more than once. IniParse does not overwrite previous options, but
allows you to access all of the duplicate values.
* Preservation of white space and blank lines. When writing back to your INI
file, line indents, white space and comments (and their indents) are
preserved. Only trailing white space (which has no significance in INI
files) will be removed.
* Preservation of section and option ordering. Sections and options are kept
in the same order they are in the original document ensuring that nothing
gets mangled when writing back to the file.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME= iniparse-1.4.3
a10 2
#DEPENDS+= ${RUBY_PKGPREFIX}-thread_safe>=0.1<1:../../misc/ruby-thread_safe
@