diffend-monitor 0.2.39 → 0.2.40

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: aad29d6d630d04366e4421991bfdd26d1725878fe5986e240a36e26e9840bab3
4
- data.tar.gz: 69ac92f632883cf7bcc9e8bf42f3193cc0f034098401e037be143f8b2dce95fd
3
+ metadata.gz: f88e005924b71bf6f49c352bb8a94c3c86cf1a9af15f011ba357e2dc25cb0dbc
4
+ data.tar.gz: 7f8b7badc3e62ca223adf7170941986c7d55d2f0ec8fea62889c2ce9898d2024
5
5
  SHA512:
6
- metadata.gz: 526ee6bc6e464d15bff85944cbec34d072a4a4fce8b3658423526cb7ec60c44413769e2b84b778c9f7e6291ac98afcc2c06f05af385c787198cd3c3798ff30c1
7
- data.tar.gz: adf72aa9eb79f43aca61022172f2323e0a0f859b4954df63dbe62631b0e9713ff775f712032dda5e65fc04d82ae66b6d37d06a7f4567a5d4f54d5664c47b9d15
6
+ metadata.gz: 4f1349f7a42b8eb9edc0cdfa3e73c607d3f523955fcd2051d09901035f3731195632be70575e8f0e4f5b129dace9b9a350f353da223a1c75566561159bcc7968
7
+ data.tar.gz: efec99d3c42273b5ad96b51bcadf2e3a33db5d49b88f728bc30da461174c4bf07edda96f7470aaa6b5faed58c0c194620296ebe421d00571a22e41a6a13171c7
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -18,7 +18,7 @@ jobs:
18
18
  - 'jruby-9.2.14.0'
19
19
  bundler:
20
20
  - '2.1.4'
21
- - '2.2.5'
21
+ - '2.2.7'
22
22
  include:
23
23
  - ruby: '2.7'
24
24
  coverage: 'true'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased][master]
4
4
 
5
+ ## [0.2.40] (2021-02-23)
6
+ - don't expose ips, we can identify instance by a hostname ([#108](https://github.com/diffend-io/diffend-ruby/pull/108))
7
+ - don't set `verify_mode` when creating request in `Diffend::Request`, use default value set by `use_ssl` flag instead ([#109](https://github.com/diffend-io/diffend-ruby/pull/109))
8
+
5
9
  ## [0.2.39] (2021-01-18)
6
10
  - handle a case if we start to fast and some gems require things it may break the execution ([#101](https://github.com/diffend-io/diffend-ruby/pull/101))
7
11
 
@@ -122,7 +126,8 @@
122
126
 
123
127
  - initial release
124
128
 
125
- [master]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.39...HEAD
129
+ [master]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.40...HEAD
130
+ [0.2.40]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.39...v0.2.40
126
131
  [0.2.39]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.38...v0.2.39
127
132
  [0.2.38]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.37...v0.2.38
128
133
  [0.2.37]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.36...v0.2.37
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- diffend (0.2.39)
4
+ diffend (0.2.40)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,10 +18,10 @@ GEM
18
18
  rspec-expectations (3.10.1)
19
19
  diff-lcs (>= 1.2.0, < 2.0)
20
20
  rspec-support (~> 3.10.0)
21
- rspec-mocks (3.10.1)
21
+ rspec-mocks (3.10.2)
22
22
  diff-lcs (>= 1.2.0, < 2.0)
23
23
  rspec-support (~> 3.10.0)
24
- rspec-support (3.10.1)
24
+ rspec-support (3.10.2)
25
25
 
26
26
  PLATFORMS
27
27
  java
@@ -37,4 +37,4 @@ DEPENDENCIES
37
37
  rspec
38
38
 
39
39
  BUNDLED WITH
40
- 2.2.5
40
+ 2.2.7
@@ -30,7 +30,7 @@ module Diffend
30
30
  # @param response [Hash] response from diffend API
31
31
  def build_message(config, response)
32
32
  if response.key?('error')
33
- build_error(config, response)
33
+ build_error(response)
34
34
  elsif response.key?('action')
35
35
  build_verdict(config, response)
36
36
  else
@@ -16,7 +16,6 @@ module Diffend
16
16
 
17
17
  {
18
18
  'command' => command,
19
- 'ips' => ips,
20
19
  'name' => uname[:nodename],
21
20
  'system' => {
22
21
  'machine' => uname[:machine],
@@ -53,17 +52,6 @@ module Diffend
53
52
  end
54
53
  end
55
54
 
56
- # Build host ips, except localhost and loopback
57
- #
58
- # @return [Array<String>]
59
- def ips
60
- Socket.ip_address_list.map do |ip|
61
- next if ip.ipv4_loopback? || ip.ipv6_loopback? || ip.ipv6_linklocal?
62
-
63
- ip.ip_address
64
- end.compact
65
- end
66
-
67
55
  # Build host tags
68
56
  #
69
57
  # @return [Array]
@@ -124,7 +124,6 @@ module Diffend
124
124
  uri.host,
125
125
  uri.port,
126
126
  use_ssl: uri.scheme == 'https',
127
- verify_mode: OpenSSL::SSL::VERIFY_NONE,
128
127
  open_timeout: 15,
129
128
  read_timeout: 15
130
129
  ) { |http| yield(http, uri) }
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Diffend
4
4
  # Current version
5
- VERSION = '0.2.39'
5
+ VERSION = '0.2.40'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffend-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.39
4
+ version: 0.2.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Pajor
@@ -34,7 +34,7 @@ cert_chain:
34
34
  9MmF6uCQa1EjK2p8tYT0MnbHrFkoehxdX4VO9y99GAkhZyJNKPYPtyAUFV27sT2V
35
35
  LfCJRk4ifKIN/FUCwDSn8Cz0m6oH265q0p6wdzI6qrWOjP8tGOMBTA==
36
36
  -----END CERTIFICATE-----
37
- date: 2021-01-18 00:00:00.000000000 Z
37
+ date: 2021-02-23 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: bundler
metadata.gz.sig CHANGED
Binary file