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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54faa8989dbb2e3f1750b060fe05982116ba534a50e6be067d267d0bb7849fc9
4
- data.tar.gz: 4b49ac34fa702f1784f4e23fde2d7da205474619c7ac6190cb0ce73fab1f9520
3
+ metadata.gz: 52985977beeccefe3ae15ad9686dad98119c0f201007ce353d27e182bfb11eaa
4
+ data.tar.gz: 5c21409a5efb926421e8d829ab2051dad6f4a4e914ee2e9500c01c28e8b083c7
5
5
  SHA512:
6
- metadata.gz: 5fb1d7e3ca67d547272e868cddbaa68e7c8ec6c2cc03c617e0e81cd3d6607fca1d914a11d0834fd0eeb259b36ccd80bc4b3e787fdb153abd94a86316f7315482
7
- data.tar.gz: 4ce12c440f2e757f94863d9769a2b2532680d50942d24979ef5b6a49fb9cbb68647f388ca3ab648767a04683cce05484421bd2d2c550e758eaf8e85c353e0433
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
@@ -1,6 +1,6 @@
1
1
  module Lopata
2
2
  # @private
3
3
  module Version
4
- STRING = '0.1.24'
4
+ STRING = '0.1.25'
5
5
  end
6
6
  end
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.24
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.24
142
+ summary: lopata-0.1.25
143
143
  test_files: []