CHANGELOG.md in string_splitter-0.5.1 vs CHANGELOG.md in string_splitter-0.6.0

- old
+ new

@@ -1,38 +1,75 @@ +## 0.6.0 - 2020-08-20 + +#### Breaking Changes + +- `ss.split(str, " ")` is no longer treated the same as `ss.split(str)` i.e. + unlike Ruby's `String#split` (but like Crystal's), the former no longer + strips the string before splitting +- rename the `remove_empty` option `remove_empty_fields` +- rename the `exclude` option `except` (alias for `reject`) + +#### Fixes + +- correctly handle backreferences in delimiter patterns + +#### Features + +- add support for descending, negative, and infinite ranges, + e.g. `ss.split(str, ":", at: [..4, 4..., 3..1, -1..-3])` etc. + ## 0.5.1 - 2018-07-01 +#### Changes + - set StringSplitter::VERSION when `string_splitter.rb` is loaded -- doc tweaks ## 0.5.0 - 2018-06-26 +#### Fixes + - don't treat string delimiters as patterns + +#### Features + - add a `reject`/`exclude` option which rejects splits at the specified positions - add a `select` alias for `at` ## 0.4.0 - 2018-06-24 -- **breaking change**: remove the `offset` alias for `split.index` +#### Breaking Changes +- remove the `offset` alias for `split.index` + ## 0.3.1 - 2018-06-24 -- remove trailing empty field when the separator is empty ([#1](https://github.com/chocolateboy/string_splitter/issues/1)) +#### Fixes +- remove trailing empty field when the separator is empty + ([#1](https://github.com/chocolateboy/string_splitter/issues/1)) + ## 0.3.0 - 2018-06-23 -- **breaking change**: rename the `default_separator` option to `default_delimiter` - - to avoid ambiguity in the code, refer to the input pattern/string as the - "delimiter" and the matched string as the "separator" +#### Breaking Changes +- rename the `default_separator` option `default_delimiter` + ## 0.2.0 - 2018-06-22 -- **breaking change**: make `index` (AKA `offset`) 0-based and add `position` - (AKA `pos`) as the 1-based accessor +#### Breaking Changes +- make `index` (AKA `offset`) 0-based and add `position` (AKA `pos`) as the + 1-based accessor + ## 0.1.0 - 2018-06-22 -- **breaking change**: the block now takes a single `split` object with an - `index` accessor, rather than seperate `index` and `split` arguments +#### Breaking Changes + +- the block now takes a single `split` object with an `index` accessor, rather + than seperate `index` and `split` arguments + +#### Features + - add support for negative indices in the value supplied to the `at` option - add a `count` field to the split object containing the total number of splits ## 0.0.1 - 2018-06-21