em-cometio-client 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ === 0.0.7 2013-03-25
2
+
3
+ * fix timeout retry
4
+
1
5
  === 0.0.6 2013-03-24
2
6
 
3
7
  * fix README
@@ -58,8 +58,6 @@ module EventMachine
58
58
  get
59
59
  end
60
60
  http.errback do |err|
61
- self.emit :error, "CometIO get error"
62
- sleep 10
63
61
  get
64
62
  end
65
63
  end
@@ -1,7 +1,7 @@
1
1
  module EventMachine
2
2
  module CometIO
3
3
  class Client
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
6
6
  end
7
7
  end
@@ -1,12 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
- require 'rubygems'
3
2
  $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
3
+ require 'rubygems'
4
4
  require 'em-cometio-client'
5
5
 
6
6
  name = `whoami`.strip || 'shokai'
7
+ url = ARGV.shift || 'http://localhost:5000/cometio/io'
7
8
 
8
9
  EM::run do
9
- client = EM::CometIO::Client.new('http://localhost:5000/cometio/io').connect
10
+ client = EM::CometIO::Client.new(url).connect
10
11
 
11
12
  client.on :connect do |session|
12
13
  puts "connect!! (sessin_id:#{session})"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-cometio-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-03-23 00:00:00.000000000 Z
12
+ date: 2013-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest