resque-scheduler 1.9.10 → 2.0.0.a

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of resque-scheduler might be problematic. Click here for more details.

@@ -6,7 +6,7 @@ dir = File.dirname(File.expand_path(__FILE__))
6
6
 
7
7
  require 'rubygems'
8
8
  require 'test/unit'
9
- require 'mocha/setup'
9
+ require 'mocha'
10
10
  require 'resque'
11
11
  require File.join(dir, '../lib/resque_scheduler')
12
12
  $LOAD_PATH.unshift File.dirname(File.expand_path(__FILE__)) + '/../lib'
@@ -39,11 +39,11 @@ at_exit do
39
39
 
40
40
  pid = `ps -e -o pid,command | grep [r]edis-test`.split(" ")[0]
41
41
  puts "Killing test redis server..."
42
+ `rm -f #{dir}/dump.rdb`
42
43
  Process.kill("KILL", pid.to_i)
43
44
  exit exit_code
44
45
  end
45
46
 
46
- `rm -f #{dir}/dump.rdb`
47
47
  puts "Starting redis for testing at localhost:9736..."
48
48
  `redis-server #{dir}/redis-test.conf`
49
49
  Resque.redis = 'localhost:9736'
@@ -59,13 +59,13 @@ def context(*args, &block)
59
59
  klass = Class.new(defined?(ActiveSupport::TestCase) ? ActiveSupport::TestCase : Test::Unit::TestCase) do
60
60
  def self.test(name, &block)
61
61
  define_method("test_#{name.gsub(/\W/,'_')}", &block) if block
62
- end
63
- def self.xtest(*args) end
64
- def self.setup(&block) define_method(:setup, &block) end
65
- def self.teardown(&block) define_method(:teardown, &block) end
66
- end
62
+ end
63
+ def self.xtest(*args) end
64
+ def self.setup(&block) define_method(:setup, &block) end
65
+ def self.teardown(&block) define_method(:teardown, &block) end
66
+ end
67
67
  (class << klass; self end).send(:define_method, :name) { name.gsub(/\W/,'_') }
68
- klass.class_eval(&block)
68
+ klass.class_eval &block
69
69
  end
70
70
 
71
71
  class SomeJob
metadata CHANGED
@@ -1,147 +1,123 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: resque-scheduler
3
- version: !ruby/object:Gem::Version
4
- version: 1.9.10
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 0
9
+ - a
10
+ version: 2.0.0.a
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Ben VandenBos
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2013-09-20 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2010-12-10 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
14
22
  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: mocha
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: rack-test
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
23
  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: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 1
31
+ - 0
32
+ - 0
33
+ version: 1.0.0
62
34
  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: rubocop
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
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
84
37
  name: redis
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: 2.0.1
90
- type: :runtime
91
38
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 2
46
+ - 0
47
+ - 1
96
48
  version: 2.0.1
97
- - !ruby/object:Gem::Dependency
98
- name: resque
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: 1.8.0
104
- - - <
105
- - !ruby/object:Gem::Version
106
- version: 1.25.0
107
49
  type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: resque
108
53
  prerelease: false
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - '>='
112
- - !ruby/object:Gem::Version
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 1
61
+ - 8
62
+ - 0
113
63
  version: 1.8.0
114
- - - <
115
- - !ruby/object:Gem::Version
116
- version: 1.25.0
117
- - !ruby/object:Gem::Dependency
64
+ type: :runtime
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
118
67
  name: rufus-scheduler
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
76
+ version: "0"
124
77
  type: :runtime
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: mocha
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :development
91
+ version_requirements: *id005
92
+ - !ruby/object:Gem::Dependency
93
+ name: rack-test
125
94
  prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - '>='
129
- - !ruby/object:Gem::Version
130
- version: '0'
95
+ requirement: &id006 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ type: :development
104
+ version_requirements: *id006
131
105
  description: |-
132
106
  Light weight job scheduling on top of Resque.
133
107
  Adds methods enqueue_at/enqueue_in to schedule jobs in the future.
134
108
  Also supports queueing jobs on a fixed, cron-like schedule.
135
- email:
109
+ email:
136
110
  - bvandenbos@gmail.com
137
111
  executables: []
112
+
138
113
  extensions: []
114
+
139
115
  extra_rdoc_files: []
140
- files:
116
+
117
+ files:
141
118
  - .gitignore
142
- - .rubocop.yml
143
- - .travis.yml
144
119
  - Gemfile
120
+ - Gemfile.lock
145
121
  - HISTORY.md
146
122
  - LICENSE
147
123
  - README.markdown
@@ -162,33 +138,39 @@ files:
162
138
  - test/scheduler_args_test.rb
163
139
  - test/scheduler_test.rb
164
140
  - test/test_helper.rb
