has_schedule 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source :rubygems
2
2
 
3
3
  gem "ice_cube"
4
+ gem "andand", "1.3.1"
4
5
 
5
6
  group :development do
6
7
  gem "shoulda", ">= 0"
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ andand (1.3.1)
4
5
  git (1.2.5)
5
6
  ice_cube (0.6.6)
6
7
  jeweler (1.5.2)
@@ -15,6 +16,7 @@ PLATFORMS
15
16
  ruby
16
17
 
17
18
  DEPENDENCIES
19
+ andand (= 1.3.1)
18
20
  bundler (~> 1.0.0)
19
21
  ice_cube
20
22
  jeweler (~> 1.5.2)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_schedule}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Schlesinger"]
12
- s.date = %q{2011-03-16}
12
+ s.date = %q{2011-04-13}
13
13
  s.description = %q{Exposes an ice_cube schedule object and serializes it.}
14
14
  s.email = %q{ryan@instanceinc.com}
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/ryansch/has_schedule}
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.5.3}
34
+ s.rubygems_version = %q{1.6.2}
35
35
  s.summary = %q{Adds schedule serialization for use with ice_cube}
36
36
 
37
37
  if s.respond_to? :specification_version then
@@ -39,12 +39,14 @@ Gem::Specification.new do |s|
39
39
 
40
40
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
41
  s.add_runtime_dependency(%q<ice_cube>, [">= 0"])
42
+ s.add_runtime_dependency(%q<andand>, ["= 1.3.1"])
42
43
  s.add_development_dependency(%q<shoulda>, [">= 0"])
43
44
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
44
45
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
45
46
  s.add_development_dependency(%q<rcov>, [">= 0"])
46
47
  else
47
48
  s.add_dependency(%q<ice_cube>, [">= 0"])
49
+ s.add_dependency(%q<andand>, ["= 1.3.1"])
48
50
  s.add_dependency(%q<shoulda>, [">= 0"])
49
51
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
50
52
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -52,6 +54,7 @@ Gem::Specification.new do |s|
52
54
  end
53
55
  else
54
56
  s.add_dependency(%q<ice_cube>, [">= 0"])
57
+ s.add_dependency(%q<andand>, ["= 1.3.1"])
55
58
  s.add_dependency(%q<shoulda>, [">= 0"])
56
59
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
57
60
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -1,3 +1,5 @@
1
+ require 'andand'
2
+
1
3
  module HasSchedule
2
4
  def self.included(base)
3
5
  base.send :extend, ClassMethods
@@ -38,10 +40,10 @@ module HasSchedule
38
40
 
39
41
  def schedule
40
42
  @schedule ||= if self.schedule_yaml.blank?
41
- nil
42
- else
43
- IceCube::Schedule.from_yaml(self.schedule_yaml)
44
- end
43
+ nil
44
+ else
45
+ IceCube::Schedule.from_yaml(self.schedule_yaml)
46
+ end
45
47
  end
46
48
  end
47
49
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_schedule
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Schlesinger
@@ -15,12 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-16 00:00:00 -07:00
18
+ date: 2011-04-13 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: ice_cube
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
26
  - - ">="
@@ -29,12 +29,28 @@ dependencies:
29
29
  segments:
30
30
  - 0
31
31
  version: "0"
32
+ name: ice_cube
33
+ version_requirements: *id001
32
34
  prerelease: false
35
+ - !ruby/object:Gem::Dependency
33
36
  type: :runtime
34
- requirement: *id001
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - "="
41
+ - !ruby/object:Gem::Version
42
+ hash: 25
43
+ segments:
44
+ - 1
45
+ - 3
46
+ - 1
47
+ version: 1.3.1
48
+ name: andand
49
+ version_requirements: *id002
50
+ prerelease: false
35
51
  - !ruby/object:Gem::Dependency
36
- name: shoulda
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
52
+ type: :development
53
+ requirement: &id003 !ruby/object:Gem::Requirement
38
54
  none: false
39
55
  requirements:
40
56
  - - ">="
@@ -43,12 +59,12 @@ dependencies:
43
59
  segments:
44
60
  - 0
45
61
  version: "0"
62
+ name: shoulda
63
+ version_requirements: *id003
46
64
  prerelease: false
47
- type: :development
48
- requirement: *id002
49
65
  - !ruby/object:Gem::Dependency
50
- name: bundler
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
66
+ type: :development
67
+ requirement: &id004 !ruby/object:Gem::Requirement
52
68
  none: false
53
69
  requirements:
54
70
  - - ~>
@@ -59,12 +75,12 @@ dependencies:
59
75
  - 0
60
76
  - 0
61
77
  version: 1.0.0
78
+ name: bundler
79
+ version_requirements: *id004
62
80
  prerelease: false
63
- type: :development
64
- requirement: *id003
65
81
  - !ruby/object:Gem::Dependency
66
- name: jeweler
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
82
+ type: :development
83
+ requirement: &id005 !ruby/object:Gem::Requirement
68
84
  none: false
69
85
  requirements:
70
86
  - - ~>
@@ -75,12 +91,12 @@ dependencies:
75
91
  - 5
76
92
  - 2
77
93
  version: 1.5.2
94
+ name: jeweler
95
+ version_requirements: *id005
78
96
  prerelease: false
79
- type: :development
80
- requirement: *id004
81
97
  - !ruby/object:Gem::Dependency
82
- name: rcov
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
98
+ type: :development
99
+ requirement: &id006 !ruby/object:Gem::Requirement
84
100
  none: false
85
101
  requirements:
86
102
  - - ">="
@@ -89,9 +105,9 @@ dependencies:
89
105
  segments:
90
106
  - 0
91
107
  version: "0"
108
+ name: rcov
109
+ version_requirements: *id006
92
110
  prerelease: false
93
- type: :development
94
- requirement: *id005
95
111
  description: Exposes an ice_cube schedule object and serializes it.
96
112
  email: ryan@instanceinc.com
97
113
  executables: []
@@ -142,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
158
  requirements: []
143
159
 
144
160
  rubyforge_project:
145
- rubygems_version: 1.5.3
161
+ rubygems_version: 1.6.2
146
162
  signing_key:
147
163
  specification_version: 3
148
164
  summary: Adds schedule serialization for use with ice_cube