stalker 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/stalk +3 -1
  3. data/test/stalker_test.rb +1 -1
  4. metadata +7 -12
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
data/bin/stalk CHANGED
@@ -2,13 +2,15 @@
2
2
 
3
3
  STDERR.sync = STDOUT.sync = true
4
4
 
5
- require File.dirname(__FILE__) + '/../lib/stalker'
5
+ require File.expand_path('../../lib/stalker', __FILE__)
6
6
  include Stalker
7
7
 
8
8
  usage = "stalk <jobs.rb> [<job>[,<job>,..]]"
9
9
  file = ARGV.shift or abort usage
10
10
  jobs = ARGV.shift.split(',') rescue nil
11
11
 
12
+ file = "./#{file}" unless file.match(/^[\/.]/)
13
+
12
14
  require file
13
15
 
14
16
  trap('INT') do
data/test/stalker_test.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../lib/stalker'
1
+ require File.expand_path('../../lib/stalker', __FILE__)
2
2
  require 'contest'
3
3
  require 'mocha'
4
4
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stalker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 5
9
- - 0
10
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
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-29 00:00:00 -07:00
17
+ date: 2011-01-03 00:00:00 -08:00
19
18
  default_executable: stalk
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -40,7 +38,6 @@ dependencies:
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- hash: 3
44
41
  segments:
45
42
  - 0
46
43
  version: "0"
@@ -60,16 +57,16 @@ files:
60
57
  - VERSION
61
58
  - bin/stalk
62
59
  - lib/stalker.rb
63
- - test/stalker_test.rb
64
60
  - examples/enqueue.rb
65
61
  - examples/jobs.rb
62
+ - test/stalker_test.rb
66
63
  has_rdoc: true
67
64
  homepage: http://github.com/adamwiggins/stalker
68
65
  licenses: []
69
66
 
70
67
  post_install_message:
71
- rdoc_options:
72
- - --charset=UTF-8
68
+ rdoc_options: []
69
+
73
70
  require_paths:
74
71
  - lib
75
72
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -77,7 +74,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
74
  requirements:
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
- hash: 3
81
77
  segments:
82
78
  - 0
83
79
  version: "0"
@@ -86,7 +82,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
82
  requirements:
87
83
  - - ">="
88
84
  - !ruby/object:Gem::Version
89
- hash: 3
90
85
  segments:
91
86
  - 0
92
87
  version: "0"
@@ -98,6 +93,6 @@ signing_key:
98
93
  specification_version: 3
99
94
  summary: A job queueing and background workers system using Beanstalkd.
100
95
  test_files:
101
- - test/stalker_test.rb
102
96
  - examples/enqueue.rb
103
97
  - examples/jobs.rb
98
+ - test/stalker_test.rb