resque-aps 0.9.1 → 0.9.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/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## 0.9.1 (2010-07-07)
2
2
 
3
+ * Change the version to fix the dependencies
4
+
5
+ ## 0.9.1 (2010-07-07)
6
+
3
7
  * Minor changes to ease Application use with other outside classes, including the future feedback class.
4
8
 
5
9
  ## 0.9.0 (2010-07-05)
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", ">= 2.0.1"
40
- gemspec.add_dependency "resque", ">= 1.8.0"
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
+
@@ -1,3 +1,3 @@
1
1
  module ResqueAps
2
- Version = '0.9.1'
2
+ Version = '0.9.2'
3
3
  end
@@ -7,7 +7,8 @@ context "ResqueAps::Application" do
7
7
  end
8
8
 
9
9
  test "can create and close sockets" do
10
- socket, ssl = ResqueAps::Application.create_sockets(File.dirname(__FILE__) + "/../test-dev.pem", nil, Resque.aps_gateway_host, Resque.aps_gateway_port)
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
 
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/test_helper'
2
2
 
3
3
  # Pull in the server test_helper from resque
4
- require 'resque/server/test_helper.rb'
4
+ require 'resque_aps/server/test_helper.rb'
5
5
 
6
6
  context "on GET to /aps" do
7
7
  setup { get "/aps" }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 1
9
- version: 0.9.1
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
- version: 2.0.1
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
- - 8
43
+ - 5
44
44
  - 0
45
- version: 1.8.0
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