loghandler 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ def main(args)
38
38
 
39
39
  end
40
40
  opts.parse!(args)
41
- Loghandler::Client.run(url:url,port:port,file:filename,log_type:log_type,node_name:node_name,uid:uid)
41
+ Loghandler::Client.run(url:url,port:port.to_i,file:filename,log_type:log_type,node_name:node_name,uid:uid)
42
42
  return 0
43
43
  end
44
44
 
@@ -41,7 +41,7 @@ class Loghandler::Client < EM::Connection
41
41
  options.merge!({uid:SecureRandom.hex(10)}) if options[:uid].nil?
42
42
  channel = EventMachine::Channel.new
43
43
 
44
- client = EventMachine.connect options[:url], options[:port], Loghandler::Client, options
44
+ client = EventMachine.connect options[:url], options[:port].to_i, Loghandler::Client, options
45
45
  # TODO : move into Loghandler::Client
46
46
  channel.subscribe do |data|
47
47
  to_send={content:data,logged_at:Time.now}.merge(options)
@@ -1,3 +1,3 @@
1
1
  module Loghandler
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loghandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: