File rubygem-iniparse.changes of Package rubygem-iniparse

-------------------------------------------------------------------
Sat May  2 14:18:05 UTC 2020 - Manuel Schnitzer <mschnitzer@suse.com>

- updated to version 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:

    ```ini
    [test]
    a = 1
    a = 2
    b = 3
    ```

    IniParse would previously yield a single "a" key: an array containing two `Line`s:

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

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

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

    Directly accessing values via `[]` will still return an array of values as before:

    ```ruby
    doc['test']['a']
    # => [1, 2]
    ```

  * LineCollection#each may be called without a block, returning an Enumerator.

    ```ruby
    doc = IniParse.parse(<<~EOF)
      [test]
      a = x
      b = y
    EOF

    doc[test].each
    # => #<Enumerator: ...>
    ```

    This allows for chaining as in the standard library:

    ```ruby
    doc['test'].map.with_index { |a, i| { index: i, value: a.value } }
    # => [{ index: 0, value: 'x' }, { index: 1, value: 'y' }]
    ```

-------------------------------------------------------------------
Thu Aug  3 19:23:30 UTC 2017 - coolo@suse.com

- updated to version 1.4.4
  no changelog found

-------------------------------------------------------------------
Tue Jun  6 05:36:28 UTC 2017 - coolo@suse.com

- updated to version 1.4.3
  no changelog found

-------------------------------------------------------------------
Fri Sep 16 07:51:26 UTC 2016 - tboerger@suse.com

- Initial version 1.4.2

openSUSE Build Service is sponsored by