ws-io 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +2 -0
- data/README.rdoc +2 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/ws-io.rb +7 -2
- metadata +23 -12
data/Gemfile
CHANGED
@@ -3,6 +3,8 @@ source "http://rubygems.org"
|
|
3
3
|
# Example:
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
5
|
|
6
|
+
gem "web-socket-ruby", "~> 0.1.0", :require => "web_socket"
|
7
|
+
|
6
8
|
# Add dependencies to develop your gem here.
|
7
9
|
# Include everything needed to run rake, tests, features, etc.
|
8
10
|
group :development do
|
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem|
|
|
21
21
|
gem.authors = ["jugyo"]
|
22
22
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
23
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
-
gem.add_runtime_dependency 'web-socket-ruby', '
|
24
|
+
# gem.add_runtime_dependency 'web-socket-ruby', '~> 0.1.0'
|
25
25
|
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
26
|
end
|
27
27
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/ws-io.rb
CHANGED
@@ -36,6 +36,7 @@ class WsIo
|
|
36
36
|
begin
|
37
37
|
yield
|
38
38
|
ensure
|
39
|
+
unfake_io
|
39
40
|
stop_server
|
40
41
|
end
|
41
42
|
end
|
@@ -56,10 +57,14 @@ class WsIo
|
|
56
57
|
threads.each do |thread|
|
57
58
|
thread.join
|
58
59
|
end
|
59
|
-
rescue SignalException, StandardError
|
60
|
+
rescue SignalException, StandardError => e
|
61
|
+
g e
|
60
62
|
unfake_io
|
61
|
-
|
63
|
+
stop_server
|
64
|
+
rescue Exception => e
|
65
|
+
g e
|
62
66
|
unfake_io
|
67
|
+
stop_server
|
63
68
|
raise
|
64
69
|
end
|
65
70
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ws-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- jugyo
|
@@ -10,12 +10,23 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-10 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: web-socket-ruby
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.1.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
19
30
|
none: false
|
20
31
|
requirements:
|
21
32
|
- - ~>
|
@@ -23,10 +34,10 @@ dependencies:
|
|
23
34
|
version: 2.3.0
|
24
35
|
type: :development
|
25
36
|
prerelease: false
|
26
|
-
version_requirements: *
|
37
|
+
version_requirements: *id002
|
27
38
|
- !ruby/object:Gem::Dependency
|
28
39
|
name: bundler
|
29
|
-
requirement: &
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
30
41
|
none: false
|
31
42
|
requirements:
|
32
43
|
- - ~>
|
@@ -34,10 +45,10 @@ dependencies:
|
|
34
45
|
version: 1.0.0
|
35
46
|
type: :development
|
36
47
|
prerelease: false
|
37
|
-
version_requirements: *
|
48
|
+
version_requirements: *id003
|
38
49
|
- !ruby/object:Gem::Dependency
|
39
50
|
name: jeweler
|
40
|
-
requirement: &
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
41
52
|
none: false
|
42
53
|
requirements:
|
43
54
|
- - ~>
|
@@ -45,10 +56,10 @@ dependencies:
|
|
45
56
|
version: 1.5.2
|
46
57
|
type: :development
|
47
58
|
prerelease: false
|
48
|
-
version_requirements: *
|
59
|
+
version_requirements: *id004
|
49
60
|
- !ruby/object:Gem::Dependency
|
50
61
|
name: rcov
|
51
|
-
requirement: &
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
52
63
|
none: false
|
53
64
|
requirements:
|
54
65
|
- - ">="
|
@@ -56,8 +67,8 @@ dependencies:
|
|
56
67
|
version: "0"
|
57
68
|
type: :development
|
58
69
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
-
description:
|
70
|
+
version_requirements: *id005
|
71
|
+
description: It provides a bridge between WebSocket and IO
|
61
72
|
email: jugyo.org@gmail.com
|
62
73
|
executables: []
|
63
74
|
|
@@ -94,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
105
|
requirements:
|
95
106
|
- - ">="
|
96
107
|
- !ruby/object:Gem::Version
|
97
|
-
hash:
|
108
|
+
hash: 1945173680197557230
|
98
109
|
segments:
|
99
110
|
- 0
|
100
111
|
version: "0"
|