lopata 0.1.18 → 0.1.20

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: 648aa77ea8c480039ff21dc5b0ad56869252bf132878980b413cce036faba74e
4
- data.tar.gz: e038f58383820b4fa57388c7b41c4a654bbf3fdb366e6f65517cf5e4e2e0ba1e
3
+ metadata.gz: 7e55390905dd755e2f414e1164e0164ede72e4a11acd368ed6ff6971a7b69e34
4
+ data.tar.gz: d4aa229e3bba5a2ac1875546b7ffe75b684a89ed4e1e08e1769f501a81989ce1
5
5
  SHA512:
6
- metadata.gz: b48e9faf2da07942d82a0f336a7dcf146a36624cb4fb02913562821ca1862aefa4433e0a3cec56abf699019c998765e7eca5309bf54b8266483f0de78cdd97d9
7
- data.tar.gz: 86a158bf2b5097e351acfeb84376f0d67615ea9fcde9e46108e997b2b100a91ea9d068ed96363a156ba9cb41f6bbc7965fcd2d65e655d11e7f8da0c0dbf3d281
6
+ metadata.gz: 7ea02b4920bc2534dc361aff03a6d277526f5aa53a51d15ba219e3ca6ee8877771b9fb185146172c67c9744afa18414baa6565e55ac5b213db00eb1fdf8884db
7
+ data.tar.gz: 6c546d9eed8857a1e852e00b64d6a99c65b744862d914bc51fe8bdd14b81b2f7abe80f2c23217d38b83748068731f7eabaacc5ae2eb4b29354845904772e1177
@@ -17,7 +17,13 @@ module Lopata
17
17
  metadata = scenario.metadata
18
18
  case condition
19
19
  when Hash
20
- condition.keys.all? { |k| metadata[k] == condition[k] }
20
+ condition.keys.all? do |k|
21
+ if condition[k].is_a? Array
22
+ condition[k].include?(metadata[k])
23
+ else
24
+ metadata[k] == condition[k]
25
+ end
26
+ end
21
27
  when Array
22
28
  condition.map { |key| metadata[key] }.all?
23
29
  when TrueClass, FalseClass
@@ -52,6 +52,10 @@ module Lopata
52
52
  request = { status: status, steps: steps, launch: { id: @launch_id, finished: finished } }
53
53
  test = test_id(scenario)
54
54
  post("/tests/#{test}/attempts.json", body: request)
55
+ rescue SocketError => e
56
+ # Ignore network problems. Continue with next scenario when cannot log results.
57
+ puts e.message
58
+ puts e.backtrace
55
59
  end
56
60
 
57
61
  def step_hash(step)
@@ -1,6 +1,6 @@
1
1
  module Lopata
2
2
  # @private
3
3
  module Version
4
- STRING = '0.1.18'
4
+ STRING = '0.1.20'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lopata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Volochnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -138,5 +138,5 @@ requirements: []
138
138
  rubygems_version: 3.2.15
139
139
  signing_key:
140
140
  specification_version: 4
141
- summary: lopata-0.1.18
141
+ summary: lopata-0.1.20
142
142
  test_files: []