ice_cube 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ice_cube.rb +1 -1
- data/lib/ice_cube/rule.rb +1 -1
- data/lib/ice_cube/rule_occurrence.rb +1 -1
- data/lib/ice_cube/version.rb +1 -1
- metadata +4 -4
data/lib/ice_cube.rb
CHANGED
@@ -37,7 +37,7 @@ module IceCube
|
|
37
37
|
IceCube::ONE_HOUR = 60 * 60
|
38
38
|
IceCube::ONE_MINUTE = 60
|
39
39
|
IceCube::ONE_SECOND = 1
|
40
|
-
|
40
|
+
|
41
41
|
ICAL_DAYS = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']
|
42
42
|
DAYS = { :sunday => 0, :monday => 1, :tuesday => 2, :wednesday => 3, :thursday => 4, :friday => 5, :saturday => 6 }
|
43
43
|
MONTHS = { :january => 1, :february => 2, :march => 3, :april => 4, :may => 5, :june => 6, :july => 7, :august => 8,
|
data/lib/ice_cube/rule.rb
CHANGED
@@ -44,8 +44,8 @@ module IceCube
|
|
44
44
|
begin
|
45
45
|
return nil if @end_time && date > @end_time
|
46
46
|
return nil if @rule.until_date && date > @rule.until_date # until check
|
47
|
+
next unless @rule.in_interval?(date, @start_date)
|
47
48
|
return nil if yield(date)
|
48
|
-
next unless @rule.in_interval?(date, @start_date)
|
49
49
|
return RuleOccurrence.new(@rule, @start_date, @end_time, date, @index + 1)
|
50
50
|
end while date = @rule.next_suggestion(date)
|
51
51
|
end
|
data/lib/ice_cube/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ice_cube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Crepezzi
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-21 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|