diffend 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +6 -1
- data/Gemfile.lock +4 -4
- data/lib/diffend/execute.rb +1 -1
- data/lib/diffend/local_context/host.rb +0 -12
- data/lib/diffend/request.rb +0 -1
- data/lib/diffend/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab9ba402e382256b6318f8a4b278ae8e6ae0e68dc9ab15fedca98b8e46f8a105
|
4
|
+
data.tar.gz: 7f0fa88a9af55b5b7d2992fa67fcde7f464f36b68801f4b69b3d0204033428df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41cad9b056aed9f846424964a14862cf5dfeab3596b93673bf7ed9ceacc50beab92157cfe8b98aa4a35c8bce5341862c79e6a35ae03fdc754a85eeb730b7077
|
7
|
+
data.tar.gz: dfd06d10e56962b7ffa3eca0530b8b7fcaa9bb83169c2bd52e672a957de9dba22dd63f2dd91c3d90441c466256446d4609c293e028e75deaa66db28f47fccbfc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.github/workflows/ci.yml
CHANGED
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.
|
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.
|
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.
|
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.
|
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.
|
40
|
+
2.2.7
|
data/lib/diffend/execute.rb
CHANGED
@@ -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(
|
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]
|
data/lib/diffend/request.rb
CHANGED
data/lib/diffend/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diffend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
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-
|
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
|