pusher 0.11.2 → 0.11.3

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pusher (0.11.2)
4
+ pusher (0.11.3)
5
5
  multi_json (~> 1.0)
6
6
  signature (~> 0.1.6)
7
7
 
@@ -10,7 +10,7 @@ GEM
10
10
  specs:
11
11
  addressable (2.3.2)
12
12
  cookiejar (0.3.0)
13
- crack (0.3.1)
13
+ crack (0.3.2)
14
14
  diff-lcs (1.1.3)
15
15
  em-http-request (1.0.3)
16
16
  addressable (>= 2.2.3)
@@ -22,17 +22,17 @@ GEM
22
22
  eventmachine (>= 1.0.0.beta.4)
23
23
  eventmachine (1.0.0)
24
24
  http_parser.rb (0.5.3)
25
- multi_json (1.3.7)
26
- rack (1.4.1)
27
- rake (10.0.1)
25
+ multi_json (1.5.0)
26
+ rack (1.5.1)
27
+ rake (10.0.3)
28
28
  rspec (2.12.0)
29
29
  rspec-core (~> 2.12.0)
30
30
  rspec-expectations (~> 2.12.0)
31
31
  rspec-mocks (~> 2.12.0)
32
- rspec-core (2.12.0)
33
- rspec-expectations (2.12.0)
32
+ rspec-core (2.12.2)
33
+ rspec-expectations (2.12.1)
34
34
  diff-lcs (~> 1.1.3)
35
- rspec-mocks (2.12.0)
35
+ rspec-mocks (2.12.2)
36
36
  signature (0.1.6)
37
37
  webmock (1.9.0)
38
38
  addressable (>= 2.2.7)
@@ -30,7 +30,8 @@ module Pusher
30
30
  #
31
31
  def initialize(request, client = Pusher)
32
32
  @client = client
33
- if request.kind_of?(Rack::Request)
33
+ # Should work without Rack
34
+ if defined?(Rack::Request) && request.kind_of?(Rack::Request)
34
35
  @key = request.env['HTTP_X_PUSHER_KEY']
35
36
  @signature = request.env["HTTP_X_PUSHER_SIGNATURE"]
36
37
  @content_type = request.content_type
data/pusher.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pusher"
6
- s.version = "0.11.2"
6
+ s.version = "0.11.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Pusher"]
9
9
  s.email = ["support@pusher.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2013-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  segments:
168
168
  - 0
169
- hash: -234738094817045038
169
+ hash: -2045572575417180827
170
170
  required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  segments:
177
177
  - 0
178
- hash: -234738094817045038
178
+ hash: -2045572575417180827
179
179
  requirements: []
180
180
  rubyforge_project:
181
181
  rubygems_version: 1.8.24