clockwork 0.2.1 → 0.2.2

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.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ end
16
16
  Jeweler::GemcutterTasks.new
17
17
 
18
18
  task 'test' do
19
- sh "turn"
19
+ sh "ruby test/clockwork_test.rb"
20
20
  end
21
21
 
22
22
  task :build => :test
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -2,13 +2,14 @@
2
2
 
3
3
  STDERR.sync = STDOUT.sync = true
4
4
 
5
- $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
6
- require 'clockwork'
5
+ require File.expand_path('../../lib/clockwork', __FILE__)
7
6
  include Clockwork
8
7
 
9
- usage = "clockwork <schedule.rb>"
8
+ usage = "clockwork <clock.rb>"
10
9
  file = ARGV.shift or abort usage
11
10
 
11
+ file = "./#{file}" unless file.match(/^[\/.]/)
12
+
12
13
  require file
13
14
 
14
15
  trap('INT') do
@@ -1,6 +1,7 @@
1
- require File.dirname(__FILE__) + '/../lib/clockwork'
1
+ require File.expand_path('../../lib/clockwork', __FILE__)
2
2
  require 'contest'
3
3
  require 'mocha'
4
+ require 'time'
4
5
 
5
6
  module Clockwork
6
7
  def log(msg)
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockwork
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 1
10
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Adam Wiggins
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-04 00:00:00 -07:00
17
+ date: 2011-01-03 00:00:00 -08:00
19
18
  default_executable: clockwork
20
19
  dependencies: []
21
20
 
@@ -39,8 +38,8 @@ homepage: http://github.com/adamwiggins/clockwork
39
38
  licenses: []
40
39
 
41
40
  post_install_message:
42
- rdoc_options:
43
- - --charset=UTF-8
41
+ rdoc_options: []
42
+
44
43
  require_paths:
45
44
  - lib
46
45
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -48,7 +47,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
47
  requirements:
49
48
  - - ">="
50
49
  - !ruby/object:Gem::Version
51
- hash: 3
52
50
  segments:
53
51
  - 0
54
52
  version: "0"
@@ -57,7 +55,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
55
  requirements:
58
56
  - - ">="
59
57
  - !ruby/object:Gem::Version
60
- hash: 3
61
58
  segments:
62
59
  - 0
63
60
  version: "0"