ice_cube 0.5.7 → 0.5.8

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/rule.rb CHANGED
@@ -26,8 +26,8 @@ module IceCube
26
26
  rule
27
27
  end
28
28
 
29
- def to_yaml
30
- to_hash.to_yaml
29
+ def to_yaml(options = {})
30
+ to_hash.to_yaml(options)
31
31
  end
32
32
 
33
33
  def self.from_yaml(str)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module IceCube
2
2
 
3
- VERSION = '0.5.7'
3
+ VERSION = '0.5.8'
4
4
 
5
5
  end
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: 5
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Crepezzi