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.
Files changed (7) hide show
  1. data/Gemfile +2 -0
  2. data/Gemfile.lock +2 -0
  3. data/README.rdoc +2 -0
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/lib/ws-io.rb +7 -2
  7. 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
@@ -17,6 +17,7 @@ GEM
17
17
  rspec-expectations (2.3.0)
18
18
  diff-lcs (~> 1.1.2)
19
19
  rspec-mocks (2.3.0)
20
+ web-socket-ruby (0.1.0)
20
21
 
21
22
  PLATFORMS
22
23
  ruby
@@ -26,3 +27,4 @@ DEPENDENCIES
26
27
  jeweler (~> 1.5.2)
27
28
  rcov
28
29
  rspec (~> 2.3.0)
30
+ web-socket-ruby (~> 0.1.0)
data/README.rdoc CHANGED
@@ -14,6 +14,8 @@ The bridge between WebSocket and IO
14
14
  system '/bin/sh'
15
15
  end
16
16
 
17
+ and open ./examples/index.html
18
+
17
19
  See also the ./examples.
18
20
 
19
21
  == Contributing to ws-io
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', '> 0.1.0'
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.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
- rescue Exception
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.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-09 00:00:00 +09:00
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: rspec
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: *id001
37
+ version_requirements: *id002
27
38
  - !ruby/object:Gem::Dependency
28
39
  name: bundler
29
- requirement: &id002 !ruby/object:Gem::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: *id002
48
+ version_requirements: *id003
38
49
  - !ruby/object:Gem::Dependency
39
50
  name: jeweler
40
- requirement: &id003 !ruby/object:Gem::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: *id003
59
+ version_requirements: *id004
49
60
  - !ruby/object:Gem::Dependency
50
61
  name: rcov
51
- requirement: &id004 !ruby/object:Gem::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: *id004
60
- description: The bridge between WebSocket and IO
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: -624885764972321820
108
+ hash: 1945173680197557230
98
109
  segments:
99
110
  - 0
100
111
  version: "0"