pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-iniparse



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Mar  8 14:17:56 UTC 2020

Modified Files:
        pkgsrc/devel/ruby-iniparse: Makefile PLIST distinfo

Log Message:
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 }
    # => [[<a = 1>, <a = 2>], <b = 3>]

  Instead, each key/value pair will be yielded in turn:

    doc['test'].map { |line| line }
    # => [<a = 1>, <a = 2>, <b = 3>]

  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
    # => #<Enumerator: ...>

  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' }]


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/ruby-iniparse/Makefile \
    pkgsrc/devel/ruby-iniparse/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ruby-iniparse/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-iniparse/Makefile
diff -u pkgsrc/devel/ruby-iniparse/Makefile:1.2 pkgsrc/devel/ruby-iniparse/Makefile:1.3
--- pkgsrc/devel/ruby-iniparse/Makefile:1.2     Thu Jul 13 15:34:08 2017
+++ pkgsrc/devel/ruby-iniparse/Makefile Sun Mar  8 14:17:56 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2017/07/13 15:34:08 taca Exp $
+# $NetBSD: Makefile,v 1.3 2020/03/08 14:17:56 taca Exp $
 
-DISTNAME=      iniparse-1.4.4
+DISTNAME=      iniparse-1.5.0
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-iniparse/distinfo
diff -u pkgsrc/devel/ruby-iniparse/distinfo:1.2 pkgsrc/devel/ruby-iniparse/distinfo:1.3
--- pkgsrc/devel/ruby-iniparse/distinfo:1.2     Thu Jul 13 15:34:08 2017
+++ pkgsrc/devel/ruby-iniparse/distinfo Sun Mar  8 14:17:56 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/07/13 15:34:08 taca Exp $
+$NetBSD: distinfo,v 1.3 2020/03/08 14:17:56 taca Exp $
 
-SHA1 (iniparse-1.4.4.gem) = 003ff325c26190f133ced44cc89af7758717f2c6
-RMD160 (iniparse-1.4.4.gem) = 39bf69b9b35ce5c11f6ae293b3f8355cf013f07b
-SHA512 (iniparse-1.4.4.gem) = fad9aa555207d3c622ef28d5edafdb01cbdcfde2e61a32ec22f829d4ee9a1991affb7f684a0c4909b1a3bbce21e5f15200088dc49271a0eb604a2a557aa1433b
-Size (iniparse-1.4.4.gem) = 15872 bytes
+SHA1 (iniparse-1.5.0.gem) = 739875d41f5d002f41eba8d38eacda4460da8159
+RMD160 (iniparse-1.5.0.gem) = 6a521ee19b66f8fa504d547504aebb26a08c162a
+SHA512 (iniparse-1.5.0.gem) = 6dbf4428dd39c988e4fd4a70e72b3b01de0f4e8c9e0a9d652332e82645282e94cad7d1eea964c8a15a39ed25e1044088723b8dd76e6fdd49bf8c7a2ca72bf657
+Size (iniparse-1.5.0.gem) = 16384 bytes

Index: pkgsrc/devel/ruby-iniparse/PLIST
diff -u pkgsrc/devel/ruby-iniparse/PLIST:1.1 pkgsrc/devel/ruby-iniparse/PLIST:1.2
--- pkgsrc/devel/ruby-iniparse/PLIST:1.1        Sun Jun  4 15:54:12 2017
+++ pkgsrc/devel/ruby-iniparse/PLIST    Sun Mar  8 14:17:56 2020
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1 2017/06/04 15:54:12 taca Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/03/08 14:17:56 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CHANGELOG.md
 ${GEM_LIBDIR}/Gemfile
 ${GEM_LIBDIR}/LICENSE
 ${GEM_LIBDIR}/README.rdoc



Home | Main Index | Thread Index | Old Index