ice_cube 0.7.10 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -318,6 +318,14 @@ module IceCube
318
318
  end_time || recurrence_rules.all?(&:terminating?)
319
319
  end
320
320
 
321
+ def self.dump(schedule)
322
+ schedule.to_yaml
323
+ end
324
+
325
+ def self.load(yaml)
326
+ from_yaml(yaml) unless yaml.nil? || yaml.empty?
327
+ end
328
+
321
329
  private
322
330
 
323
331
  # Reset all rules for another run
@@ -1,5 +1,5 @@
1
1
  module IceCube
2
2
 
3
- VERSION = '0.7.10'
3
+ VERSION = '0.7.11'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ice_cube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-08 00:00:00.000000000Z
12
+ date: 2012-03-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &20856180 !ruby/object:Gem::Requirement
16
+ requirement: &70353556988740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *20856180
24
+ version_requirements: *70353556988740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: active_support
27
- requirement: &20855680 !ruby/object:Gem::Requirement
27
+ requirement: &70353556988100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *20855680
35
+ version_requirements: *70353556988100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: tzinfo
38
- requirement: &20908020 !ruby/object:Gem::Requirement
38
+ requirement: &70353556986140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *20908020
46
+ version_requirements: *70353556986140
47
47
  description: ice_cube is a recurring date library for Ruby. It allows for quick,
48
48
  programatic expansion of recurring date rules.
49
49
  email: john@crepezzi.com
@@ -51,44 +51,44 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
- - lib/ice_cube/errors/until_exceeded.rb
54
+ - lib/ice_cube/builders/hash_builder.rb
55
+ - lib/ice_cube/builders/ical_builder.rb
56
+ - lib/ice_cube/builders/string_builder.rb
57
+ - lib/ice_cube/deprecated.rb
55
58
  - lib/ice_cube/errors/count_exceeded.rb
59
+ - lib/ice_cube/errors/until_exceeded.rb
60
+ - lib/ice_cube/rule.rb
61
+ - lib/ice_cube/rules/daily_rule.rb
62
+ - lib/ice_cube/rules/hourly_rule.rb
63
+ - lib/ice_cube/rules/minutely_rule.rb
64
+ - lib/ice_cube/rules/monthly_rule.rb
65
+ - lib/ice_cube/rules/secondly_rule.rb
66
+ - lib/ice_cube/rules/weekly_rule.rb
67
+ - lib/ice_cube/rules/yearly_rule.rb
68
+ - lib/ice_cube/schedule.rb
69
+ - lib/ice_cube/single_occurrence_rule.rb
70
+ - lib/ice_cube/time_util.rb
71
+ - lib/ice_cube/validated_rule.rb
72
+ - lib/ice_cube/validations/count.rb
73
+ - lib/ice_cube/validations/daily_interval.rb
74
+ - lib/ice_cube/validations/day.rb
56
75
  - lib/ice_cube/validations/day_of_month.rb
76
+ - lib/ice_cube/validations/day_of_week.rb
57
77
  - lib/ice_cube/validations/day_of_year.rb
58
- - lib/ice_cube/validations/until.rb
59
- - lib/ice_cube/validations/schedule_lock.rb
60
- - lib/ice_cube/validations/secondly_interval.rb
61
- - lib/ice_cube/validations/second_of_minute.rb
62
- - lib/ice_cube/validations/daily_interval.rb
63
- - lib/ice_cube/validations/hourly_interval.rb
64
78
  - lib/ice_cube/validations/hour_of_day.rb
79
+ - lib/ice_cube/validations/hourly_interval.rb
65
80
  - lib/ice_cube/validations/lock.rb
66
- - lib/ice_cube/validations/day_of_week.rb
81
+ - lib/ice_cube/validations/minute_of_hour.rb
67
82
  - lib/ice_cube/validations/minutely_interval.rb
68
- - lib/ice_cube/validations/day.rb
69
- - lib/ice_cube/validations/count.rb
70
- - lib/ice_cube/validations/yearly_interval.rb
71
- - lib/ice_cube/validations/weekly_interval.rb
72
83
  - lib/ice_cube/validations/month_of_year.rb
73
- - lib/ice_cube/validations/minute_of_hour.rb
74
84
  - lib/ice_cube/validations/monthly_interval.rb
85
+ - lib/ice_cube/validations/schedule_lock.rb
86
+ - lib/ice_cube/validations/second_of_minute.rb
87
+ - lib/ice_cube/validations/secondly_interval.rb
88
+ - lib/ice_cube/validations/until.rb
89
+ - lib/ice_cube/validations/weekly_interval.rb
90
+ - lib/ice_cube/validations/yearly_interval.rb
75
91
  - lib/ice_cube/version.rb
76
- - lib/ice_cube/deprecated.rb
77
- - lib/ice_cube/time_util.rb
78
- - lib/ice_cube/rules/yearly_rule.rb
79
- - lib/ice_cube/rules/minutely_rule.rb
80
- - lib/ice_cube/rules/secondly_rule.rb
81
- - lib/ice_cube/rules/hourly_rule.rb
82
- - lib/ice_cube/rules/daily_rule.rb
83
- - lib/ice_cube/rules/weekly_rule.rb
84
- - lib/ice_cube/rules/monthly_rule.rb
85
- - lib/ice_cube/schedule.rb
86
- - lib/ice_cube/validated_rule.rb
87
- - lib/ice_cube/rule.rb
88
- - lib/ice_cube/single_occurrence_rule.rb
89
- - lib/ice_cube/builders/ical_builder.rb
90
- - lib/ice_cube/builders/string_builder.rb
91
- - lib/ice_cube/builders/hash_builder.rb
92
92
  - lib/ice_cube.rb
93
93
  - spec/spec_helper.rb
94
94
  homepage: http://seejohnrun.github.com/ice_cube/
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project: ice-cube
114
- rubygems_version: 1.8.15
114
+ rubygems_version: 1.8.17
115
115
  signing_key:
116
116
  specification_version: 3
117
117
  summary: Ruby Date Recurrence Library