cucumber-messages 12.0.0 → 12.3.2
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: 5d3c1d138201a3432939ab35e2b4d898f868c87abe7bce711966dd6c20dfcd00
|
4
|
+
data.tar.gz: f3a0c12fc2e1332e1cebd4744de5710d2f5cf56efbaa0de29d6651a94926303e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0103fd3bf93bdf7ea959c4811cbfbe4abc0e975477ff755db2668aebbff13e9473555451e40023e84524b4d163ded09bf227774eb146e7dea64ceff6857ced0f
|
7
|
+
data.tar.gz: 13e0f7dc705e6ac57dd85bb2590c0032611c0a211541c8fa3af9f02efce3431e5551802e1108a755411837ae8afbdfb87a1cd35866e58d796f943449d6328d80
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
12.3.2
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -13,10 +13,22 @@ module Cucumber
|
|
13
13
|
# Message Classes
|
14
14
|
#
|
15
15
|
class Envelope < ::Protobuf::Message; end
|
16
|
+
class Meta < ::Protobuf::Message
|
17
|
+
class Product < ::Protobuf::Message; end
|
18
|
+
class CI < ::Protobuf::Message
|
19
|
+
class Git < ::Protobuf::Message; end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
end
|
25
|
+
|
16
26
|
class Timestamp < ::Protobuf::Message; end
|
17
27
|
class Duration < ::Protobuf::Message; end
|
18
28
|
class Location < ::Protobuf::Message; end
|
19
29
|
class SourceReference < ::Protobuf::Message; end
|
30
|
+
class JavaMethod < ::Protobuf::Message; end
|
31
|
+
class JavaStackTraceElement < ::Protobuf::Message; end
|
20
32
|
class Source < ::Protobuf::Message; end
|
21
33
|
class GherkinDocument < ::Protobuf::Message
|
22
34
|
class Comment < ::Protobuf::Message; end
|
@@ -97,11 +109,7 @@ module Cucumber
|
|
97
109
|
end
|
98
110
|
|
99
111
|
class TestRunStarted < ::Protobuf::Message; end
|
100
|
-
class TestCaseStarted < ::Protobuf::Message
|
101
|
-
class Platform < ::Protobuf::Message; end
|
102
|
-
|
103
|
-
end
|
104
|
-
|
112
|
+
class TestCaseStarted < ::Protobuf::Message; end
|
105
113
|
class TestCaseFinished < ::Protobuf::Message; end
|
106
114
|
class TestStepStarted < ::Protobuf::Message; end
|
107
115
|
class TestStepFinished < ::Protobuf::Message
|
@@ -166,6 +174,34 @@ module Cucumber
|
|
166
174
|
optional ::Cucumber::Messages::TestCaseFinished, :test_case_finished, 14
|
167
175
|
optional ::Cucumber::Messages::TestRunFinished, :test_run_finished, 15
|
168
176
|
optional ::Cucumber::Messages::ParseError, :parse_error, 16
|
177
|
+
optional ::Cucumber::Messages::Meta, :meta, 17
|
178
|
+
end
|
179
|
+
|
180
|
+
class Meta
|
181
|
+
class Product
|
182
|
+
optional :string, :name, 1
|
183
|
+
optional :string, :version, 2
|
184
|
+
end
|
185
|
+
|
186
|
+
class CI
|
187
|
+
class Git
|
188
|
+
optional :string, :remote, 1
|
189
|
+
optional :string, :revision, 2
|
190
|
+
optional :string, :branch, 3
|
191
|
+
optional :string, :tag, 4
|
192
|
+
end
|
193
|
+
|
194
|
+
optional :string, :name, 1
|
195
|
+
optional :string, :url, 2
|
196
|
+
optional ::Cucumber::Messages::Meta::CI::Git, :git, 3
|
197
|
+
end
|
198
|
+
|
199
|
+
optional :string, :protocol_version, 1
|
200
|
+
optional ::Cucumber::Messages::Meta::Product, :implementation, 2
|
201
|
+
optional ::Cucumber::Messages::Meta::Product, :runtime, 3
|
202
|
+
optional ::Cucumber::Messages::Meta::Product, :os, 4
|
203
|
+
optional ::Cucumber::Messages::Meta::Product, :cpu, 5
|
204
|
+
optional ::Cucumber::Messages::Meta::CI, :ci, 6
|
169
205
|
end
|
170
206
|
|
171
207
|
class Timestamp
|
@@ -185,9 +221,23 @@ module Cucumber
|
|
185
221
|
|
186
222
|
class SourceReference
|
187
223
|
optional :string, :uri, 1
|
224
|
+
optional ::Cucumber::Messages::JavaMethod, :java_method, 3
|
225
|
+
optional ::Cucumber::Messages::JavaStackTraceElement, :java_stack_trace_element, 4
|
188
226
|
optional ::Cucumber::Messages::Location, :location, 2
|
189
227
|
end
|
190
228
|
|
229
|
+
class JavaMethod
|
230
|
+
optional :string, :class_name, 1
|
231
|
+
optional :string, :method_name, 2
|
232
|
+
repeated :string, :method_parameter_types, 3
|
233
|
+
end
|
234
|
+
|
235
|
+
class JavaStackTraceElement
|
236
|
+
optional :string, :class_name, 1
|
237
|
+
optional :string, :method_name, 2
|
238
|
+
optional :string, :file_name, 3
|
239
|
+
end
|
240
|
+
|
191
241
|
class Source
|
192
242
|
optional :string, :uri, 1
|
193
243
|
optional :string, :data, 2
|
@@ -391,15 +441,7 @@ module Cucumber
|
|
391
441
|
end
|
392
442
|
|
393
443
|
class TestCaseStarted
|
394
|
-
class Platform
|
395
|
-
optional :string, :implementation, 1
|
396
|
-
optional :string, :version, 2
|
397
|
-
optional :string, :os, 3
|
398
|
-
optional :string, :cpu, 4
|
399
|
-
end
|
400
|
-
|
401
444
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 1
|
402
|
-
optional ::Cucumber::Messages::TestCaseStarted::Platform, :platform, 2
|
403
445
|
optional :uint32, :attempt, 3
|
404
446
|
optional :string, :test_case_id, 4
|
405
447
|
optional :string, :id, 5
|
data/lib/cucumber/messages.rb
CHANGED
@@ -9,3 +9,9 @@ require 'cucumber/messages/id_generator'
|
|
9
9
|
Cucumber::Messages::Envelope.include(Cucumber::Messages::WriteNdjson)
|
10
10
|
Cucumber::Messages::Envelope.include(Cucumber::Messages::WriteDelimited)
|
11
11
|
Cucumber::Messages::Envelope.extend(Cucumber::Messages::ParseDelimited)
|
12
|
+
|
13
|
+
module Cucumber
|
14
|
+
module Messages
|
15
|
+
VERSION = File.read(File.expand_path("../../VERSION", __dir__)).strip
|
16
|
+
end
|
17
|
+
end
|
@@ -4,12 +4,14 @@ module Cucumber
|
|
4
4
|
NANOSECONDS_PER_SECOND = 1000000000
|
5
5
|
|
6
6
|
def time_to_timestamp(time)
|
7
|
-
|
8
|
-
|
7
|
+
Timestamp.new(
|
8
|
+
seconds: time.to_i,
|
9
|
+
nanos: time.nsec
|
10
|
+
)
|
9
11
|
end
|
10
12
|
|
11
13
|
def timestamp_to_time(timestamp)
|
12
|
-
Time.at(
|
14
|
+
Time.at(timestamp.seconds + timestamp.nanos.to_f / NANOSECONDS_PER_SECOND)
|
13
15
|
end
|
14
16
|
|
15
17
|
def seconds_to_duration(seconds_float)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.3.2
|
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: 2020-
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -78,6 +78,7 @@ extra_rdoc_files: []
|
|
78
78
|
files:
|
79
79
|
- LICENSE
|
80
80
|
- README.md
|
81
|
+
- VERSION
|
81
82
|
- lib/cucumber/messages.pb.rb
|
82
83
|
- lib/cucumber/messages.rb
|
83
84
|
- lib/cucumber/messages/binary_to_message_enumerator.rb
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|
93
94
|
- spec/cucumber/messages/protobuf_serialization_spec.rb
|
94
95
|
- spec/cucumber/messages/time_conversion_spec.rb
|
96
|
+
- spec/cucumber/messages/version_spec.rb
|
95
97
|
homepage: https://github.com/cucumber/messages-ruby#readme
|
96
98
|
licenses:
|
97
99
|
- MIT
|
@@ -117,14 +119,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
119
|
- !ruby/object:Gem::Version
|
118
120
|
version: '0'
|
119
121
|
requirements: []
|
120
|
-
|
121
|
-
rubygems_version: 2.7.6.2
|
122
|
+
rubygems_version: 3.1.2
|
122
123
|
signing_key:
|
123
124
|
specification_version: 4
|
124
|
-
summary: cucumber-messages-12.
|
125
|
+
summary: cucumber-messages-12.3.2
|
125
126
|
test_files:
|
126
127
|
- spec/cucumber/messages/time_conversion_spec.rb
|
127
128
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|
129
|
+
- spec/cucumber/messages/version_spec.rb
|
128
130
|
- spec/cucumber/messages/protobuf_serialization_spec.rb
|
129
131
|
- spec/cucumber/messages/id_generator_spec.rb
|
130
132
|
- spec/capture_warnings.rb
|