Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/ice_cube/input_alignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ def initialize(rule, value, rule_part)

attr_reader :rule, :value, :rule_part

def verify(freq, options = {}, &)
def verify(freq, options = {}, &block)
@rule.validations[:interval] or return

case @rule
when DailyRule
verify_wday_alignment(freq, &)
verify_wday_alignment(freq, &block)
when MonthlyRule
verify_month_alignment(freq, &)
verify_month_alignment(freq, &block)
else
verify_freq_alignment(freq, &)
verify_freq_alignment(freq, &block)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ice_cube/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def all_occurrences_enumerator
end

# Iterate forever
def each_occurrence(&)
enumerate_occurrences(start_time, &).to_a
def each_occurrence(&block)
enumerate_occurrences(start_time, &block).to_a
self
end

Expand Down