em-statsd-ruby 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aac2760f139ef0a68f08fc76985d306d87f3eba2
4
- data.tar.gz: 0ce679e23dad878d9d80d5fd38cf24a529f08c7a
3
+ metadata.gz: 0b3675d1b97e621a8c5b0c4c517a47201ba35398
4
+ data.tar.gz: 243aacf91675247264c6d1a46b50ce4339d27108
5
5
  SHA512:
6
- metadata.gz: 893d57627c43482f6f577556dfb32b4240368a6d341567a4253b0f133686908c53f75a18d0190e95417ac75ecfe645db01a3a724422a1ff6832b66cde3598ef2
7
- data.tar.gz: a630023ff2b05922282d4ea3d60fe195b2eaf11998d7716065c3a8fdaa16115f2519ed765932ea84a64b06b6b90bb9f48e930eb4fdc1203be49378a01e2dc931
6
+ metadata.gz: 4f8d098e71cf782aeb09a72930fb8f02ad997ffb3087627402fdcfaf8174f574720bf8d830b3ccda6479e07dbe1a579d0c8d3f4c5b0b76047e7dcdb4b0ba3093
7
+ data.tar.gz: c8f95326ca51afe94699feb9f57d390432e9316b3b6f648e5bf9be3ec0d96eb630ab171a88dd7b6aafb7cd5e727352fe6a92e9c87634a391c3f7d209915d17c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- em-statsd-ruby (1.0.0)
4
+ em-statsd-ruby (1.0.2)
5
5
  eventmachine (~> 1.2)
6
6
  statsd-ruby (= 1.3.0)
7
7
 
@@ -1,5 +1,6 @@
1
1
  require 'eventmachine'
2
2
  require 'statsd-ruby'
3
+ require 'em_statsd/base_wrapper'
3
4
  require 'em_statsd/udp_wrapper'
4
5
  require 'em_statsd/tcp_wrapper'
5
6
  require 'em_statsd/statsd'
@@ -0,0 +1,20 @@
1
+ module EMStatsd
2
+ class BaseWrapper
3
+
4
+ attr_reader :connection
5
+
6
+ def close
7
+ connection.close_connection_after_writing
8
+ end
9
+
10
+ def flush
11
+
12
+ end
13
+
14
+ def write(_)
15
+
16
+ end
17
+
18
+ end
19
+ end
20
+
@@ -1,5 +1,5 @@
1
1
  module EMStatsd
2
- class TCPWrapper
2
+ class TCPWrapper < BaseWrapper
3
3
 
4
4
  attr_reader :connection
5
5
 
@@ -24,4 +24,3 @@ module EMStatsd
24
24
 
25
25
  end
26
26
  end
27
-
@@ -1,5 +1,5 @@
1
1
  module EMStatsd
2
- class UDPWrapper
2
+ class UDPWrapper < BaseWrapper
3
3
 
4
4
  attr_reader :connection
5
5
 
@@ -25,4 +25,3 @@ module EMStatsd
25
25
 
26
26
  end
27
27
  end
28
-
@@ -1,3 +1,3 @@
1
1
  module EMStatsd
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-statsd-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Mayatsky
@@ -69,6 +69,7 @@ files:
69
69
  - Rakefile
70
70
  - em-statsd-ruby.gemspec
71
71
  - lib/em-statsd-ruby.rb
72
+ - lib/em_statsd/base_wrapper.rb
72
73
  - lib/em_statsd/statsd.rb
73
74
  - lib/em_statsd/tcp_wrapper.rb
74
75
  - lib/em_statsd/udp_wrapper.rb