165
- homepage: http://github.com/resque/resque-scheduler
141
+ has_rdoc: true
142
+ homepage: http://github.com/bvandenbos/resque-scheduler
166
143
  licenses: []
167
- metadata: {}
144
+
168
145
  post_install_message:
169
146
  rdoc_options: []
170
- require_paths:
171
- - - lib
172
- required_ruby_version: !ruby/object:Gem::Requirement
173
- requirements:
174
- - - '>='
175
- - !ruby/object:Gem::Version
176
- version: '0'
177
- required_rubygems_version: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
147
+
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ segments:
156
+ - 0
157
+ version: "0"
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ segments:
164
+ - 1
165
+ - 3
166
+ - 6
167
+ version: 1.3.6
182
168
  requirements: []
169
+
183
170
  rubyforge_project:
184
- rubygems_version: 2.0.3
171
+ rubygems_version: 1.3.7
185
172
  signing_key:
186
- specification_version: 4
173
+ specification_version: 3
187
174
  summary: Light weight job scheduling on top of Resque
188
- test_files:
189
- - test/delayed_queue_test.rb
190
- - test/redis-test.conf
191
- - test/resque-web_test.rb
192
- - test/scheduler_args_test.rb
193
- - test/scheduler_test.rb
194
- - test/test_helper.rb
175
+ test_files: []
176
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 8f0e55db383000283bc9f62c6f1426f08c413364
4
- data.tar.gz: e9e155220dbf07b2af2f02d12350bedd15b96d92
5
- SHA512:
6
- metadata.gz: 23893a124cc859f8f9467d814252da43fb60096149a057b73fdf175c95def95dbcae3b94d002a05357cc4126eec316fd7a14d7c08af49559199ad23f8caa38bb
7
- data.tar.gz: a34f09d54fe6127853e9c24e8dcbf1cea6c72b669a65940be84f7b039896ca55c08e638cfac302ee3b8bfeda2b57b5cced7584dc9ed741e173d195ddc2cf79cc
@@ -1,120 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`.
2
- # The point is for the user to remove these configuration records
3
- # one by one as the offences are removed from the code base.
4
-
5
- AccessControl:
6
- Enabled: false
7
-
8
- AlignParameters:
9
- Enabled: false
10
-
11
- AssignmentInCondition:
12
- Enabled: false
13
-
14
- CaseEquality:
15
- Enabled: false
16
-
17
- ClassVars:
18
- Enabled: false
19
-
20
- CollectionMethods:
21
- Enabled: false
22
-
23
- ColonMethodCall:
24
- Enabled: false
25
-
26
- CommentAnnotation:
27
- Enabled: false
28
-
29
- Documentation:
30
- Enabled: false
31
-
32
- EmptyLines:
33
- Enabled: false
34
-
35
- Encoding:
36
- Enabled: false
37
-
38
- FavorUnlessOverNegatedIf:
39
- Enabled: false
40
-
41
- FavorUntilOverNegatedWhile:
42
- Enabled: false
43
-
44
- HandleExceptions:
45
- Enabled: false
46
-
47
- HashSyntax:
48
- Enabled: false
49
-
50
- IfUnlessModifier:
51
- Enabled: false
52
-
53
- LineLength:
54
- Enabled: false
55
-
56
- Loop:
57
- Enabled: false
58
-
59
- MethodCallParentheses:
60
- Enabled: false
61
-
62
- MethodLength:
63
- Enabled: false
64
-
65
- ModuleFunction:
66
- Enabled: false
67
-
68
- NumericLiterals:
69
- Enabled: false
70
-
71
- ParenthesesAroundCondition:
72
- Enabled: false
73
-
74
- PerlBackrefs:
75
- Enabled: false
76
-
77
- RedundantBegin:
78
- Enabled: false
79
-
80
- RescueException:
81
- Enabled: false
82
-
83
- RescueModifier:
84
- Enabled: false
85
-
86
- SingleLineMethods:
87
- Enabled: false
88
-
89
- SpaceAfterComma:
90
- Enabled: false
91
-
92
- SpaceAroundBlockBraces:
93
- Enabled: false
94
-
95
- SpaceAroundEqualsInParameterDefault:
96
- Enabled: false
97
-
98
- SpaceAroundOperators:
99
- Enabled: false
100
-
101
- SpaceInsideHashLiteralBraces:
102
- Enabled: false
103
-
104
- SpecialGlobalVars:
105
- Enabled: false
106
-
107
- StringLiterals:
108
- Enabled: false
109
-
110
- TrailingBlankLines:
111
- Enabled: false
112
-
113
- TrailingWhitespace:
114
- Enabled: false
115
-
116
- TrivialAccessors:
117
- Enabled: false
118
-
119
- UselessAssignment:
120
- Enabled: false