logjam_agent 0.32.2 → 0.32.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e63a0c31560b5452a3a9dc6edec717fa47324ec23f656f7e361fa53eaef16aa2
4
- data.tar.gz: 6e7c82b4bb09db8d5633b6ddd57b8652029c00a3ba29576ef29514792c8ce16e
3
+ metadata.gz: '001856dce13e72d273c32137e0cbe7d4c004aa22c788e511b9c409065394de77'
4
+ data.tar.gz: d6b17a001250b7739ce3fe0e5096bbc57fea7f0632eca09859d28af53b94e368
5
5
  SHA512:
6
- metadata.gz: 540a920a53669c5fef7d3638387f286e8d6931a83bb30a8388f3925c788ac4a8871419bd3325b9e710317dda01fadbc6d308d574cc6c14ebb8c08bb0875a3b88
7
- data.tar.gz: c9bb062f3d5622b8c5bd888012748d0f84169cc1693c0a78285ddac7ce4f77b3bc29167b7b7cec96d41642bce13743d65c21dbd96432e088b906d71821b85983
6
+ metadata.gz: 29bec994d20a63997d4b43757cc9a88703cd31208c8146bada5aada8d6bfb7de831bb262ad798441ff42423c59d4aa8acdaf8f730295d15fce98eb3da39e173f
7
+ data.tar.gz: a27dfebcf4c233fe99b603179cf28a0edc39233b9baca0b3d9df5606e4f3629cd40f8bd832229378cf08c21c51b01963b31474299d6bc5af5289dbb96a11a9af
data/lib/logjam_agent.rb CHANGED
@@ -77,12 +77,9 @@ module LogjamAgent
77
77
  self.parameter_filters = []
78
78
 
79
79
  def self.get_hostname
80
- n = Socket.gethostname
81
- if n.split('.').size > 1
82
- n
83
- else
84
- Socket.gethostbyname(n).first rescue n
85
- end
80
+ name = Socket.gethostname
81
+ host = name.split('.').first
82
+ Addrinfo.getaddrinfo(host, nil, nil, :STREAM, nil, Socket::AI_CANONNAME).first.canonname rescue name
86
83
  end
87
84
 
88
85
  mattr_accessor :hostname
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.32.2"
2
+ VERSION = "0.32.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.2
4
+ version: 0.32.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-19 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
277
  requirements: []
278
- rubygems_version: 3.1.4
278
+ rubygems_version: 3.2.7
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Logjam client library to be used with logjam