hiccup 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiccup/serializers/ical.rb +1 -1
- data/lib/hiccup/version.rb +1 -1
- data/test/enumerable_test.rb +8 -0
- data/test/ical_serializable_test.rb +5 -0
- 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: 9de7dfc5a6dd61e80743654199726d2f7bf77a10
|
4
|
+
data.tar.gz: 6cc66a4f757143a6ae238eebf4f03c4b0498c732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 823add9242b2575e33f730ef7e586609e1dbf171aef895b41eebc4c52b23f084f64ecd4dcaae0068ba379ffc92531965ca0ffecc58ab58beb00d8b17813cb3a0
|
7
|
+
data.tar.gz: 47844cebe3bae66f1ba1a9e561be1e2dcdd4342c8e3250b98ca27a6d06a8102e5b6d063a6bdc3e04ad6fbecba536d48670a77fdb243a9315cc46dd782aa1a3f2
|
data/lib/hiccup/version.rb
CHANGED
data/test/enumerable_test.rb
CHANGED
@@ -266,6 +266,14 @@ class EnumerableTest < ActiveSupport::TestCase
|
|
266
266
|
assert_equal [], schedule.n_occurrences_on_or_before(10, Date.new(2011,1,2))
|
267
267
|
end
|
268
268
|
|
269
|
+
test "should predict nonrecurring dates before a date later than them" do
|
270
|
+
schedule = Schedule.new({
|
271
|
+
:kind => :never,
|
272
|
+
:start_date => Date.new(2011, 1, 3)})
|
273
|
+
assert_equal [Date.new(2011, 1, 3)], schedule.n_occurrences_on_or_before(10, Date.new(2011,1,3))
|
274
|
+
assert_equal [], schedule.n_occurrences_on_or_before(10, Date.new(2011,1,2))
|
275
|
+
end
|
276
|
+
|
269
277
|
test "should not predict dates after the end of a schedule" do
|
270
278
|
schedule = Schedule.new({
|
271
279
|
:kind => :weekly,
|
@@ -22,6 +22,11 @@ class IcalSerializableTest < ActiveSupport::TestCase
|
|
22
22
|
assert_equal :never, schedule.kind
|
23
23
|
end
|
24
24
|
|
25
|
+
def test_formatting_an_empty_schedule
|
26
|
+
schedule = Schedule.new(:kind => :yearly, :start_date => "")
|
27
|
+
assert_equal "", schedule.to_ical
|
28
|
+
end
|
29
|
+
|
25
30
|
|
26
31
|
test_roundtrip(
|
27
32
|
"No recurrence",
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|