websocket-extensions 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of websocket-extensions might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7edb76390906699aad742a8c05785c057b3864d2
4
- data.tar.gz: ca53984909aaf7ab0ce4aa8a1130733b9ecd9f44
3
+ metadata.gz: b72f661044b108ab29611198a562904fb4c557b5
4
+ data.tar.gz: 1d7e733ff228617b99b0067de2aea26fd54dce23
5
5
  SHA512:
6
- metadata.gz: 3f5c9bb5f402031b135fae4803e46f2645294eee6cbefba0faf0889c55847a80047e23cec9d472656f4d6017b629dd4b196cd9c7b40d0d517f19d60f23510b96
7
- data.tar.gz: 1d43e8f6c12622c5e5f6eedc96918eae63f836f25e4ceb0f5d6d7ccde8b01afcef0a7627f3bf10c33e495d5338fc5ce067725bf05e1471c8b30a06a8d694b126
6
+ metadata.gz: 5eaa7e4b2312bdd425f7511e5667020e769a9181ae6711d62d090159654a3156124647f62891e2873ef113ad0cab8b04d1c6b22662cb06f4d901347f9a4edbd3
7
+ data.tar.gz: d1fc34fd1f46bd09ad5fee3b38212775ff423f06e6d253d068f6f7f830a8935165a53c1172def28ea6e0f319d1f4f26abb974578dfe8bb9e173b15812708039a
@@ -1,3 +1,7 @@
1
+ ### 0.1.2 / 2015-02-19
2
+
3
+ * Make it safe to call `Extensions#close` if the handshake is not complete
4
+
1
5
  ### 0.1.1 / 2014-12-14
2
6
 
3
7
  * Explicitly require `strscan` which is not loaded in a vanilla Ruby environment
data/README.md CHANGED
@@ -316,22 +316,21 @@ the session to release any resources it's using.
316
316
 
317
317
  (The MIT License)
318
318
 
319
- Copyright (c) 2014 James Coglan
319
+ Copyright (c) 2014-2015 James Coglan
320
320
 
321
321
  Permission is hereby granted, free of charge, to any person obtaining a copy of
322
322
  this software and associated documentation files (the 'Software'), to deal in
323
323
  the Software without restriction, including without limitation the rights to
324
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
325
- of the Software, and to permit persons to whom the Software is furnished to do
326
- so, subject to the following conditions:
324
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
325
+ the Software, and to permit persons to whom the Software is furnished to do so,
326
+ subject to the following conditions:
327
327
 
328
328
  The above copyright notice and this permission notice shall be included in all
329
329
  copies or substantial portions of the Software.
330
330
 
331
331
  THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
332
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
333
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
334
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
335
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
336
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
337
- SOFTWARE.
332
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
333
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
334
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
335
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
336
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -155,6 +155,8 @@ module WebSocket
155
155
  end
156
156
 
157
157
  def close
158
+ return unless @sessions
159
+
158
160
  @sessions.each do |ext, session|
159
161
  session.close rescue nil
160
162
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.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: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.2.2
62
+ rubygems_version: 2.4.5
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Generic extension manager for WebSocket connections