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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85557a18bc39ccf7f19ea25d9bb97778e4976a3c
4
- data.tar.gz: ac8c769136548e7c8355fb01f7c79e6928fb0c32
3
+ metadata.gz: 88b64bb31b27e5c1784847e0863ed2d5bb31f3ac
4
+ data.tar.gz: 9a1c4ab3691adff2d6675007147baa9f8bc10e56
5
5
  SHA512:
6
- metadata.gz: 6e259cae366b3bc1995380905504677be7ec4ba2cc498c6ad01e0c9fc53157e910161635199d3fda017d1fb82263514a4c39ccc224fce920ac65b312a9664385
7
- data.tar.gz: e922b280a0dd8ef81a0c5f0664af26459f921ace8dab435afbe1650505dac2c6c04b08605436b8ffd9ddb1351554ccd23fc5612e11f2999bd7b332c773993f73
6
+ metadata.gz: b9bba26e44b9096854a34b50bbae2306f46b89d47626a0a76fbae17e6ca7759cce366f8477f23db11b7d0f9c0945295385e2b75abd57a2ec07fbbfb8152ff296
7
+ data.tar.gz: 54bb0acac9d51522c0977dcc5321f8581ba68f86714f1157bafd2a5f73de4cfffb7866518981daa9558c288fd0eff47df642ce44b5285bc2842c105eae446957
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.10.2 / 2015-11-26
2
+
3
+ * Fix the `headers` and `status` methods on `Client`, which were broken in the
4
+ last release
5
+
1
6
  ### 0.10.1 / 2015-11-06
2
7
 
3
8
  * Make sure errors can be safely emitted if creating the driver fails
@@ -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
- attr_reader :headers, :status
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.1
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-06 00:00:00.000000000 Z
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