gherkin 6.0.17 → 7.0.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/bin/gherkin +1 -2
- data/lib/gherkin/exe_file_path.rb +1 -1
- data/lib/gherkin/gherkin.rb +5 -8
- metadata +12 -32
- data/gherkin-go/gherkin-go-darwin-386 +0 -0
- data/gherkin-go/gherkin-go-darwin-amd64 +0 -0
- data/gherkin-go/gherkin-go-freebsd-386 +0 -0
- data/gherkin-go/gherkin-go-freebsd-amd64 +0 -0
- data/gherkin-go/gherkin-go-freebsd-arm +0 -0
- data/gherkin-go/gherkin-go-linux-386 +0 -0
- data/gherkin-go/gherkin-go-linux-amd64 +0 -0
- data/gherkin-go/gherkin-go-linux-arm +0 -0
- data/gherkin-go/gherkin-go-linux-mips +0 -2
- data/gherkin-go/gherkin-go-linux-mips64 +0 -2
- data/gherkin-go/gherkin-go-linux-mips64le +0 -2
- data/gherkin-go/gherkin-go-linux-mipsle +0 -2
- data/gherkin-go/gherkin-go-linux-s390x +0 -2
- data/gherkin-go/gherkin-go-netbsd-386 +0 -0
- data/gherkin-go/gherkin-go-netbsd-amd64 +0 -0
- data/gherkin-go/gherkin-go-netbsd-arm +0 -0
- data/gherkin-go/gherkin-go-openbsd-386 +0 -0
- data/gherkin-go/gherkin-go-openbsd-amd64 +0 -0
- data/gherkin-go/gherkin-go-windows-386.exe +0 -0
- data/gherkin-go/gherkin-go-windows-amd64.exe +0 -0
- data/lib/gherkin/protobuf_cucumber_messages.rb +0 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 702117bd900aa0be2a03aeda58309c7f480120312830cdd3761eedd9c2559956
|
|
4
|
+
data.tar.gz: bb1a9d93fd0231f474fdb0ec2ec194712c46b9e3453b5dcd3f4d1f818f841723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dd38de6867401f4ce95a35c5528f4e75dfbffe9d223850dd4a068ea16fa4de5327b84798f2281497e56fc08ae7c8bdac422266eef829bb577e777b23a2e1ed1
|
|
7
|
+
data.tar.gz: 5f681f1030bed2e6d8713859b63930a85303c9533d0f43dbc55b1a0881d13f5d73bb518a419e7a5dbeec0b567067b51668d81a13201d600c303a7292ff782e3a
|
data/bin/gherkin
CHANGED
data/lib/gherkin/gherkin.rb
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
require 'open3'
|
|
2
2
|
require 'c21e/exe_file'
|
|
3
|
-
require 'gherkin/protobuf_cucumber_messages'
|
|
3
|
+
# require 'gherkin/protobuf_cucumber_messages'
|
|
4
4
|
require 'gherkin/exe_file_path'
|
|
5
5
|
require 'cucumber/messages'
|
|
6
6
|
|
|
7
7
|
module Gherkin
|
|
8
8
|
class Gherkin
|
|
9
|
-
include Cucumber::Messages::Varint
|
|
10
9
|
|
|
11
10
|
DEFAULT_OPTIONS = {
|
|
12
11
|
include_source: true,
|
|
@@ -39,15 +38,13 @@ module Gherkin
|
|
|
39
38
|
stdin, stdout, stderr, wait_thr = Open3.popen3(*args)
|
|
40
39
|
stdin.binmode
|
|
41
40
|
@sources.each do |source|
|
|
42
|
-
wrapper = Cucumber::Messages::
|
|
41
|
+
wrapper = Cucumber::Messages::Envelope.new(
|
|
43
42
|
source: source
|
|
44
43
|
)
|
|
45
|
-
|
|
46
|
-
encode_varint(stdin, proto.length)
|
|
47
|
-
stdin.write(proto)
|
|
44
|
+
wrapper.write_delimited_to(stdin)
|
|
48
45
|
end
|
|
49
46
|
stdin.close
|
|
50
|
-
|
|
47
|
+
Cucumber::Messages::ProtobufIoEnumerator.call(stdout)
|
|
51
48
|
end
|
|
52
49
|
|
|
53
50
|
private
|
|
@@ -63,7 +60,7 @@ module Gherkin
|
|
|
63
60
|
|
|
64
61
|
def self.encode_source_message(uri, data)
|
|
65
62
|
media_obj = Cucumber::Messages::Media.new
|
|
66
|
-
media_obj.encoding =
|
|
63
|
+
media_obj.encoding = :UTF8
|
|
67
64
|
media_obj.content_type = 'text/x.cucumber.gherkin+plain'
|
|
68
65
|
source_obj = Cucumber::Messages::Source.new
|
|
69
66
|
source_obj.uri = uri
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gherkin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gáspár Nagy
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-
|
|
13
|
+
date: 2019-08-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: c21e
|
|
@@ -18,28 +18,28 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - "~>"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 1.1
|
|
21
|
+
version: 1.2.1
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - "~>"
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 1.1
|
|
28
|
+
version: 1.2.1
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: cucumber-messages
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
35
|
+
version: 4.0.0
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
42
|
+
version: 4.0.0
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: bundler
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,30 +108,9 @@ files:
|
|
|
108
108
|
- README.md
|
|
109
109
|
- bin/gherkin
|
|
110
110
|
- bin/gherkin-ruby
|
|
111
|
-
- gherkin-go/gherkin-go-darwin-386
|
|
112
|
-
- gherkin-go/gherkin-go-darwin-amd64
|
|
113
|
-
- gherkin-go/gherkin-go-freebsd-386
|
|
114
|
-
- gherkin-go/gherkin-go-freebsd-amd64
|
|
115
|
-
- gherkin-go/gherkin-go-freebsd-arm
|
|
116
|
-
- gherkin-go/gherkin-go-linux-386
|
|
117
|
-
- gherkin-go/gherkin-go-linux-amd64
|
|
118
|
-
- gherkin-go/gherkin-go-linux-arm
|
|
119
|
-
- gherkin-go/gherkin-go-linux-mips
|
|
120
|
-
- gherkin-go/gherkin-go-linux-mips64
|
|
121
|
-
- gherkin-go/gherkin-go-linux-mips64le
|
|
122
|
-
- gherkin-go/gherkin-go-linux-mipsle
|
|
123
|
-
- gherkin-go/gherkin-go-linux-s390x
|
|
124
|
-
- gherkin-go/gherkin-go-netbsd-386
|
|
125
|
-
- gherkin-go/gherkin-go-netbsd-amd64
|
|
126
|
-
- gherkin-go/gherkin-go-netbsd-arm
|
|
127
|
-
- gherkin-go/gherkin-go-openbsd-386
|
|
128
|
-
- gherkin-go/gherkin-go-openbsd-amd64
|
|
129
|
-
- gherkin-go/gherkin-go-windows-386.exe
|
|
130
|
-
- gherkin-go/gherkin-go-windows-amd64.exe
|
|
131
111
|
- lib/gherkin/dialect.rb
|
|
132
112
|
- lib/gherkin/exe_file_path.rb
|
|
133
113
|
- lib/gherkin/gherkin.rb
|
|
134
|
-
- lib/gherkin/protobuf_cucumber_messages.rb
|
|
135
114
|
- spec/capture_warnings.rb
|
|
136
115
|
- spec/coverage.rb
|
|
137
116
|
- spec/gherkin/dialect_spec.rb
|
|
@@ -142,7 +121,7 @@ licenses:
|
|
|
142
121
|
metadata:
|
|
143
122
|
bug_tracker_uri: https://github.com/cucumber/cucumber/issues
|
|
144
123
|
changelog_uri: https://github.com/cucumber/cucumber/blob/master/gherkin/CHANGELOG.md
|
|
145
|
-
documentation_uri: https://
|
|
124
|
+
documentation_uri: https://cucumber.io/docs/gherkin/
|
|
146
125
|
mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
|
|
147
126
|
source_code_uri: https://github.com/cucumber/cucumber/blob/master/gherkin/ruby
|
|
148
127
|
post_install_message:
|
|
@@ -161,12 +140,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
140
|
- !ruby/object:Gem::Version
|
|
162
141
|
version: '0'
|
|
163
142
|
requirements: []
|
|
164
|
-
|
|
143
|
+
rubyforge_project:
|
|
144
|
+
rubygems_version: 2.7.6.2
|
|
165
145
|
signing_key:
|
|
166
146
|
specification_version: 4
|
|
167
|
-
summary: gherkin-
|
|
147
|
+
summary: gherkin-7.0.1
|
|
168
148
|
test_files:
|
|
169
|
-
- spec/capture_warnings.rb
|
|
170
|
-
- spec/gherkin/gherkin_spec.rb
|
|
171
149
|
- spec/gherkin/dialect_spec.rb
|
|
150
|
+
- spec/gherkin/gherkin_spec.rb
|
|
151
|
+
- spec/capture_warnings.rb
|
|
172
152
|
- spec/coverage.rb
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gherkin-go/v6.0.17/gherkin-go-linux-mips</Key><RequestId>259F23DA30E707DE</RequestId><HostId>LnVMRWlUabuUkrRJL3XjVlep1TGaTH66bBLlMdqpebh2ljBkK4PveuCpa5ZgbV7vIWkZY9VvoTo=</HostId></Error>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gherkin-go/v6.0.17/gherkin-go-linux-mips64</Key><RequestId>4CFA9FACA23AD21E</RequestId><HostId>MX7PJN0PVZXOn9+F9Fj+w6tlRVd6+16hNKs0muDjCWp4ILWZFTeOGjixRd4dnQD49XfK/P00VrI=</HostId></Error>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gherkin-go/v6.0.17/gherkin-go-linux-mips64le</Key><RequestId>A0608C1156D59A73</RequestId><HostId>ZQCMMlpseK7FeXDM4TD6w2BEPhX/z9xoQ+GPLy4E5mDlLocuAXFIscOcfBz2mUhVlP0RWbHhaIQ=</HostId></Error>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gherkin-go/v6.0.17/gherkin-go-linux-mipsle</Key><RequestId>9EC82A6D02738352</RequestId><HostId>lfoA/ehVeGZARL5fUqVhF2r1NkBbiGCHRM+x+ctzWkIx7l+r4mVaonkMs4kWfRuPR5e2bP2pGR0=</HostId></Error>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gherkin-go/v6.0.17/gherkin-go-linux-s390x</Key><RequestId>B240E53636C6B27E</RequestId><HostId>Rx4HX8dLZ3Tts44NSv4+EQhyH7z8WRsrJ+CeHRja69rOAry7SGQZE8GN4fxYeq0LqFbcNsMIxa4=</HostId></Error>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
require 'cucumber/messages'
|
|
2
|
-
|
|
3
|
-
module Gherkin
|
|
4
|
-
class ProtobufCucumberMessages
|
|
5
|
-
include Cucumber::Messages::Varint
|
|
6
|
-
|
|
7
|
-
def initialize(io, err = nil)
|
|
8
|
-
@io = io
|
|
9
|
-
@err = err
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
def messages
|
|
13
|
-
read_pipes = @err.nil? ? [@io] : [@io, @err]
|
|
14
|
-
Enumerator.new do |y|
|
|
15
|
-
while true
|
|
16
|
-
r, = IO.select(read_pipes)
|
|
17
|
-
if r.first == @err
|
|
18
|
-
raise @err.read unless @err.eof?
|
|
19
|
-
else
|
|
20
|
-
break if @io.eof?
|
|
21
|
-
len = decode_varint(@io)
|
|
22
|
-
buf = @io.read(len)
|
|
23
|
-
wrapper = Cucumber::Messages::Wrapper.decode(buf)
|
|
24
|
-
y.yield wrapper
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|