when-cron 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c6cb41b52b68db876230191f75c10dae240f4d40
4
+ data.tar.gz: e8c00085e9e93d136787e99e7ae85909c14e14da
5
+ SHA512:
6
+ metadata.gz: b9f877e0558fa5c2689ec41704db1accc2808bf4f23d2dcde1cc37eba7a4c3895be94ed5be7c0702757fff12c6d47973de604e9b3dd795c8f375a290c88ba7eb
7
+ data.tar.gz: 8f3c9b5015c529772246b44886256bfc89e72f65f41f32f849e5d6fd501e5e2ee8f306a33bf6780cae6d0bf3150d9eb3985f069402821a1365608d1dbf56b955
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in when.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,5 @@
1
+ guard :rspec, all_after_pass: true, all_on_start: true do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 TH
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # When
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'when'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install when
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/when ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'when'
4
+
5
+
@@ -0,0 +1,33 @@
1
+ module When
2
+ class Cron
3
+ def initialize(cron)
4
+ @cron = cron
5
+ end
6
+
7
+ def ==(time)
8
+ parsed?
9
+ matches = []
10
+ matches << (@minute == time.min)
11
+ matches << (@hour == time.hour)
12
+ matches << (@day == time.day)
13
+ matches << (@month == time.month)
14
+ matches << (@wday == time.wday)
15
+ matches.all?
16
+ end
17
+
18
+ private
19
+
20
+ def parsed?
21
+ @parsed ||= parse(@cron)
22
+ end
23
+
24
+ def parse(string)
25
+ strings = string.split(' ')
26
+ @minute = CronPart.new(strings[0])
27
+ @hour = CronPart.new(strings[1])
28
+ @day = CronPart.new(strings[2])
29
+ @month = CronPart.new(strings[3])
30
+ @wday = CronPart.new(strings[4])
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,11 @@
1
+ module When
2
+ class CronArray
3
+ def initialize(array)
4
+ @array = array
5
+ end
6
+
7
+ def ==(int)
8
+ @array.any? { |i| i == int }
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ module When
2
+ class CronInterval
3
+ def initialize(range, interval)
4
+ @range = range
5
+ @interval = interval
6
+ end
7
+
8
+ def ==(int)
9
+ int == @range && (int - @range.first) % @interval == 0
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,31 @@
1
+ module When
2
+ class CronPart
3
+ def initialize(cron_part)
4
+ @cron_part = cron_part
5
+ end
6
+
7
+ def ==(int)
8
+ part == int
9
+ end
10
+
11
+ private
12
+
13
+ def part
14
+ @part ||= parse(@cron_part)
15
+ end
16
+
17
+ def parse(cron_part)
18
+ if cron_part =~ /,/
19
+ CronArray.new(cron_part.split(',').map { |s| parse(s) })
20
+ elsif cron_part =~ /^((\d+|\*)-(\d+|\*)|\*)\/\d+$/
21
+ CronInterval.new(*cron_part.split('/').map { |s| parse(s) })
22
+ elsif cron_part =~ /^(\d+|\*)-(\d+|\*)$/
23
+ CronRange.new(*cron_part.split('-').map { |s| parse(s) })
24
+ elsif cron_part == '*'
25
+ Wildcard.new
26
+ else
27
+ cron_part.to_i
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,14 @@
1
+ module When
2
+ class CronRange
3
+ attr_reader :first, :last
4
+
5
+ def initialize(first, last)
6
+ @first = first
7
+ @last = last
8
+ end
9
+
10
+ def ==(int)
11
+ @first <= int && @last >= int
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,31 @@
1
+ module When
2
+ class Wildcard
3
+ def ==(obj)
4
+ true
5
+ end
6
+
7
+ def <=(obj)
8
+ true
9
+ end
10
+
11
+ def >=(obj)
12
+ true
13
+ end
14
+
15
+ def <(obj)
16
+ true
17
+ end
18
+
19
+ def >(obj)
20
+ true
21
+ end
22
+
23
+ def first
24
+ 0
25
+ end
26
+
27
+ def last
28
+ 0
29
+ end
30
+ end
31
+ end
data/lib/when-cron.rb ADDED
@@ -0,0 +1,4 @@
1
+ Gem.find_files("when-cron/**/*.rb").each { |path| require path }
2
+
3
+ module When
4
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe CronArray do
5
+ let(:cron_array) { CronArray.new([1,2,3]) }
6
+
7
+ describe '#==' do
8
+ context 'the array contains the given value' do
9
+ it 'returns true' do
10
+ expect(cron_array == 1).to eq true
11
+ end
12
+ end
13
+
14
+ context 'the array does not contain the given value' do
15
+ it 'returns false' do
16
+ expect(cron_array == 4).to eq false
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe CronInterval do
5
+ describe '#==' do
6
+ context 'wildcard over int' do
7
+ let(:cron_interval) { CronInterval.new(Wildcard.new, 3) }
8
+
9
+ it 'returns true for zero and multiples of 3' do
10
+ expect(cron_interval == (0 + rand(10)*3)).to eq true
11
+ end
12
+
13
+ it 'returns false for non zero non multiples of 3' do
14
+ expect(cron_interval == (1 + rand(10)*3)).to eq false
15
+ expect(cron_interval == (2 + rand(10)*3)).to eq false
16
+ end
17
+ end
18
+
19
+ context 'cron range over int' do
20
+ let(:cron_interval) { CronInterval.new(CronRange.new(8,39), 15) }
21
+
22
+ it 'returns true for 8, 23, and 38' do
23
+ expect(cron_interval == 8).to eq true
24
+ expect(cron_interval == 23).to eq true
25
+ expect(cron_interval == 38).to eq true
26
+ end
27
+
28
+ it 'returns false for 7, 24, 39, and 53' do
29
+ expect(cron_interval == 7).to eq false
30
+ expect(cron_interval == 24).to eq false
31
+ expect(cron_interval == 39).to eq false
32
+ expect(cron_interval == 53).to eq false
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,140 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe CronPart do
5
+ context 'basic number' do
6
+ let(:cron_part) { CronPart.new('5') }
7
+
8
+ it 'returns true when compared to 5' do
9
+ expect(cron_part == 5).to eq true
10
+ end
11
+
12
+ it 'returns false when compared to 4 or 6' do
13
+ expect(cron_part == 4).to eq false
14
+ expect(cron_part == 6).to eq false
15
+ end
16
+ end
17
+
18
+ context 'list of numbers' do
19
+ let(:cron_part) { CronPart.new('3,5,8') }
20
+
21
+ it 'returns true when compared to 3, 5, or 8' do
22
+ expect(cron_part == 3).to eq true
23
+ expect(cron_part == 5).to eq true
24
+ expect(cron_part == 8).to eq true
25
+ end
26
+
27
+ it 'returns false when compared to 2,4,6,7 or 9' do
28
+ expect(cron_part == 2).to eq false
29
+ expect(cron_part == 4).to eq false
30
+ expect(cron_part == 6).to eq false
31
+ expect(cron_part == 7).to eq false
32
+ expect(cron_part == 9).to eq false
33
+ end
34
+ end
35
+
36
+ context 'range' do
37
+ let(:cron_part) { CronPart.new('3-5') }
38
+
39
+ it 'returns true for 3, 4, or 5' do
40
+ expect(cron_part == 3).to eq true
41
+ expect(cron_part == 4).to eq true
42
+ expect(cron_part == 5).to eq true
43
+ end
44
+
45
+ it 'returns false for 2 or 6' do
46
+ expect(cron_part == 2).to eq false
47
+ expect(cron_part == 6).to eq false
48
+ end
49
+ end
50
+
51
+ context 'wildcard' do
52
+ let(:cron_part) { CronPart.new('*') }
53
+
54
+ it 'returns true for any number' do
55
+ expect(cron_part == rand(1000)).to eq true
56
+ end
57
+ end
58
+
59
+ context 'list and range' do
60
+ let(:cron_part) { CronPart.new('2,3,5-7') }
61
+
62
+ it 'returns true for 2, 3, 5, 6, or 7' do
63
+ expect(cron_part == 2).to eq true
64
+ expect(cron_part == 3).to eq true
65
+ expect(cron_part == 5).to eq true
66
+ expect(cron_part == 6).to eq true
67
+ expect(cron_part == 7).to eq true
68
+ end
69
+
70
+ it 'returns false for 1, 4, or 8' do
71
+ expect(cron_part == 1).to eq false
72
+ expect(cron_part == 4).to eq false
73
+ expect(cron_part == 8).to eq false
74
+ end
75
+ end
76
+
77
+ context 'wildcard interval' do
78
+ let(:cron_part) { CronPart.new('*/14') }
79
+
80
+ it 'returns true for zero or any multiple of 14' do
81
+ expect(cron_part == 0).to eq true
82
+ expect(cron_part == 14 * rand(1000)).to eq true
83
+ end
84
+
85
+ it 'returns false for any non-zero non-multiple of 14' do
86
+ expect(cron_part == 14 * rand(1000) + 1).to eq false
87
+ end
88
+ end
89
+
90
+ context 'wildcard ranges' do
91
+ let(:cron_part) { CronPart.new('*-5,9-*') }
92
+
93
+ it 'returns true for 0 to 5 and 9 or above' do
94
+ expect(cron_part == 0).to eq true
95
+ expect(cron_part == rand(5)).to eq true
96
+ expect(cron_part == 5).to eq true
97
+ expect(cron_part == 9).to eq true
98
+ expect(cron_part == 9 + rand(1000)).to eq true
99
+ end
100
+ end
101
+
102
+ context 'range interval' do
103
+ let(:cron_part) { CronPart.new('23-45/7') }
104
+
105
+ it 'returns true for 23, 30, 37, and 44' do
106
+ expect(cron_part == 23).to eq true
107
+ expect(cron_part == 30).to eq true
108
+ expect(cron_part == 37).to eq true
109
+ expect(cron_part == 44).to eq true
110
+ end
111
+
112
+ it 'returns false for 16, 24, 43, 51' do
113
+ expect(cron_part == 16).to eq false
114
+ expect(cron_part == 24).to eq false
115
+ expect(cron_part == 43).to eq false
116
+ expect(cron_part == 51).to eq false
117
+ end
118
+ end
119
+
120
+ context 'list, range, wildcard' do
121
+ let(:cron_part) { CronPart.new('1,2,5-7,9-*') }
122
+
123
+ it 'returns true for 1, 2, 5, 6, 7, 9 and above' do
124
+ expect(cron_part == 1).to eq true
125
+ expect(cron_part == 2).to eq true
126
+ expect(cron_part == 5).to eq true
127
+ expect(cron_part == 6).to eq true
128
+ expect(cron_part == 7).to eq true
129
+ expect(cron_part == 9).to eq true
130
+ expect(cron_part == 9 + rand(1000)).to eq true
131
+ end
132
+
133
+ it 'returns false for 0, 3, 4, 8' do
134
+ expect(cron_part == 0).to eq false
135
+ expect(cron_part == 3).to eq false
136
+ expect(cron_part == 4).to eq false
137
+ expect(cron_part == 8).to eq false
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe CronRange do
5
+ let(:cron_range) { CronRange.new(1, 3) }
6
+ describe '#==' do
7
+ it 'returns true if value is within range' do
8
+ expect(cron_range == 1).to eq true
9
+ expect(cron_range == 2).to eq true
10
+ expect(cron_range == 3).to eq true
11
+ end
12
+
13
+ it 'returns false if value is outside range' do
14
+ expect(cron_range == 4).to eq false
15
+ expect(cron_range == 0).to eq false
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe Cron do
5
+ let(:now) { Time.new(2013, 6, 15, 12, 30, 30) }
6
+
7
+ describe '#==' do
8
+ context 'simple cron' do
9
+ let(:cron) { Cron.new('30 12 15 6 6') }
10
+ it 'returns true for now' do
11
+ expect(cron == now).to eq true
12
+ end
13
+
14
+ it 'returns false for an hour earlier' do
15
+ expect(cron == now - 3600).to eq false
16
+ end
17
+ end
18
+
19
+ context 'complex cron' do
20
+ let(:cron) { Cron.new('25-35/5 */12 */5 4-8/2 6') }
21
+ it 'returns true for now' do
22
+ expect(cron == now).to eq true
23
+ end
24
+
25
+ it 'returns false for an hour earlier' do
26
+ expect(cron == now - 3600).to eq false
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+ include When
3
+
4
+ describe Wildcard do
5
+ describe '#==' do
6
+ it 'returns true' do
7
+ expect(Wildcard.new == 'asdf').to eq true
8
+ end
9
+ end
10
+
11
+ describe '#<=' do
12
+ it 'returns true' do
13
+ expect(Wildcard.new <= 'asdf').to eq true
14
+ end
15
+ end
16
+
17
+ describe '#>=' do
18
+ it 'returns true' do
19
+ expect(Wildcard.new >= 'asdf').to eq true
20
+ end
21
+ end
22
+
23
+ describe '#<' do
24
+ it 'returns true' do
25
+ expect(Wildcard.new < 'asdf').to eq true
26
+ end
27
+ end
28
+
29
+ describe '#>' do
30
+ it 'returns true' do
31
+ expect(Wildcard.new > 'asdf').to eq true
32
+ end
33
+ end
34
+
35
+ describe '#first' do
36
+ it 'returns zero' do
37
+ expect(Wildcard.new.first).to eq 0
38
+ end
39
+ end
40
+
41
+ describe '#last' do
42
+ it 'returns zero' do
43
+ expect(Wildcard.new.last).to eq 0
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe When do
4
+ end
@@ -0,0 +1,8 @@
1
+ require 'when-cron'
2
+
3
+ RSpec.configure do |config|
4
+ config.run_all_when_everything_filtered = true
5
+ config.filter_run :focus
6
+
7
+ config.order = 'random'
8
+ end
data/when-cron.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "when-cron"
7
+ spec.version = '1.0.0'
8
+ spec.authors = ["TH"]
9
+ spec.email = ["tylerhartland7@gmail.com"]
10
+ spec.description = %q{A basic cron implementation.}
11
+ spec.summary = %q{A basic cron implementation.}
12
+ spec.homepage = ""
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.3"
21
+ spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "guard"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "guard-rspec"
25
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: when-cron
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - TH
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: A basic cron implementation.
84
+ email:
85
+ - tylerhartland7@gmail.com
86
+ executables:
87
+ - when
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - Gemfile
94
+ - Guardfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/when
99
+ - lib/when-cron.rb
100
+ - lib/when-cron/cron/cron.rb
101
+ - lib/when-cron/cron/cron_array.rb
102
+ - lib/when-cron/cron/cron_interval.rb
103
+ - lib/when-cron/cron/cron_part.rb
104
+ - lib/when-cron/cron/cron_range.rb
105
+ - lib/when-cron/cron/wildcard.rb
106
+ - spec/lib/when/cron/cron_array_spec.rb
107
+ - spec/lib/when/cron/cron_interval_spec.rb
108
+ - spec/lib/when/cron/cron_part_spec.rb
109
+ - spec/lib/when/cron/cron_range_spec.rb
110
+ - spec/lib/when/cron/cron_spec.rb
111
+ - spec/lib/when/cron/wildcard_spec.rb
112
+ - spec/lib/when_spec.rb
113
+ - spec/spec_helper.rb
114
+ - when-cron.gemspec
115
+ homepage: ''
116
+ licenses:
117
+ - MIT
118
+ metadata: {}
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.1.11
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: A basic cron implementation.
139
+ test_files:
140
+ - spec/lib/when/cron/cron_array_spec.rb
141
+ - spec/lib/when/cron/cron_interval_spec.rb
142
+ - spec/lib/when/cron/cron_part_spec.rb
143
+ - spec/lib/when/cron/cron_range_spec.rb
144
+ - spec/lib/when/cron/cron_spec.rb
145
+ - spec/lib/when/cron/wildcard_spec.rb
146
+ - spec/lib/when_spec.rb
147
+ - spec/spec_helper.rb
148
+ has_rdoc: