6 Commits

Author SHA1 Message Date
James Coglan dd6cff6c09 Test on Ruby 2.1.5 and 2.2.0. 2015-02-19 21:06:45 +00:00
James Coglan c73f432841 Bump version to 0.1.2. 2015-02-19 20:58:30 +00:00
James Coglan 88abae45d2 Make Extensions#close safe to call if @sessions is not yet initialised, in case the socket is closed before handshaking. 2015-02-16 09:54:08 +00:00
James Coglan 7e29a5c63e Bump version to 0.1.1. 2014-12-14 12:25:17 +00:00
James Coglan 3a3b0c537c Merge pull request #1 from Juanmcuello/require-strscan
Require 'strscan' to be sure StringScanner will be present.
2014-12-14 12:18:23 +00:00
Juan M. Cuello fb23226189 Require 'strscan' to be sure StringScanner will be present. 2014-12-13 21:08:45 -03:00
6 changed files with 28 additions and 13 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.3
- 2.1.5
- 2.2.0
- jruby-19mode
- rbx-2.2
+11
View File
@@ -0,0 +1,11 @@
### 0.1.2 / 2015-02-19
* Make it safe to call `Extensions#close` if the handshake is not complete
### 0.1.1 / 2014-12-14
* Explicitly require `strscan` which is not loaded in a vanilla Ruby environment
### 0.1.0 / 2014-12-13
* Initial release
+9 -10
View File
@@ -316,22 +316,21 @@ the session to release any resources it's using.
(The MIT License)
Copyright (c) 2014 James Coglan
Copyright (c) 2014-2015 James Coglan
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the 'Software'), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+2
View File
@@ -155,6 +155,8 @@ module WebSocket
end
def close
return unless @sessions
@sessions.each do |ext, session|
session.close rescue nil
end
+2
View File
@@ -1,3 +1,5 @@
require 'strscan'
module WebSocket
class Extensions
+2 -2
View File
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'websocket-extensions'
s.version = '0.1.0'
s.version = '0.1.2'
s.summary = 'Generic extension manager for WebSocket connections'
s.author = 'James Coglan'
s.email = 'jcoglan@gmail.com'
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.rdoc_options = %w[--main README.md --markup markdown]
s.require_paths = %w[lib]
s.files = %w[README.md] + Dir.glob('lib/**/*.rb')
s.files = %w[README.md CHANGELOG.md] + Dir.glob('lib/**/*.rb')
s.add_development_dependency 'rspec'
end