leela_client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -0
- data/leela_client.gemspec +1 -0
- data/lib/leela_client/version.rb +1 -1
- data/lib/leela_client.rb +2 -1
- data/spec/leela_client_spec.rb +1 -1
- metadata +14 -3
data/Gemfile.lock
CHANGED
data/leela_client.gemspec
CHANGED
data/lib/leela_client/version.rb
CHANGED
data/lib/leela_client.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "leela_client/version"
|
2
2
|
require "socket"
|
3
|
+
require "bzip2"
|
3
4
|
|
4
5
|
module LeelaClient
|
5
6
|
class Client
|
@@ -20,7 +21,7 @@ module LeelaClient
|
|
20
21
|
sock.connect(@server, @port)
|
21
22
|
|
22
23
|
message = "#{Socket.gethostname}|#{@service}||" + @data.join("||")
|
23
|
-
sock.send(message, 0)
|
24
|
+
sock.send(Bzip2.compress(message, 9), 0)
|
24
25
|
end
|
25
26
|
end
|
26
27
|
end
|
data/spec/leela_client_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leela_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,9 +12,20 @@ bindir: bin
|
|
12
12
|
cert_chain: []
|
13
13
|
date: 2012-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bzip2-ruby
|
17
|
+
requirement: &12335200 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *12335200
|
15
26
|
- !ruby/object:Gem::Dependency
|
16
27
|
name: rspec
|
17
|
-
requirement: &
|
28
|
+
requirement: &12334600 !ruby/object:Gem::Requirement
|
18
29
|
none: false
|
19
30
|
requirements:
|
20
31
|
- - ! '>='
|
@@ -22,7 +33,7 @@ dependencies:
|
|
22
33
|
version: '0'
|
23
34
|
type: :development
|
24
35
|
prerelease: false
|
25
|
-
version_requirements: *
|
36
|
+
version_requirements: *12334600
|
26
37
|
description: A client for leela chart server
|
27
38
|
email:
|
28
39
|
- pothix@pothix.com
|