lopata 0.1.18 → 0.1.19

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: 5a8a4ad14daa538fff802214154447f18870218fc11ab868329b49ceb83dc92f
4
+ data.tar.gz: 45699cd6159403c5e8179d5bdd55ebfef468e9f35484c2aebd19a9de6c38fe11
5
5
  SHA512:
6
- metadata.gz: b48e9faf2da07942d82a0f336a7dcf146a36624cb4fb02913562821ca1862aefa4433e0a3cec56abf699019c998765e7eca5309bf54b8266483f0de78cdd97d9
7
- data.tar.gz: 86a158bf2b5097e351acfeb84376f0d67615ea9fcde9e46108e997b2b100a91ea9d068ed96363a156ba9cb41f6bbc7965fcd2d65e655d11e7f8da0c0dbf3d281
6
+ metadata.gz: 3dd9b7b141261b79dfc3d1218f97344fbbc9dddd3149872d08a1b759fd58ffaf2671e69604ad7ce278fb8df1134544dbdec803ef6f718f8bb6238b2e058ba3bb
7
+ data.tar.gz: '095b74c08cecece6997171bb1dba20d004d790adc5f32ca3d433853623146e8d94f60467d47a691a173241b6601c81b33b5245f621db706c7c3aef404c4c8884'
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Lopata
2
2
  # @private
3
3
  module Version
4
- STRING = '0.1.18'
4
+ STRING = '0.1.19'
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.19
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-01-24 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.19
142
142
  test_files: []