network_logger_io 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/network_logger_io.rb +2 -1
  2. metadata +1 -1
@@ -8,6 +8,7 @@ class NetworkLoggerIO < IO
8
8
 
9
9
  raise(ArgumentError, ':host is required') unless @options[:host]
10
10
  raise(ArgumentError, ':api_key is required') unless @options[:api_key]
11
+ raise(ArgumentError, ':pid is required') unless @options[:pid]
11
12
 
12
13
  @options[:port] ||= 4455
13
14
  @options[:type] ||= 'default'
@@ -22,7 +23,7 @@ class NetworkLoggerIO < IO
22
23
  end
23
24
 
24
25
  def fresh_buffer
25
- [@options[:api_key].bytesize, @options[:api_key], @options[:type].bytesize, @options[:type]].pack('nA*nA*')
26
+ [@options[:api_key].bytesize, @options[:api_key], @options[:type].bytesize, @options[:type], @options[:pid].bytesize, @options[:pid]].pack('nA*nA*nA*')
26
27
  end
27
28
 
28
29
  def write(data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network_logger_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: