ws-io 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README.rdoc +0 -4
  2. data/VERSION +1 -1
  3. data/bin/ws-irb +1 -9
  4. data/lib/ws-io.rb +6 -4
  5. data/ws-io.gemspec +3 -3
  6. metadata +4 -4
@@ -14,10 +14,6 @@ The bridge between WebSocket and IO
14
14
  system '/bin/sh'
15
15
  }.open.join
16
16
 
17
- and open ./examples/index.html
18
-
19
- See also the ./examples.
20
-
21
17
  == ws-irb
22
18
 
23
19
  Also the 'ws-irb' command will be installed. It provides irb on browser.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
data/bin/ws-irb CHANGED
@@ -12,13 +12,5 @@ opt.parse!(ARGV)
12
12
  WsIo.start(port) {
13
13
  IRB.start
14
14
  }.after {
15
- WsIo.ws.send(
16
- %q[ _ _
17
- (_) | |
18
- __ _____ ______ _ _ __| |__
19
- \ \ /\ / / __|______| | '__| '_ \
20
- \ V V /\__ \ | | | | |_) |
21
- \_/\_/ |___/ |_|_| |_.__/
22
- ]
23
- )
15
+ WsIo.ws.send '#### ws-irb ####'
24
16
  }.open.join
@@ -89,11 +89,13 @@ class WsIo
89
89
  js_paths = %w(jquery.min.js autoresize.jquery.js).map do |js|
90
90
  'file://localhost' + File.expand_path("../public/#{js}", __FILE__)
91
91
  end
92
- tempfile = Tempfile.open('ws-io')
93
92
  template = File.read(File.expand_path('../public/index.html.erb', __FILE__))
94
- tempfile << ERB.new(template, nil, '-').result(binding)
95
- tempfile.flush
96
- Launchy::Browser.run(tempfile.path)
93
+ path = Tempfile.open('ws-io') do |tempfile|
94
+ tempfile << ERB.new(template, nil, '-').result(binding)
95
+ tempfile.path
96
+ end
97
+ sleep 0.1
98
+ Launchy::Browser.run(path)
97
99
  self
98
100
  end
99
101
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ws-io}
8
- s.version = "1.1.4"
8
+ s.version = "1.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
12
- s.date = %q{2011-02-17}
12
+ s.date = %q{2011-03-04}
13
13
  s.default_executable = %q{ws-irb}
14
14
  s.description = %q{It provides a bridge between WebSocket and IO}
15
15
  s.email = %q{jugyo.org@gmail.com}
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.homepage = %q{http://github.com/jugyo/ws-io}
41
41
  s.licenses = ["MIT"]
42
42
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.5.0}
43
+ s.rubygems_version = %q{1.6.0}
44
44
  s.summary = %q{The bridge between WebSocket and IO}
45
45
  s.test_files = [
46
46
  "examples/sh.rb",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ws-io
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.4
5
+ version: 1.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-17 00:00:00 +09:00
13
+ date: 2011-03-04 00:00:00 +09:00
14
14
  default_executable: ws-irb
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- hash: 4513446448000690900
123
+ hash: 3565036722655032370
124
124
  segments:
125
125
  - 0
126
126
  version: "0"
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  requirements: []
134
134
 
135
135
  rubyforge_project:
136
- rubygems_version: 1.5.0
136
+ rubygems_version: 1.6.0
137
137
  signing_key:
138
138
  specification_version: 3
139
139
  summary: The bridge between WebSocket and IO