faye-websocket 0.1.2 → 0.2.0

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.

@@ -23,7 +23,7 @@ end
23
23
 
24
24
  class EchoServer
25
25
  def call(env)
26
- socket = Faye::WebSocket.new(env)
26
+ socket = Faye::WebSocket.new(env, ["echo"])
27
27
  socket.onmessage = lambda do |event|
28
28
  socket.send(event.data)
29
29
  end
metadata CHANGED
@@ -1,144 +1,128 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: faye-websocket
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - James Coglan
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-05 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: eventmachine
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &18014780 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 47
29
- segments:
30
- - 0
31
- - 12
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.12.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: thin
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *18014780
25
+ - !ruby/object:Gem::Dependency
26
+ name: thin
27
+ requirement: &18013820 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 11
45
- segments:
46
- - 1
47
- - 2
48
- version: "1.2"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.2'
49
33
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rspec
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *18013820
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &18012580 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
40
+ requirements:
57
41
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 27
60
- segments:
61
- - 2
62
- - 5
63
- - 0
42
+ - !ruby/object:Gem::Version
64
43
  version: 2.5.0
65
44
  type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
45
+ prerelease: false
46
+ version_requirements: *18012580
47
+ - !ruby/object:Gem::Dependency
68
48
  name: rack
49
+ requirement: &18011960 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
69
56
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: *18011960
58
+ - !ruby/object:Gem::Dependency
59
+ name: rake-compiler
60
+ requirement: &18010240 !ruby/object:Gem::Requirement
71
61
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
79
66
  type: :development
80
- version_requirements: *id004
67
+ prerelease: false
68
+ version_requirements: *18010240
81
69
  description:
82
70
  email: jcoglan@gmail.com
83
71
  executables: []
84
-
85
- extensions: []
86
-
87
- extra_rdoc_files:
72
+ extensions:
73
+ - ext/faye_websocket_mask/extconf.rb
74
+ extra_rdoc_files:
88
75
  - README.rdoc
89
- files:
76
+ files:
90
77
  - README.rdoc
91
- - examples/autobahn_client.rb
92
- - examples/client.rb
93
- - examples/haproxy.conf
94
- - examples/index.html
95
- - examples/server.rb
96
- - lib/faye/thin_extensions.rb
97
- - lib/faye/websocket/api.rb
98
- - lib/faye/websocket/client.rb
78
+ - CHANGELOG.txt
79
+ - ext/faye_websocket_mask/faye_websocket_mask.c
80
+ - ext/faye_websocket_mask/extconf.rb
99
81
  - lib/faye/websocket/draft75_parser.rb
82
+ - lib/faye/websocket/client.rb
83
+ - lib/faye/websocket/hybi_parser.rb
100
84
  - lib/faye/websocket/draft76_parser.rb
101
- - lib/faye/websocket/protocol8_parser.rb
85
+ - lib/faye/websocket/api.rb
86
+ - lib/faye/websocket/hybi_parser/handshake.rb
87
+ - lib/faye/websocket/hybi_parser/stream_reader.rb
102
88
  - lib/faye/websocket.rb
103
- - spec/faye/websocket/client_spec.rb
89
+ - lib/faye/thin_extensions.rb
90
+ - examples/client.rb
91
+ - examples/haproxy.conf
92
+ - examples/server.rb
93
+ - examples/index.html
94
+ - examples/autobahn_client.rb
104
95
  - spec/faye/websocket/draft75_parser_spec.rb
105
- - spec/faye/websocket/protocol8_parser_spec.rb
106
- - spec/server.crt
96
+ - spec/faye/websocket/client_spec.rb
97
+ - spec/faye/websocket/draft76_parser_spec.rb
98
+ - spec/faye/websocket/hybi_parser_spec.rb
107
99
  - spec/server.key
100
+ - spec/server.crt
108
101
  - spec/spec_helper.rb
109
102
  homepage: http://github.com/jcoglan/faye-websocket-ruby
110
103
  licenses: []
111
-
112
104
  post_install_message:
113
- rdoc_options:
105
+ rdoc_options:
114
106
  - --main
115
107
  - README.rdoc
116
- require_paths:
108
+ require_paths:
117
109
  - lib
118
- required_ruby_version: !ruby/object:Gem::Requirement
110
+ required_ruby_version: !ruby/object:Gem::Requirement
119
111
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- version: "0"
127
- required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
117
  none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
136
122
  requirements: []
137
-
138
123
  rubyforge_project:
139
124
  rubygems_version: 1.8.10
140
125
  signing_key:
141
126
  specification_version: 3
142
- summary: Robust general-purpose WebSocket server and client
127
+ summary: Standards-compliant WebSocket server and client
143
128
  test_files: []
144
-