ice_cube 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ice_cube/rule.rb +2 -2
- data/lib/ice_cube/schedule.rb +2 -2
- data/lib/ice_cube/version.rb +1 -1
- metadata +3 -3
data/lib/ice_cube/rule.rb
CHANGED
data/lib/ice_cube/schedule.rb
CHANGED
@@ -33,13 +33,13 @@ module IceCube
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# Convert the schedule to yaml, reverse of Schedule.from_yaml
|
36
|
-
def to_yaml
|
36
|
+
def to_yaml(options = {})
|
37
37
|
hash = to_hash
|
38
38
|
hash[:start_date] = TimeUtil.serializable_time(hash[:start_date])
|
39
39
|
hash[:rdates] = hash[:rdates].map { |t| TimeUtil.serializable_time(t) }
|
40
40
|
hash[:exdates] = hash[:exdates].map { |t| TimeUtil.serializable_time(t) }
|
41
41
|
hash[:end_time] = TimeUtil.serializable_time(hash[:end_time])
|
42
|
-
hash.to_yaml
|
42
|
+
hash.to_yaml(options)
|
43
43
|
end
|
44
44
|
|
45
45
|
# Create a schedule from a hash created by instance.to_hash
|
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 8
|
10
|
+
version: 0.5.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Crepezzi
|