lopata 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lopata/step.rb +2 -11
- data/lib/lopata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52985977beeccefe3ae15ad9686dad98119c0f201007ce353d27e182bfb11eaa
|
4
|
+
data.tar.gz: 5c21409a5efb926421e8d829ab2051dad6f4a4e914ee2e9500c01c28e8b083c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34503bf27d89b6fca63f77fab8d0f4940f102c01de34058f73d2255258e06e1b5a26b989302b9d842502b8f79b236c80538729b15878655f35d87f0370836947
|
7
|
+
data.tar.gz: af7b41981f88d5c8fd03e3099d7ff7612a1d24642e7ca27f01bc914a309ed32847fcf4c1a4ae12dbfd42b167040e36c19f2a012f00295761eb4ce125fdebe565
|
data/lib/lopata/step.rb
CHANGED
@@ -88,10 +88,6 @@ module Lopata
|
|
88
88
|
@let_methods ||= {}
|
89
89
|
end
|
90
90
|
|
91
|
-
def let_bang_methods
|
92
|
-
@let_bang_methods ||= {}
|
93
|
-
end
|
94
|
-
|
95
91
|
private
|
96
92
|
|
97
93
|
# Group step's block is a block in context of builder, not scenario. So hide the @block to not be used in scenario.
|
@@ -226,17 +222,12 @@ module Lopata
|
|
226
222
|
|
227
223
|
# Step metadata is a combination of metadata given for step and all contexts (groups) the step included
|
228
224
|
def metadata
|
229
|
-
(groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata) }
|
225
|
+
(groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata || {}) }
|
230
226
|
end
|
231
227
|
|
232
228
|
# Step methods is a combination of let_methods for all contexts (group) the step included
|
233
229
|
def let_methods
|
234
|
-
(groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods) }
|
235
|
-
end
|
236
|
-
|
237
|
-
# Step bang methods is a combination of let_bang_methods for all contexts (group) the step included
|
238
|
-
def let_bang_methods
|
239
|
-
(groups).compact.inject({}) { |merged, part| merged.merge(part.let_bang_methods) }
|
230
|
+
(groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods || {}) }
|
240
231
|
end
|
241
232
|
end
|
242
233
|
end
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
@@ -139,5 +139,5 @@ requirements: []
|
|
139
139
|
rubygems_version: 3.2.15
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
|
-
summary: lopata-0.1.
|
142
|
+
summary: lopata-0.1.25
|
143
143
|
test_files: []
|