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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/pusher/version.rb +1 -1
- data/lib/pusher/webhook.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dddbeb6188ab760f83d0d98a9d1ca273b38aba2
|
4
|
+
data.tar.gz: 3641a6bbfc1540cf04c2c8740bc035934ee853b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff61f5c8f7eb53bb1b7109b6bcb8420622765aff0090df82f1abcfb4ace24bbf89a9f7c7d76ba8daa5fb3fe0dad7416170beb724e4b2903418403dcac8848582
|
7
|
+
data.tar.gz: a67ba5a3da031e3011f2f1e56333bd352cdb9317f70d72dfe70931b998428a35662d3ca78b176717fa4064d6097297c364a5cdfc3f57ad4174a56cc35d0bad1b
|
data/CHANGELOG.md
CHANGED
data/lib/pusher/version.rb
CHANGED
data/lib/pusher/webhook.rb
CHANGED
@@ -30,8 +30,8 @@ module Pusher
|
|
30
30
|
#
|
31
31
|
def initialize(request, client = Pusher)
|
32
32
|
@client = client
|
33
|
-
#
|
34
|
-
if
|
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.
|
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-
|
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.
|
189
|
+
rubygems_version: 2.6.2
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Pusher API client
|