faye-authentication 1.8.0 → 1.8.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 +5 -0
- data/VERSION +1 -1
- data/lib/faye/authentication/http_client.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: fa81eb7cbde4eb0bbc527d595bb922fd3c8636e8
|
4
|
+
data.tar.gz: 70a52b2a818dbeccc91ee89d36bb70d31ac98a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98ee074d5aca35c8ee89103f448c22fb18ec7b9855bd89fe3516003019daeacde74d83fffd7aebdaa5b2a93f8b585a8d82e0c286a23c612d9bd37110111507b
|
7
|
+
data.tar.gz: 78d7b9267d990354c41852777e4692f907f597395555eea54589bc8915f0f073809654cc85fcdedd91bc165deb65552108b31f4a02a27917a928b57a3fb2e583
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 1.8.1
|
2
|
+
- Fix bad parameter passed to Net::HTTP::Post in HTTP Client (thanks @evserykh)
|
3
|
+
## 1.8.0
|
4
|
+
- Wait a delay before trying to fetch a signature after an error
|
5
|
+
|
1
6
|
## 1.7.0
|
2
7
|
- Improve preformance by batching authentication requests (backward incompatible!)
|
3
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.1
|
@@ -6,8 +6,8 @@ module Faye
|
|
6
6
|
|
7
7
|
def self.publish(url, channel, data, key)
|
8
8
|
uri = URI(url)
|
9
|
-
req = Net::HTTP::Post.new(
|
10
|
-
message = {'channel' => channel, 'clientId' => 'http'}
|
9
|
+
req = Net::HTTP::Post.new(uri.request_uri)
|
10
|
+
message = {'channel' => channel, 'clientId' => 'http'}
|
11
11
|
message['signature'] = Faye::Authentication.sign(message, key)
|
12
12
|
message['data'] = data
|
13
13
|
req.set_form_data(message: JSON.dump(message))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faye-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Siami
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
212
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.
|
213
|
+
rubygems_version: 2.2.2
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: A faye extension to add authentication mechanisms
|