hiccup 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiccup/enumerable/schedule_enumerator.rb +2 -2
- data/lib/hiccup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f487d3ef152b2d9acbe752721818bf43655d4a
|
4
|
+
data.tar.gz: 6dd7029be2338fd9c38861c03d1e16e229df7ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199f5e264c7c492e68b12e4d5b6cbc55e86e308afe9171c5689e35fdaafd3f4dc1c9859098ceaa3668a6fc7aeb9eb150aa1089e41eae7111cc50f5b057684876
|
7
|
+
data.tar.gz: 753a487f8efbf7f6f49769b2efda70cb84f8940fc1b37260ef04decc2ec3ce4e42752f7abc10d2220758428cb21bf0ef66cf2959b35a9d1049b049a050d45aba
|
@@ -27,13 +27,13 @@ module Hiccup
|
|
27
27
|
|
28
28
|
def next
|
29
29
|
@cursor = started? ? advance! : first_occurrence_on_or_after(seed_start_date)
|
30
|
-
return nil if ends? && @cursor > end_date
|
30
|
+
return nil if @cursor && ends? && @cursor > end_date
|
31
31
|
@cursor
|
32
32
|
end
|
33
33
|
|
34
34
|
def prev
|
35
35
|
@cursor = started? ? rewind! : first_occurrence_on_or_before(seed_end_date)
|
36
|
-
return nil if @cursor < start_date
|
36
|
+
return nil if @cursor && @cursor < start_date
|
37
37
|
@cursor
|
38
38
|
end
|
39
39
|
|
data/lib/hiccup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiccup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|