pusher 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -24,7 +24,8 @@ module Pusher
24
24
  deferrable = EM::DefaultDeferrable.new
25
25
 
26
26
  http = @http_async.post({
27
- :query => request.query, :timeout => 2, :body => request.body
27
+ :query => request.query, :timeout => 2, :body => request.body,
28
+ :head => {'Content-Type'=> 'application/json'}
28
29
  })
29
30
  http.callback {
30
31
  begin
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pusher}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["New Bamboo"]
12
- s.date = %q{2010-05-25}
12
+ s.date = %q{2010-06-01}
13
13
  s.description = %q{Wrapper for pusherapp.com REST api}
14
14
  s.email = %q{support@pusherapp.com}
15
15
  s.extra_rdoc_files = [
@@ -5,6 +5,8 @@ describe Pusher::Channel do
5
5
  Pusher.app_id = '20'
6
6
  Pusher.key = '12345678900000001'
7
7
  Pusher.secret = '12345678900000001'
8
+ Pusher.host = 'api.pusherapp.com'
9
+ Pusher.port = 80
8
10
  end
9
11
 
10
12
  after do
@@ -155,7 +157,6 @@ describe Pusher::Channel do
155
157
  end
156
158
 
157
159
  it "should return a deferrable which succeeds in success case" do
158
- # Yeah, mocking EM::MockHttpRequest isn't that feature rich :)
159
160
  Time.stub(:now).and_return(123)
160
161
 
161
162
  url = 'http://api.pusherapp.com:80/apps/20/channels/test_channel/events?auth_key=12345678900000001&auth_signature=0ffe2a3749f886ca69c3f516a30c7bc9a12d2ebd8bda5b718b90ad58507c8261&auth_timestamp=123&auth_version=1.0&body_md5=5b82f8bf4df2bfb0e66ccaa7306fd024&name=new_event'
@@ -186,7 +187,6 @@ describe Pusher::Channel do
186
187
  end
187
188
 
188
189
  it "should return a deferrable which fails (with exception) in fail case" do
189
- # Yeah, mocking EM::MockHttpRequest isn't that feature rich :)
190
190
  Time.stub(:now).and_return(123)
191
191
 
192
192
  url = 'http://api.pusherapp.com:80/apps/20/channels/test_channel/events?auth_key=12345678900000001&auth_signature=0ffe2a3749f886ca69c3f516a30c7bc9a12d2ebd8bda5b718b90ad58507c8261&auth_timestamp=123&auth_version=1.0&body_md5=5b82f8bf4df2bfb0e66ccaa7306fd024&name=new_event'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - New Bamboo
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-25 00:00:00 +01:00
17
+ date: 2010-06-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency