haproxy 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,7 +84,7 @@ module HAProxy
84
84
 
85
85
  def send_cmd(cmd, &block)
86
86
  socket = UNIXSocket.new(@path)
87
- socket.puts(cmd)
87
+ socket.write(cmd + ';')
88
88
  socket.each do |line|
89
89
  yield(line.strip)
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module HAProxy
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,29 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: haproxy
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
4
5
  prerelease:
5
- version: 0.0.3
6
6
  platform: ruby
7
- authors:
8
- - "Leandro L\xC3\xB3pez (inkel)"
7
+ authors:
8
+ - Leandro López (inkel)
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-03-12 00:00:00 -03:00
14
- default_executable:
12
+ date: 2012-07-17 00:00:00.000000000 Z
15
13
  dependencies: []
16
-
17
- description: This gem is intended for use as a HAProxy interface when you need to read statistics or if you like to manage proxies thru Ruby
18
- email:
14
+ description: This gem is intended for use as a HAProxy interface when you need to
15
+ read statistics or if you like to manage proxies thru Ruby
16
+ email:
19
17
  - inkel.ar@gmail.com
20
18
  executables: []
21
-
22
19
  extensions: []
23
-
24
20
  extra_rdoc_files: []
25
-
26
- files:
21
+ files:
27
22
  - .gitignore
28
23
  - Gemfile
29
24
  - README.md
@@ -37,33 +32,32 @@ files:
37
32
  - spec/haproxy_spec.rb
38
33
  - spec/socket_reader_spec.rb
39
34
  - spec/spec_helper.rb
40
- has_rdoc: true
41
35
  homepage: https://github.com/inkel/haproxy-ruby
42
36
  licenses: []
43
-
44
37
  post_install_message:
45
38
  rdoc_options: []
46
-
47
- require_paths:
39
+ require_paths:
48
40
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
41
+ required_ruby_version: !ruby/object:Gem::Requirement
50
42
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
55
- required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
48
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
61
53
  requirements: []
62
-
63
54
  rubyforge_project: haproxy
64
- rubygems_version: 1.6.1
55
+ rubygems_version: 1.8.23
65
56
  signing_key:
66
57
  specification_version: 3
67
- summary: HAProxy interface for reading statistics or managing servers (requires HAProxy 1.4+)
68
- test_files: []
69
-
58
+ summary: HAProxy interface for reading statistics or managing servers (requires HAProxy
59
+ 1.4+)
60
+ test_files:
61
+ - spec/haproxy_spec.rb
62
+ - spec/socket_reader_spec.rb
63
+ - spec/spec_helper.rb