pusher 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d461d98360195c60411f6f5f8c21f0d03be8452
4
- data.tar.gz: e76c8ba0c2935c958a0f7f0d26de3c03c13d26fa
3
+ metadata.gz: 4dddbeb6188ab760f83d0d98a9d1ca273b38aba2
4
+ data.tar.gz: 3641a6bbfc1540cf04c2c8740bc035934ee853b9
5
5
  SHA512:
6
- metadata.gz: ceec64a68fa3e2068c482d1be8ec8a98b0dbdf80bd4a2511fc980f073e4ac3c5a479a2ba342581190523402359c5ef66da5c02c808508f533ffc905fcd8d81f6
7
- data.tar.gz: 0a3cd50717b280b90efda2784237571fa7183259cfad0dc39b6c57b46ab1233c3e5c87e3d07af652753c0118a4f5549faa423df02e5edd3d45603a9dabb3d1a4
6
+ metadata.gz: ff61f5c8f7eb53bb1b7109b6bcb8420622765aff0090df82f1abcfb4ace24bbf89a9f7c7d76ba8daa5fb3fe0dad7416170beb724e4b2903418403dcac8848582
7
+ data.tar.gz: a67ba5a3da031e3011f2f1e56333bd352cdb9317f70d72dfe70931b998428a35662d3ca78b176717fa4064d6097297c364a5cdfc3f57ad4174a56cc35d0bad1b
@@ -1,3 +1,9 @@
1
+
2
+ 1.2.1 / 2016-08-22
3
+ ==================
4
+
5
+ * Fixes Rails 5 compatibility. Use duck-typing to detect request object
6
+
1
7
  1.2.0 / 2016-08-15
2
8
  ==================
3
9
 
@@ -1,3 +1,3 @@
1
1
  module Pusher
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -30,8 +30,8 @@ module Pusher
30
30
  #
31
31
  def initialize(request, client = Pusher)
32
32
  @client = client
33
- # Should work without Rack
34
- if defined?(Rack::Request) && request.kind_of?(Rack::Request)
33
+ # For Rack::Request and ActionDispatch::Request
34
+ if request.respond_to?(:env) && request.respond_to?(:content_type)
35
35
  @key = request.env['HTTP_X_PUSHER_KEY']
36
36
  @signature = request.env["HTTP_X_PUSHER_SIGNATURE"]
37
37
  @content_type = request.content_type
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.5.1
189
+ rubygems_version: 2.6.2
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Pusher API client