The array_include_methods gem (Array#include_all? & Array#include_any? methods missing from basic Ruby Array API and more!) has had several releases in versions 1.1.0-1.4.0, with the following changes (some API breaking):
1.4.0
- array_diff_indexes(other_array) (alias: array_diff_indices)
- array_intersection_indexes(other_array) (alias: array_intersection_indices)
1.3.0
- [API Breaking] Separate between operations include_any?(*array) and include_any?(array) to avoid confusion (remove support for the latter as it is not necessary)
- [API Breaking] Separate between operations include_all?(*array) and include_all?(array) to avoid confusion (rename the latter to include_array?(array))
- Array#include_all?(*other_array, same_sort: true) accepts same_sort option (default: false)
1.2.0
- Add Array#array_index(array) method to determine start array index of other array
1.1.0
- Perform contiguous-element include_all?([...]) check against an array argument (not splatted)
- Perform sorted include_all?([...]) check against an array argument (not splatted)
- Perform non-repetition include_all?([...]) check against an array argument (not splatted)
Here is a reminder of what the gem is all about:
No comments:
Post a Comment