seejohnrun/ice_cube — pull request #92 by cawinkelmann (2012-07-18 21:24:51+00:00)
Title: Schedule find_occurrence when interval is greater than 1 won't use the start date causing invalid results

I found when the `find_occurrences` function is called in `Schedule` that it wants to start from the `opening_time` when looping to find the occurrences between the `begin_time` and `end_time` when the interval is greater than 1. When the interval is > 1 I believe it should begin looping at the `start_time` to make sure when it gets to the `opening_time` and the `closing_time` that it knows that the occurrence falls in the range.

I added `@interval` in daily_interval.rb, weekly_interval.rb, monthly_interval.rb, and yearly_interval.rb to allow `Rule` to have access to it. Then I altered the `full_required?` method to check the interval and make sure it exists and if > 1 to return true.

```ruby
# Whether this rule requires a full run
def full_required?
!@count.nil? || (! @interval.nil? && @interval > 1)
end
```