cucumber-expressions 8.0.2 → 8.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc15b3efb1bb0caa4966b397455d0d7f2a51e0797ba23a88bcf4e7ad1385375e
|
4
|
+
data.tar.gz: 4644ef345042260e1f7bb9b0a8a12b445a5bcf2e3a395c6d5ea73d83612d25b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8214b45d99ba0e13ad905c4b9da754c164f0a05f88566d88de36ca7fa7cb5fe843878601437fe454ca32efefc76c08638cc9a94f3420bfaceae1342d9d0d9c
|
7
|
+
data.tar.gz: 201333370c7c13ebda4a3561940de95e4fa27a6b39a2dad964e030d6f3be3013e45f11dd345cb29dff4552294c0a7defb5eb75d10679ca0281deebeed094611e
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'cucumber-expressions'
|
4
|
-
s.version = '8.0
|
4
|
+
s.version = '8.1.0'
|
5
5
|
s.authors = ["Aslak Hellesøy"]
|
6
6
|
s.description = 'Cucumber Expressions - a simpler alternative to Regular Expressions'
|
7
7
|
s.summary = "cucumber-expressions-#{s.version}"
|
@@ -23,7 +23,7 @@ module Cucumber
|
|
23
23
|
char_class = false
|
24
24
|
elsif c == '(' && !escaping && !char_class
|
25
25
|
@stack.push(GroupBuilder.new)
|
26
|
-
group_start_stack.push(n+1)
|
26
|
+
group_start_stack.push(n + 1)
|
27
27
|
@non_capturing_maybe = false
|
28
28
|
elsif c == ')' && !escaping && !char_class
|
29
29
|
gb = @stack.pop
|
@@ -40,9 +40,9 @@ module Cucumber
|
|
40
40
|
elsif (c == '<') && @non_capturing_maybe
|
41
41
|
@name_capturing_maybe = true
|
42
42
|
elsif (c == ':' || c == '!' || c == '=') && last == '?' && @non_capturing_maybe
|
43
|
-
end_non_capturing_group
|
43
|
+
end_non_capturing_group
|
44
44
|
elsif (c == '=' || c == '!') && last == '<' && @name_capturing_maybe
|
45
|
-
end_non_capturing_group
|
45
|
+
end_non_capturing_group
|
46
46
|
elsif @name_capturing_maybe
|
47
47
|
raise CucumberExpressionError.new("Named capture groups are not supported. See https://github.com/cucumber/cucumber/issues/329")
|
48
48
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'cucumber/cucumber_expressions/argument'
|
2
|
+
require 'cucumber/cucumber_expressions/tree_regexp'
|
3
|
+
require 'cucumber/cucumber_expressions/parameter_type_registry'
|
4
|
+
|
5
|
+
module Cucumber
|
6
|
+
module CucumberExpressions
|
7
|
+
describe Argument do
|
8
|
+
it 'exposes parameter_type' do
|
9
|
+
tree_regexp = TreeRegexp.new(/three (.*) mice/)
|
10
|
+
parameter_type_registry = ParameterTypeRegistry.new
|
11
|
+
arguments = Argument.build(tree_regexp, "three blind mice", [parameter_type_registry.lookup_by_type_name("string")])
|
12
|
+
argument = arguments[0]
|
13
|
+
expect(argument.parameter_type.name).to eq("string")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-expressions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0
|
4
|
+
version: 8.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- scripts/update-gemspec
|
106
106
|
- spec/capture_warnings.rb
|
107
107
|
- spec/coverage.rb
|
108
|
+
- spec/cucumber/cucumber_expressions/argument_spec.rb
|
108
109
|
- spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb
|
109
110
|
- spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb
|
110
111
|
- spec/cucumber/cucumber_expressions/cucumber_expression_regexp_spec.rb
|
@@ -144,10 +145,11 @@ rubyforge_project:
|
|
144
145
|
rubygems_version: 2.7.6.2
|
145
146
|
signing_key:
|
146
147
|
specification_version: 4
|
147
|
-
summary: cucumber-expressions-8.0
|
148
|
+
summary: cucumber-expressions-8.1.0
|
148
149
|
test_files:
|
149
150
|
- spec/capture_warnings.rb
|
150
151
|
- spec/coverage.rb
|
152
|
+
- spec/cucumber/cucumber_expressions/argument_spec.rb
|
151
153
|
- spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb
|
152
154
|
- spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb
|
153
155
|
- spec/cucumber/cucumber_expressions/cucumber_expression_regexp_spec.rb
|