cucumber-messages 12.1.1 → 13.0.0
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/VERSION +1 -1
- data/lib/cucumber/messages.pb.rb +40 -1
- data/lib/cucumber/messages/time_conversion.rb +5 -3
- data/spec/cucumber/messages/time_conversion_spec.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 713a658f8965cf01a13cf0a47b18305449c7ce32416b3919657375b524641031
|
4
|
+
data.tar.gz: 55768b934bdbd23530761c89b9d050df9ee9d94b591436984ce9db1d1888f152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bee6fef69261e393e949d1e4604a2a5cf75425256b2807c14577c8f35dfcedf7d05c74a114a83c15402af8591cc38bdbbeb0d75f1fd2ae8c4b7800f38af1c45
|
7
|
+
data.tar.gz: 5ccb7800a8cffbfb9d540cdb4f4f318140c76fc6fb2ebfadda6ada4bb2854100c3cfdd5158a17efd4859cee13e229d7607f973608b8de5309326ee20595daa96
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
13.0.0
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -15,13 +15,23 @@ module Cucumber
|
|
15
15
|
class Envelope < ::Protobuf::Message; end
|
16
16
|
class Meta < ::Protobuf::Message
|
17
17
|
class Product < ::Protobuf::Message; end
|
18
|
+
class CI < ::Protobuf::Message
|
19
|
+
class Git < ::Protobuf::Message; end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
18
23
|
|
19
24
|
end
|
20
25
|
|
21
26
|
class Timestamp < ::Protobuf::Message; end
|
22
27
|
class Duration < ::Protobuf::Message; end
|
23
28
|
class Location < ::Protobuf::Message; end
|
24
|
-
class SourceReference < ::Protobuf::Message
|
29
|
+
class SourceReference < ::Protobuf::Message
|
30
|
+
class JavaMethod < ::Protobuf::Message; end
|
31
|
+
class JavaStackTraceElement < ::Protobuf::Message; end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
25
35
|
class Source < ::Protobuf::Message; end
|
26
36
|
class GherkinDocument < ::Protobuf::Message
|
27
37
|
class Comment < ::Protobuf::Message; end
|
@@ -176,11 +186,25 @@ module Cucumber
|
|
176
186
|
optional :string, :version, 2
|
177
187
|
end
|
178
188
|
|
189
|
+
class CI
|
190
|
+
class Git
|
191
|
+
optional :string, :remote, 1
|
192
|
+
optional :string, :revision, 2
|
193
|
+
optional :string, :branch, 3
|
194
|
+
optional :string, :tag, 4
|
195
|
+
end
|
196
|
+
|
197
|
+
optional :string, :name, 1
|
198
|
+
optional :string, :url, 2
|
199
|
+
optional ::Cucumber::Messages::Meta::CI::Git, :git, 3
|
200
|
+
end
|
201
|
+
|
179
202
|
optional :string, :protocol_version, 1
|
180
203
|
optional ::Cucumber::Messages::Meta::Product, :implementation, 2
|
181
204
|
optional ::Cucumber::Messages::Meta::Product, :runtime, 3
|
182
205
|
optional ::Cucumber::Messages::Meta::Product, :os, 4
|
183
206
|
optional ::Cucumber::Messages::Meta::Product, :cpu, 5
|
207
|
+
optional ::Cucumber::Messages::Meta::CI, :ci, 6
|
184
208
|
end
|
185
209
|
|
186
210
|
class Timestamp
|
@@ -199,7 +223,21 @@ module Cucumber
|
|
199
223
|
end
|
200
224
|
|
201
225
|
class SourceReference
|
226
|
+
class JavaMethod
|
227
|
+
optional :string, :class_name, 1
|
228
|
+
optional :string, :method_name, 2
|
229
|
+
repeated :string, :method_parameter_types, 3
|
230
|
+
end
|
231
|
+
|
232
|
+
class JavaStackTraceElement
|
233
|
+
optional :string, :class_name, 1
|
234
|
+
optional :string, :method_name, 2
|
235
|
+
optional :string, :file_name, 3
|
236
|
+
end
|
237
|
+
|
202
238
|
optional :string, :uri, 1
|
239
|
+
optional ::Cucumber::Messages::SourceReference::JavaMethod, :java_method, 3
|
240
|
+
optional ::Cucumber::Messages::SourceReference::JavaStackTraceElement, :java_stack_trace_element, 4
|
203
241
|
optional ::Cucumber::Messages::Location, :location, 2
|
204
242
|
end
|
205
243
|
|
@@ -326,6 +364,7 @@ module Cucumber
|
|
326
364
|
optional :string, :body, 4
|
327
365
|
optional :string, :media_type, 5
|
328
366
|
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding, 6
|
367
|
+
optional :string, :file_name, 7
|
329
368
|
end
|
330
369
|
|
331
370
|
class Pickle
|
@@ -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:
|
4
|
+
version: 13.0.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: 2020-
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -119,11 +119,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.7.6.2
|
122
|
+
rubygems_version: 3.1.2
|
124
123
|
signing_key:
|
125
124
|
specification_version: 4
|
126
|
-
summary: cucumber-messages-
|
125
|
+
summary: cucumber-messages-13.0.0
|
127
126
|
test_files:
|
128
127
|
- spec/cucumber/messages/time_conversion_spec.rb
|
129
128
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|