cucumber_priority 0.3.0 → 0.3.1
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/.ruby-version +1 -1
- data/lib/cucumber_priority/resolve_ambiguous_error.rb +5 -5
- data/lib/cucumber_priority/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a079b181ab4eaea2b39c27db2fda7c8f299821de5f56bfcb49207e3f77fd32a1
|
4
|
+
data.tar.gz: 7f32402851987a27f43b15ab21bad90aa689de363ea0985fa177ceb2590d70ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c92ea01431f7327765bc948447d6418718156214982a058249974391634820e90d8d60a59adb06347f6023c074fa3d53c35206c934fe16866ea1ca8426047fe
|
7
|
+
data.tar.gz: 21330e0c5712f14db7e4a63c5768580e26c12522abc9b27418014982f1a439a45ceac16e08ff749bc38e567efd7700ac29634add935c46e64299ba1bd102e851
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
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)
|
77
|
+
CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
|
78
78
|
end
|
79
79
|
|
80
80
|
CucumberPriority::Util.alias_chain self, :step_match, :priority
|