julien51-ruby_bosh 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/ruby_bosh.rb +8 -9
- data/ruby_bosh.gemspec +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/ruby_bosh.rb
CHANGED
@@ -19,10 +19,10 @@ class RubyBOSH
|
|
19
19
|
class AuthFailed < RubyBOSH::Error; end
|
20
20
|
class ConnFailed < RubyBOSH::Error; end
|
21
21
|
|
22
|
-
@@
|
23
|
-
|
24
|
-
def self.
|
25
|
-
@@
|
22
|
+
@@logger = nil
|
23
|
+
|
24
|
+
def self.logger=(_logger)
|
25
|
+
@@logger = _logger
|
26
26
|
end
|
27
27
|
|
28
28
|
attr_accessor :jid, :rid, :sid, :success
|
@@ -49,9 +49,8 @@ class RubyBOSH
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def attach(sid, rid)
|
52
|
-
@sid = sid
|
53
|
-
@rid = rid
|
54
|
-
initialize_bosh_session
|
52
|
+
@sid = sid
|
53
|
+
@rid = rid
|
55
54
|
@success = true
|
56
55
|
end
|
57
56
|
|
@@ -161,11 +160,11 @@ class RubyBOSH
|
|
161
160
|
end
|
162
161
|
|
163
162
|
def send(msg)
|
164
|
-
|
163
|
+
@@logger.info("Ruby-BOSH - SEND\n#{msg}") if @@logger; msg
|
165
164
|
end
|
166
165
|
|
167
166
|
def recv(msg)
|
168
|
-
|
167
|
+
@@logger.info("Ruby-BOSH - RECV\n#{msg}") if @@logger; msg
|
169
168
|
end
|
170
169
|
end
|
171
170
|
|
data/ruby_bosh.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ruby_bosh}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Pradeep Elankumaran"]
|
12
|
-
s.date = %q{2009-08-
|
12
|
+
s.date = %q{2009-08-26}
|
13
13
|
s.description = %q{TODO}
|
14
14
|
s.email = %q{pradeep@intridea.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: julien51-ruby_bosh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pradeep Elankumaran
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-26 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|