faye-websocket 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of faye-websocket might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/faye/websocket/client.rb +4 -8
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b64bb31b27e5c1784847e0863ed2d5bb31f3ac
|
4
|
+
data.tar.gz: 9a1c4ab3691adff2d6675007147baa9f8bc10e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9bba26e44b9096854a34b50bbae2306f46b89d47626a0a76fbae17e6ca7759cce366f8477f23db11b7d0f9c0945295385e2b75abd57a2ec07fbbfb8152ff296
|
7
|
+
data.tar.gz: 54bb0acac9d51522c0977dcc5321f8581ba68f86714f1157bafd2a5f73de4cfffb7866518981daa9558c288fd0eff47df642ce44b5285bc2842c105eae446957
|
data/CHANGELOG.md
CHANGED
@@ -1,25 +1,21 @@
|
|
1
|
+
require 'forwardable'
|
2
|
+
|
1
3
|
module Faye
|
2
4
|
class WebSocket
|
3
5
|
|
4
6
|
class Client
|
7
|
+
extend Forwardable
|
5
8
|
include API
|
6
9
|
|
7
10
|
DEFAULT_PORTS = {'http' => 80, 'https' => 443, 'ws' => 80, 'wss' => 443}
|
8
11
|
SECURE_PROTOCOLS = ['https', 'wss']
|
9
12
|
|
10
|
-
|
13
|
+
def_delegators :@driver, :headers, :status
|
11
14
|
|
12
15
|
def initialize(url, protocols = nil, options = {})
|
13
16
|
@url = url
|
14
17
|
super(options) { ::WebSocket::Driver.client(self, :max_length => options[:max_length], :protocols => protocols) }
|
15
18
|
|
16
|
-
[:open, :error].each do |event|
|
17
|
-
@driver.on(event) do
|
18
|
-
@headers = @driver.headers
|
19
|
-
@status = @driver.status
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
19
|
proxy = options.fetch(:proxy, {})
|
24
20
|
endpoint = URI.parse(proxy[:origin] || @url)
|
25
21
|
port = endpoint.port || DEFAULT_PORTS[endpoint.scheme]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faye-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Coglan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -73,6 +73,9 @@ dependencies:
|
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 2.0.0
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 2.15.0
|
76
79
|
type: :development
|
77
80
|
prerelease: false
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -80,6 +83,9 @@ dependencies:
|
|
80
83
|
- - ">="
|
81
84
|
- !ruby/object:Gem::Version
|
82
85
|
version: 2.0.0
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 2.15.0
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: rack
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|