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 +4 -4
- data/lib/lopata/condition.rb +7 -1
- data/lib/lopata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a8a4ad14daa538fff802214154447f18870218fc11ab868329b49ceb83dc92f
|
4
|
+
data.tar.gz: 45699cd6159403c5e8179d5bdd55ebfef468e9f35484c2aebd19a9de6c38fe11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dd9b7b141261b79dfc3d1218f97344fbbc9dddd3149872d08a1b759fd58ffaf2671e69604ad7ce278fb8df1134544dbdec803ef6f718f8bb6238b2e058ba3bb
|
7
|
+
data.tar.gz: '095b74c08cecece6997171bb1dba20d004d790adc5f32ca3d433853623146e8d94f60467d47a691a173241b6601c81b33b5245f621db706c7c3aef404c4c8884'
|
data/lib/lopata/condition.rb
CHANGED
@@ -17,7 +17,13 @@ module Lopata
|
|
17
17
|
metadata = scenario.metadata
|
18
18
|
case condition
|
19
19
|
when Hash
|
20
|
-
condition.keys.all?
|
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
|
data/lib/lopata/version.rb
CHANGED
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.
|
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:
|
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.
|
141
|
+
summary: lopata-0.1.19
|
142
142
|
test_files: []
|