gmetric 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gmetric.gemspec +4 -4
  3. data/lib/gmetric.rb +2 -0
  4. metadata +6 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gmetric}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Grigorik"]
12
- s.date = %q{2010-07-29}
12
+ s.date = %q{2010-10-20}
13
13
  s.description = %q{Pure Ruby interface for generating Ganglia gmetric packets}
14
14
  s.email = %q{ilya@igvita.com}
15
15
  s.extra_rdoc_files = [
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.rdoc_options = ["--charset=UTF-8"]
29
29
  s.require_paths = ["lib"]
30
30
  s.rubyforge_project = %q{gmetric}
31
- s.rubygems_version = %q{1.3.6}
31
+ s.rubygems_version = %q{1.3.7}
32
32
  s.summary = %q{Pure Ruby interface for generating Ganglia gmetric packets}
33
33
  s.test_files = [
34
34
  "spec/gmetric_spec.rb",
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40
40
  s.specification_version = 3
41
41
 
42
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
43
  else
44
44
  end
45
45
  else
@@ -22,12 +22,14 @@ module Ganglia
22
22
 
23
23
  conn.send_datagram gmetric[0], host, port
24
24
  conn.send_datagram gmetric[1], host, port
25
+ conn.close_connection_after_writing
25
26
  else
26
27
  conn = UDPSocket.new
27
28
  conn.connect(host, port)
28
29
 
29
30
  conn.send gmetric[0], 0
30
31
  conn.send gmetric[1], 0
32
+ conn.close
31
33
  end
32
34
  end
33
35
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ilya Grigorik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-29 00:00:00 -04:00
17
+ date: 2010-10-20 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -44,6 +44,7 @@ rdoc_options:
44
44
  require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
47
48
  requirements:
48
49
  - - ">="
49
50
  - !ruby/object:Gem::Version
@@ -51,6 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
52
  - 0
52
53
  version: "0"
53
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
54
56
  requirements:
55
57
  - - ">="
56
58
  - !ruby/object:Gem::Version
@@ -60,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
62
  requirements: []
61
63
 
62
64
  rubyforge_project: gmetric
63
- rubygems_version: 1.3.6
65
+ rubygems_version: 1.3.7
64
66
  signing_key:
65
67
  specification_version: 3
66
68
  summary: Pure Ruby interface for generating Ganglia gmetric packets