websocket-extensions 0.1.2 → 0.1.3

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: b72f661044b108ab29611198a562904fb4c557b5
4
- data.tar.gz: 1d7e733ff228617b99b0067de2aea26fd54dce23
3
+ metadata.gz: ddb4c7765ef0aa140fa983e4b565023f88cd0409
4
+ data.tar.gz: cbbbe7b54d2afa723f28373bd1ed494d683208dd
5
5
  SHA512:
6
- metadata.gz: 5eaa7e4b2312bdd425f7511e5667020e769a9181ae6711d62d090159654a3156124647f62891e2873ef113ad0cab8b04d1c6b22662cb06f4d901347f9a4edbd3
7
- data.tar.gz: d1fc34fd1f46bd09ad5fee3b38212775ff423f06e6d253d068f6f7f830a8935165a53c1172def28ea6e0f319d1f4f26abb974578dfe8bb9e173b15812708039a
6
+ metadata.gz: d46b1af3f4d8939e034a38a37899948d0efe3524a7647120ee4ece4b77e4d9954497a2221f2abfd337015c2e74b01a8dc1a575379b547d51980e859be5e7ac2b
7
+ data.tar.gz: 2149b48885360a4f84a32286b2f4cd6678256706c5e4038c1bd386bed0bedb835bb3b4f653a6e1554fce0b2ceba8c1d18501058c84aa814e189bb4a797895bf8
@@ -1,3 +1,7 @@
1
+ ### 0.1.3 / 2017-11-11
2
+
3
+ * Accept extension names and parameters including uppercase letters
4
+
1
5
  ### 0.1.2 / 2015-02-19
2
6
 
3
7
  * Make it safe to call `Extensions#close` if the handshake is not complete
@@ -0,0 +1,20 @@
1
+ # The MIT license
2
+
3
+ Copyright (c) 2014-2017 James Coglan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the 'Software'), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -311,26 +311,3 @@ the session to release any resources it's using.
311
311
 
312
312
  * Consumer: [websocket-driver](https://github.com/faye/websocket-driver-ruby)
313
313
  * Provider: [permessage-deflate](https://github.com/faye/permessage-deflate-ruby)
314
-
315
- ## License
316
-
317
- (The MIT License)
318
-
319
- Copyright (c) 2014-2015 James Coglan
320
-
321
- Permission is hereby granted, free of charge, to any person obtaining a copy of
322
- this software and associated documentation files (the 'Software'), to deal in
323
- the Software without restriction, including without limitation the rights to
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
-
328
- The above copyright notice and this permission notice shall be included in all
329
- copies or substantial portions of the Software.
330
-
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, 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.
@@ -98,9 +98,9 @@ module WebSocket
98
98
  end
99
99
 
100
100
  def generate_response(header)
101
- offers = Parser.parse_header(header)
102
101
  sessions = []
103
102
  response = []
103
+ offers = Parser.parse_header(header)
104
104
 
105
105
  @in_order.each do |ext|
106
106
  offer = offers.by_name(ext.name)
@@ -4,8 +4,8 @@ module WebSocket
4
4
  class Extensions
5
5
 
6
6
  class Parser
7
- TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9a-z]+)/
8
- NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9a-z])/
7
+ TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z]+)/
8
+ NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z])/
9
9
  QUOTED = /"((?:\\[\x00-\x7f]|[^\x00-\x08\x0a-\x1f\x7f"])*)"/
10
10
  PARAM = %r{#{TOKEN.source}(?:=(?:#{TOKEN.source}|#{QUOTED.source}))?}
11
11
  EXT = %r{#{TOKEN.source}(?: *; *#{PARAM.source})*}
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.2
4
+ version: 0.1.3
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-02-19 00:00:00.000000000 Z
11
+ date: 2017-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -32,10 +32,11 @@ extra_rdoc_files:
32
32
  - README.md
33
33
  files:
34
34
  - CHANGELOG.md
35
+ - LICENSE.md
35
36
  - README.md
36
37
  - lib/websocket/extensions.rb
37
38
  - lib/websocket/extensions/parser.rb
38
- homepage: http://github.com/faye/websocket-extensions-ruby
39
+ homepage: https://github.com/faye/websocket-extensions-ruby
39
40
  licenses:
40
41
  - MIT
41
42
  metadata: {}
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  version: '0'
60
61
  requirements: []
61
62
  rubyforge_project:
62
- rubygems_version: 2.4.5
63
+ rubygems_version: 2.6.13
63
64
  signing_key:
64
65
  specification_version: 4
65
66
  summary: Generic extension manager for WebSocket connections