ice_cube_conrad 0.8.0

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.
Files changed (42) hide show
  1. data/lib/ice_cube.rb +80 -0
  2. data/lib/ice_cube/builders/hash_builder.rb +27 -0
  3. data/lib/ice_cube/builders/ical_builder.rb +59 -0
  4. data/lib/ice_cube/builders/string_builder.rb +74 -0
  5. data/lib/ice_cube/deprecated.rb +28 -0
  6. data/lib/ice_cube/errors/count_exceeded.rb +7 -0
  7. data/lib/ice_cube/errors/until_exceeded.rb +7 -0
  8. data/lib/ice_cube/errors/zero_interval.rb +7 -0
  9. data/lib/ice_cube/rule.rb +182 -0
  10. data/lib/ice_cube/rules/daily_rule.rb +14 -0
  11. data/lib/ice_cube/rules/hourly_rule.rb +14 -0
  12. data/lib/ice_cube/rules/minutely_rule.rb +14 -0
  13. data/lib/ice_cube/rules/monthly_rule.rb +14 -0
  14. data/lib/ice_cube/rules/secondly_rule.rb +13 -0
  15. data/lib/ice_cube/rules/weekly_rule.rb +14 -0
  16. data/lib/ice_cube/rules/yearly_rule.rb +14 -0
  17. data/lib/ice_cube/schedule.rb +414 -0
  18. data/lib/ice_cube/single_occurrence_rule.rb +28 -0
  19. data/lib/ice_cube/time_util.rb +250 -0
  20. data/lib/ice_cube/validated_rule.rb +108 -0
  21. data/lib/ice_cube/validations/count.rb +56 -0
  22. data/lib/ice_cube/validations/daily_interval.rb +55 -0
  23. data/lib/ice_cube/validations/day.rb +65 -0
  24. data/lib/ice_cube/validations/day_of_month.rb +52 -0
  25. data/lib/ice_cube/validations/day_of_week.rb +70 -0
  26. data/lib/ice_cube/validations/day_of_year.rb +55 -0
  27. data/lib/ice_cube/validations/hour_of_day.rb +52 -0
  28. data/lib/ice_cube/validations/hourly_interval.rb +57 -0
  29. data/lib/ice_cube/validations/lock.rb +47 -0
  30. data/lib/ice_cube/validations/minute_of_hour.rb +51 -0
  31. data/lib/ice_cube/validations/minutely_interval.rb +57 -0
  32. data/lib/ice_cube/validations/month_of_year.rb +49 -0
  33. data/lib/ice_cube/validations/monthly_interval.rb +51 -0
  34. data/lib/ice_cube/validations/schedule_lock.rb +41 -0
  35. data/lib/ice_cube/validations/second_of_minute.rb +49 -0
  36. data/lib/ice_cube/validations/secondly_interval.rb +54 -0
  37. data/lib/ice_cube/validations/until.rb +51 -0
  38. data/lib/ice_cube/validations/weekly_interval.rb +60 -0
  39. data/lib/ice_cube/validations/yearly_interval.rb +49 -0
  40. data/lib/ice_cube/version.rb +5 -0
  41. data/spec/spec_helper.rb +11 -0
  42. metadata +120 -0
@@ -0,0 +1,5 @@
1
+ module IceCube
2
+
3
+ VERSION = '0.8.0'
4
+
5
+ end
@@ -0,0 +1,11 @@
1
+ begin
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ rescue LoadError
5
+ # okay
6
+ end
7
+
8
+ require File.dirname(__FILE__) + '/../lib/ice_cube'
9
+
10
+ DAY = Time.utc(2010, 3, 1)
11
+ WEDNESDAY = Time.utc(2010, 6, 23, 5, 0, 0)
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ice_cube_conrad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - John Crepezzi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &25920360 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *25920360
25
+ - !ruby/object:Gem::Dependency
26
+ name: active_support
27
+ requirement: &25920060 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *25920060
36
+ - !ruby/object:Gem::Dependency
37
+ name: tzinfo
38
+ requirement: &25919808 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *25919808
47
+ description: ice_cube is a recurring date library for Ruby. It allows for quick,
48
+ programatic expansion of recurring date rules.
49
+ email: john@crepezzi.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
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
58
+ - lib/ice_cube/errors/count_exceeded.rb
59
+ - lib/ice_cube/errors/until_exceeded.rb
60
+ - lib/ice_cube/errors/zero_interval.rb
61
+ - lib/ice_cube/rule.rb
62
+ - lib/ice_cube/rules/daily_rule.rb
63
+ - lib/ice_cube/rules/hourly_rule.rb
64
+ - lib/ice_cube/rules/minutely_rule.rb
65
+ - lib/ice_cube/rules/monthly_rule.rb
66
+ - lib/ice_cube/rules/secondly_rule.rb
67
+ - lib/ice_cube/rules/weekly_rule.rb
68
+ - lib/ice_cube/rules/yearly_rule.rb
69
+ - lib/ice_cube/schedule.rb
70
+ - lib/ice_cube/single_occurrence_rule.rb
71
+ - lib/ice_cube/time_util.rb
72
+ - lib/ice_cube/validated_rule.rb
73
+ - lib/ice_cube/validations/count.rb
74
+ - lib/ice_cube/validations/daily_interval.rb
75
+ - lib/ice_cube/validations/day.rb
76
+ - lib/ice_cube/validations/day_of_month.rb
77
+ - lib/ice_cube/validations/day_of_week.rb
78
+ - lib/ice_cube/validations/day_of_year.rb
79
+ - lib/ice_cube/validations/hourly_interval.rb
80
+ - lib/ice_cube/validations/hour_of_day.rb
81
+ - lib/ice_cube/validations/lock.rb
82
+ - lib/ice_cube/validations/minutely_interval.rb
83
+ - lib/ice_cube/validations/minute_of_hour.rb
84
+ - lib/ice_cube/validations/monthly_interval.rb
85
+ - lib/ice_cube/validations/month_of_year.rb
86
+ - lib/ice_cube/validations/schedule_lock.rb
87
+ - lib/ice_cube/validations/secondly_interval.rb
88
+ - lib/ice_cube/validations/second_of_minute.rb
89
+ - lib/ice_cube/validations/until.rb
90
+ - lib/ice_cube/validations/weekly_interval.rb
91
+ - lib/ice_cube/validations/yearly_interval.rb
92
+ - lib/ice_cube/version.rb
93
+ - lib/ice_cube.rb
94
+ - spec/spec_helper.rb
95
+ homepage: http://seejohnrun.github.com/ice_cube/
96
+ licenses: []
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project: ice-cube
115
+ rubygems_version: 1.8.11
116
+ signing_key:
117
+ specification_version: 3
118
+ summary: Ruby Date Recurrence Library
119
+ test_files:
120
+ - spec/spec_helper.rb