pkgsrc/devel/ruby-iniparse/PLIST
taca 924173cde0 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' }]
2020-03-08 14:17:56 +00:00

16 lines
540 B
Text

@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
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/TODO
${GEM_LIBDIR}/iniparse.gemspec
${GEM_LIBDIR}/lib/iniparse.rb
${GEM_LIBDIR}/lib/iniparse/document.rb
${GEM_LIBDIR}/lib/iniparse/generator.rb
${GEM_LIBDIR}/lib/iniparse/line_collection.rb
${GEM_LIBDIR}/lib/iniparse/lines.rb
${GEM_LIBDIR}/lib/iniparse/parser.rb
${GEM_HOME}/specifications/${GEM_NAME}.gemspec