ice_cube 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,9 @@ module IceCube
29
29
 
30
30
  def build_ical(builder)
31
31
  builder['FREQ'] << 'DAILY'
32
+ unless interval == 1
33
+ builder['INTERVAL'] << interval
34
+ end
32
35
  end
33
36
 
34
37
  def type
@@ -6,7 +6,7 @@ module IceCube
6
6
  validations_for(:interval) << Validation.new(interval)
7
7
  clobber_base_validations(:hour)
8
8
  self
9
- end
9
+ end
10
10
 
11
11
  class Validation
12
12
 
@@ -26,6 +26,9 @@ module IceCube
26
26
 
27
27
  def build_ical(builder)
28
28
  builder['FREQ'] << 'HOURLY'
29
+ unless interval == 1
30
+ builder['INTERVAL'] << interval
31
+ end
29
32
  end
30
33
 
31
34
  def initialize(interval)
@@ -26,6 +26,9 @@ module IceCube
26
26
 
27
27
  def build_ical(builder)
28
28
  builder['FREQ'] << 'MINUTELY'
29
+ unless interval == 1
30
+ builder['INTERVAL'] << interval
31
+ end
29
32
  end
30
33
 
31
34
  def build_hash(builder)
@@ -22,6 +22,9 @@ module IceCube
22
22
 
23
23
  def build_ical(builder)
24
24
  builder['FREQ'] << 'MONTHLY'
25
+ unless interval == 1
26
+ builder['INTERVAL'] << interval
27
+ end
25
28
  end
26
29
 
27
30
  def build_hash(builder)
@@ -26,6 +26,9 @@ module IceCube
26
26
 
27
27
  def build_ical(builder)
28
28
  builder['FREQ'] << 'SECONDLY'
29
+ unless interval == 1
30
+ builder['INTERVAL'] << interval
31
+ end
29
32
  end
30
33
 
31
34
  def build_hash(builder)
@@ -23,6 +23,9 @@ module IceCube
23
23
 
24
24
  def build_ical(builder)
25
25
  builder['FREQ'] << 'WEEKLY'
26
+ unless interval == 1
27
+ builder['INTERVAL'] << interval
28
+ end
26
29
  end
27
30
 
28
31
  def build_hash(builder)
@@ -25,6 +25,9 @@ module IceCube
25
25
 
26
26
  def build_ical(builder)
27
27
  builder['FREQ'] << 'YEARLY'
28
+ unless interval == 1
29
+ builder['INTERVAL'] << interval
30
+ end
28
31
  end
29
32
 
30
33
  def initialize(interval)
@@ -1,5 +1,5 @@
1
1
  module IceCube
2
2
 
3
- VERSION = '0.7.8'
3
+ VERSION = '0.7.9'
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.8
4
+ version: 0.7.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-25 00:00:00.000000000 -05:00
13
- default_executable:
12
+ date: 2012-03-07 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
- requirement: &70283886751000 !ruby/object:Gem::Requirement
16
+ requirement: &9560840 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '0'
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *70283886751000
24
+ version_requirements: *9560840
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: active_support
28
- requirement: &70283886750480 !ruby/object:Gem::Requirement
27
+ requirement: &9560340 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ! '>='
@@ -33,10 +32,10 @@ dependencies:
33
32
  version: 3.0.0
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: *70283886750480
35
+ version_requirements: *9560340
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: tzinfo
39
- requirement: &70283886750060 !ruby/object:Gem::Requirement
38
+ requirement: &9559920 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ! '>='
@@ -44,7 +43,7 @@ dependencies:
44
43
  version: '0'
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *70283886750060
46
+ version_requirements: *9559920
48
47
  description: ice_cube is a recurring date library for Ruby. It allows for quick,
49
48
  programatic expansion of recurring date rules.
50
49
  email: john@crepezzi.com
@@ -52,47 +51,46 @@ executables: []
52
51
  extensions: []
53
52
  extra_rdoc_files: []
54
53
  files:
55
- - lib/ice_cube/builders/hash_builder.rb
56
- - lib/ice_cube/builders/ical_builder.rb
57
- - lib/ice_cube/builders/string_builder.rb
58
- - lib/ice_cube/deprecated.rb
59
- - lib/ice_cube/errors/count_exceeded.rb
60
54
  - lib/ice_cube/errors/until_exceeded.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
55
+ - lib/ice_cube/errors/count_exceeded.rb
76
56
  - lib/ice_cube/validations/day_of_month.rb
77
- - lib/ice_cube/validations/day_of_week.rb
78
57
  - lib/ice_cube/validations/day_of_year.rb
79
- - lib/ice_cube/validations/hour_of_day.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
80
63
  - lib/ice_cube/validations/hourly_interval.rb
64
+ - lib/ice_cube/validations/hour_of_day.rb
81
65
  - lib/ice_cube/validations/lock.rb
82
- - lib/ice_cube/validations/minute_of_hour.rb
66
+ - lib/ice_cube/validations/day_of_week.rb
83
67
  - 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
84
72
  - lib/ice_cube/validations/month_of_year.rb
73
+ - lib/ice_cube/validations/minute_of_hour.rb
85
74
  - lib/ice_cube/validations/monthly_interval.rb
86
- - lib/ice_cube/validations/schedule_lock.rb
87
- - lib/ice_cube/validations/second_of_minute.rb
88
- - lib/ice_cube/validations/secondly_interval.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
75
  - 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
93
92
  - lib/ice_cube.rb
94
93
  - spec/spec_helper.rb
95
- has_rdoc: true
96
94
  homepage: http://seejohnrun.github.com/ice_cube/
97
95
  licenses: []
98
96
  post_install_message:
@@ -113,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  version: '0'
114
112
  requirements: []
115
113
  rubyforge_project: ice-cube
116
- rubygems_version: 1.6.2
114
+ rubygems_version: 1.8.15
117
115
  signing_key:
118
116
  specification_version: 3
119
117
  summary: Ruby Date Recurrence Library