resque-aps 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +4 -0
- data/Rakefile +2 -2
- data/lib/resque_aps/server/test_helper.rb +20 -0
- data/lib/resque_aps/version.rb +1 -1
- data/test/application_test.rb +3 -2
- data/test/resque-web_test.rb +1 -1
- metadata +8 -7
data/HISTORY.md
CHANGED
data/Rakefile
CHANGED
@@ -36,8 +36,8 @@ begin
|
|
36
36
|
gemspec.authors = ["Ashley Martens"]
|
37
37
|
gemspec.version = ResqueAps::Version
|
38
38
|
|
39
|
-
gemspec.add_dependency "redis", ">=
|
40
|
-
gemspec.add_dependency "resque", ">= 1.
|
39
|
+
gemspec.add_dependency "redis", ">= 1.0.7"
|
40
|
+
gemspec.add_dependency "resque", ">= 1.5.0"
|
41
41
|
gemspec.add_development_dependency "jeweler"
|
42
42
|
gemspec.add_development_dependency "mocha"
|
43
43
|
gemspec.add_development_dependency "rack-test"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rack/test'
|
2
|
+
require 'resque/server'
|
3
|
+
|
4
|
+
module ResqueAps
|
5
|
+
module TestHelper
|
6
|
+
class Test::Unit::TestCase
|
7
|
+
include Rack::Test::Methods
|
8
|
+
def app
|
9
|
+
Resque::Server.new
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.should_respond_with_success
|
13
|
+
test "should respond with success" do
|
14
|
+
assert last_response.ok?, last_response.errors
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
data/lib/resque_aps/version.rb
CHANGED
data/test/application_test.rb
CHANGED
@@ -7,7 +7,8 @@ context "ResqueAps::Application" do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
test "can create and close sockets" do
|
10
|
-
|
10
|
+
cert = File.read(File.dirname(__FILE__) + "/../test-dev.pem")
|
11
|
+
socket, ssl = ResqueAps::Application.create_sockets(cert, nil, Resque.aps_gateway_host, Resque.aps_gateway_port)
|
11
12
|
ResqueAps::Application.close_sockets(socket, ssl)
|
12
13
|
end
|
13
14
|
|
@@ -34,7 +35,7 @@ context "ResqueAps::Application" do
|
|
34
35
|
logger.debug "after_aps_write #{notification.inspect}"
|
35
36
|
end
|
36
37
|
|
37
|
-
def failed_aps_write(notification)
|
38
|
+
def failed_aps_write(notification, exception)
|
38
39
|
logger.debug "failed_aps_write #{notification.inspect}"
|
39
40
|
end
|
40
41
|
|
data/test/resque-web_test.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 2
|
9
|
+
version: 0.9.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ashley Martens
|
@@ -25,10 +25,10 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
|
-
- 2
|
29
|
-
- 0
|
30
28
|
- 1
|
31
|
-
|
29
|
+
- 0
|
30
|
+
- 7
|
31
|
+
version: 1.0.7
|
32
32
|
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
@@ -40,9 +40,9 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
segments:
|
42
42
|
- 1
|
43
|
-
-
|
43
|
+
- 5
|
44
44
|
- 0
|
45
|
-
version: 1.
|
45
|
+
version: 1.5.0
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/resque_aps/helper.rb
|
105
105
|
- lib/resque_aps/notification.rb
|
106
106
|
- lib/resque_aps/server.rb
|
107
|
+
- lib/resque_aps/server/test_helper.rb
|
107
108
|
- lib/resque_aps/server/views/aps_applications.erb
|
108
109
|
- lib/resque_aps/server/views/notifications.erb
|
109
110
|
- lib/resque_aps/tasks.rb
|