lopata 0.1.17 → 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/exe/lopata +0 -0
- data/lib/lopata/condition.rb +7 -1
- data/lib/lopata/scenario.rb +14 -0
- data/lib/lopata/version.rb +1 -1
- metadata +6 -6
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/exe/lopata
CHANGED
File without changes
|
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/scenario.rb
CHANGED
@@ -15,6 +15,14 @@ class Lopata::Scenario
|
|
15
15
|
@execution = execution
|
16
16
|
end
|
17
17
|
|
18
|
+
# Provide a human-readable representation of this class
|
19
|
+
def inspect
|
20
|
+
"#<#{self.class.name} #{execution.title.inspect}>"
|
21
|
+
end
|
22
|
+
alias to_s inspect
|
23
|
+
|
24
|
+
|
25
|
+
|
18
26
|
# Marks current step as pending
|
19
27
|
# @example
|
20
28
|
# it 'pending step' do
|
@@ -65,6 +73,12 @@ class Lopata::Scenario
|
|
65
73
|
@scenario = Lopata::Scenario.new(self)
|
66
74
|
end
|
67
75
|
|
76
|
+
# Provide a human-readable representation of this class
|
77
|
+
def inspect
|
78
|
+
"#<#{self.class.name} #{title.inspect}>"
|
79
|
+
end
|
80
|
+
alias to_s inspect
|
81
|
+
|
68
82
|
def run
|
69
83
|
@status = :running
|
70
84
|
sort_steps
|
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
|
-
autorequire:
|
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
|
@@ -120,7 +120,7 @@ homepage: https://github.com/avolochnev/lopata
|
|
120
120
|
licenses:
|
121
121
|
- MIT
|
122
122
|
metadata: {}
|
123
|
-
post_install_message:
|
123
|
+
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|
126
126
|
- lib
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubygems_version: 3.2.15
|
139
|
-
signing_key:
|
139
|
+
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary: lopata-0.1.
|
141
|
+
summary: lopata-0.1.19
|
142
142
|
test_files: []
|