websocket 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ - fix handling close code for frames version 5+
6
+
3
7
  ## 1.1.0
4
8
 
5
9
  - allow raising ruby errors instead of setting `error` flag
@@ -4,7 +4,8 @@ module WebSocket
4
4
  class Base
5
5
  include ExceptionHandler
6
6
 
7
- attr_reader :data, :type, :version
7
+ attr_reader :type, :version
8
+ attr_accessor :data, :code
8
9
 
9
10
  # Initialize frame
10
11
  # @param args [Hash] Arguments for frame
@@ -6,9 +6,9 @@ module WebSocket
6
6
  class Handler05 < Handler04
7
7
 
8
8
  def encode_frame
9
- if @code
10
- @frame.data = Data.new([@code].pack('n') + @frame.data.to_s)
11
- @code = nil
9
+ if @frame.code
10
+ @frame.data = Data.new([@frame.code].pack('n') + @frame.data.to_s)
11
+ @frame.code = nil
12
12
  end
13
13
  super
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module WebSocket
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-17 00:00:00.000000000 Z
12
+ date: 2013-07-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Universal Ruby library to handle WebSocket protocol
15
15
  email:
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  segments:
103
103
  - 0
104
- hash: 2598655559376715147
104
+ hash: 1890539524106182943
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: 2598655559376715147
113
+ hash: 1890539524106182943
114
114
  requirements: []
115
115
  rubyforge_project:
116
116
  rubygems_version: 1.8.25