Allow for a single range or an array of ranges for the period

Also fix the "simulated indifferent access" for all needed cases.

Add a spec to test all this plus a basic test for the maintainers.
Metrics/LineLength: Line is too long. [104/90]<br>Style/BracesAroundHashParameters: Redundant curly braces around a hash parameter.