cucumber_priority 0.3.0 → 0.3.1

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: '08253bd452fab3691947f47e32a8dd918b40dc1d87984383f11ec07d41662b7f'
4
- data.tar.gz: 5fbc94f014fc42891fcad6737aa78297f2f12485f92230615af538d400cdbd06
3
+ metadata.gz: a079b181ab4eaea2b39c27db2fda7c8f299821de5f56bfcb49207e3f77fd32a1
4
+ data.tar.gz: 7f32402851987a27f43b15ab21bad90aa689de363ea0985fa177ceb2590d70ae
5
5
  SHA512:
6
- metadata.gz: 901cc83b57973c9c6b2bdad8590be51bd7092b6ae46d50bec50506c67141b39803d6472991a28d43265c55621b60d6f79ef12460944c99c0fe147f5bc2fc558c
7
- data.tar.gz: 8c5a6341e332a6e42c277bcec38242d2ff682059ec23eb837ddcba771cbbeec0293f920cda80a424c6463693b1f00cf5856ed2ed6b0f4dc00ca81540b0f7a546
6
+ metadata.gz: 4c92ea01431f7327765bc948447d6418718156214982a058249974391634820e90d8d60a59adb06347f6023c074fa3d53c35206c934fe16866ea1ca8426047fe
7
+ data.tar.gz: 21330e0c5712f14db7e4a63c5768580e26c12522abc9b27418014982f1a439a45ceac16e08ff749bc38e567efd7700ac29634add935c46e64299ba1bd102e851
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.3
1
+ 2.5.0
@@ -12,13 +12,13 @@ module CucumberPriority
12
12
  elsif overriding.size == 1
13
13
  # If our ambiguity is due to another overridable step,
14
14
  # we can use the overriding step
15
- overriding
15
+ overriding.first
16
16
  elsif overriding.size == 0
17
17
  # If we have multiple overridable steps, we use the one
18
18
  # with the highest priority.
19
19
  overridable.sort_by { |match|
20
20
  - match.step_definition.priority
21
- }
21
+ }.first
22
22
  end
23
23
  end
24
24
 
@@ -34,7 +34,7 @@ if Cucumber::VERSION >= '3'
34
34
  def call_with_priority(*args)
35
35
  call_without_priority(*args)
36
36
  rescue Ambiguous => e
37
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
37
+ [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)]
38
38
  end
39
39
 
40
40
  CucumberPriority::Util.alias_chain self, :call, :priority
@@ -54,7 +54,7 @@ elsif Cucumber::VERSION >= '2.3'
54
54
  def step_matches_with_priority(*args)
55
55
  step_matches_without_priority(*args)
56
56
  rescue Ambiguous => e
57
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
57
+ [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)]
58
58
  end
59
59
 
60
60
  CucumberPriority::Util.alias_chain self, :step_matches, :priority
@@ -74,7 +74,7 @@ else
74
74
  def step_match_with_priority(*args)
75
75
  step_match_without_priority(*args)
76
76
  rescue Ambiguous => e
77
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e).first
77
+ CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
78
78
  end
79
79
 
80
80
  CucumberPriority::Util.alias_chain self, :step_match, :priority
@@ -1,3 +1,3 @@
1
1
  module CucumberPriority
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_priority
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch