gauge-ruby 0.3.1 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a827a1d745e1a0a7156b9f3ad37b08be91cce127
4
- data.tar.gz: c5103ef16af489c0426ce789bd7a91836cd45fe0
3
+ metadata.gz: bc395bf49becd19ef0a6ae11242b0f786fb6c202
4
+ data.tar.gz: b9f9efdd182972100b6ac2cc1090683f7fe8c4eb
5
5
  SHA512:
6
- metadata.gz: 548a966e03e16389ee57f8708136da420d2fcaa2d39db5d13d89666fc45d186d79fd2690d02e9e1528a43c8e3bec2d423e8790a5ce1f641c524692d7815de21c
7
- data.tar.gz: 5f22447adbcf0c92f98202c866c873d05e1676465058794d9a837db78baa317db2229368172bc5fbab112d0441c1bcca02c5222e0b52c822122ba0f6381a0643
6
+ metadata.gz: 43bd71d97a75ef64715b51c67ae9a4e2957ecdf1287c1562effaca74c7717a8dfae69749556a9bec84425d3ba5896302fb34cbfff372b695796a251c55210817
7
+ data.tar.gz: 2164c883a31c1a26dd93fbe504667b29a28895a7b84fb1eb15990bc43b52af78e1ec311c9b579ccb289fdefcff2634af8cf776c75311b6c9e117a4ccf5fbb8fb
@@ -14,8 +14,9 @@ module Gauge
14
14
  class GetInstallationRootResponse < ::ProtocolBuffers::Message; end
15
15
  class GetAllStepsRequest < ::ProtocolBuffers::Message; end
16
16
  class GetAllStepsResponse < ::ProtocolBuffers::Message; end
17
- class GetAllSpecsRequest < ::ProtocolBuffers::Message; end
18
- class GetAllSpecsResponse < ::ProtocolBuffers::Message; end
17
+ class SpecsRequest < ::ProtocolBuffers::Message; end
18
+ class SpecsResponse < ::ProtocolBuffers::Message; end
19
+ class Error < ::ProtocolBuffers::Message; end
19
20
  class GetAllConceptsRequest < ::ProtocolBuffers::Message; end
20
21
  class GetAllConceptsResponse < ::ProtocolBuffers::Message; end
21
22
  class ConceptInfo < ::ProtocolBuffers::Message; end
@@ -44,7 +45,7 @@ module Gauge
44
45
  class GetProjectRootResponse < ::ProtocolBuffers::Message
45
46
  set_fully_qualified_name "gauge.messages.GetProjectRootResponse"
46
47
 
47
- required :string, :projectRoot, 1
48
+ optional :string, :projectRoot, 1
48
49
  end
49
50
 
50
51
  class GetInstallationRootRequest < ::ProtocolBuffers::Message
@@ -55,7 +56,7 @@ module Gauge
55
56
  class GetInstallationRootResponse < ::ProtocolBuffers::Message
56
57
  set_fully_qualified_name "gauge.messages.GetInstallationRootResponse"
57
58
 
58
- required :string, :installationRoot, 1
59
+ optional :string, :installationRoot, 1
59
60
  end
60
61
 
61
62
  class GetAllStepsRequest < ::ProtocolBuffers::Message
@@ -69,15 +70,35 @@ module Gauge
69
70
  repeated ::Gauge::Messages::ProtoStepValue, :allSteps, 1
70
71
  end
71
72
 
72
- class GetAllSpecsRequest < ::ProtocolBuffers::Message
73
- set_fully_qualified_name "gauge.messages.GetAllSpecsRequest"
73
+ class SpecsRequest < ::ProtocolBuffers::Message
74
+ set_fully_qualified_name "gauge.messages.SpecsRequest"
74
75
 
76
+ repeated :string, :specs, 1
77
+ end
78
+
79
+ class SpecsResponse < ::ProtocolBuffers::Message
80
+ # forward declarations
81
+ class SpecDetail < ::ProtocolBuffers::Message; end
82
+
83
+ set_fully_qualified_name "gauge.messages.SpecsResponse"
84
+
85
+ # nested messages
86
+ class SpecDetail < ::ProtocolBuffers::Message
87
+ set_fully_qualified_name "gauge.messages.SpecsResponse.SpecDetail"
88
+
89
+ optional ::Gauge::Messages::ProtoSpec, :spec, 1
90
+ repeated ::Gauge::Messages::Error, :parseErrors, 2
91
+ end
92
+
93
+ repeated ::Gauge::Messages::SpecsResponse::SpecDetail, :details, 1
75
94
  end
76
95
 
77
- class GetAllSpecsResponse < ::ProtocolBuffers::Message
78
- set_fully_qualified_name "gauge.messages.GetAllSpecsResponse"
96
+ class Error < ::ProtocolBuffers::Message
97
+ set_fully_qualified_name "gauge.messages.Error"
79
98
 
80
- repeated ::Gauge::Messages::ProtoSpec, :specs, 1
99
+ optional :string, :filename, 1
100
+ optional :int32, :lineNumber, 2
101
+ optional :string, :message, 3
81
102
  end
82
103
 
83
104
  class GetAllConceptsRequest < ::ProtocolBuffers::Message
@@ -94,53 +115,53 @@ module Gauge
94
115
  class ConceptInfo < ::ProtocolBuffers::Message
95
116
  set_fully_qualified_name "gauge.messages.ConceptInfo"
96
117
 
97
- required ::Gauge::Messages::ProtoStepValue, :stepValue, 1
98
- required :string, :filepath, 2
99
- required :int32, :lineNumber, 3
118
+ optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
119
+ optional :string, :filepath, 2
120
+ optional :int32, :lineNumber, 3
100
121
  end
101
122
 
102
123
  class GetStepValueRequest < ::ProtocolBuffers::Message
103
124
  set_fully_qualified_name "gauge.messages.GetStepValueRequest"
104
125
 
105
- required :string, :stepText, 1
126
+ optional :string, :stepText, 1
106
127
  optional :bool, :hasInlineTable, 2
107
128
  end
108
129
 
109
130
  class GetStepValueResponse < ::ProtocolBuffers::Message
110
131
  set_fully_qualified_name "gauge.messages.GetStepValueResponse"
111
132
 
112
- required ::Gauge::Messages::ProtoStepValue, :stepValue, 1
133
+ optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
113
134
  end
114
135
 
115
136
  class GetLanguagePluginLibPathRequest < ::ProtocolBuffers::Message
116
137
  set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathRequest"
117
138
 
118
- required :string, :language, 1
139
+ optional :string, :language, 1
119
140
  end
120
141
 
121
142
  class GetLanguagePluginLibPathResponse < ::ProtocolBuffers::Message
122
143
  set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathResponse"
123
144
 
124
- required :string, :path, 1
145
+ optional :string, :path, 1
125
146
  end
126
147
 
127
148
  class ErrorResponse < ::ProtocolBuffers::Message
128
149
  set_fully_qualified_name "gauge.messages.ErrorResponse"
129
150
 
130
- required :string, :error, 1
151
+ optional :string, :error, 1
131
152
  end
132
153
 
133
154
  class PerformRefactoringRequest < ::ProtocolBuffers::Message
134
155
  set_fully_qualified_name "gauge.messages.PerformRefactoringRequest"
135
156
 
136
- required :string, :oldStep, 1
137
- required :string, :newStep, 2
157
+ optional :string, :oldStep, 1
158
+ optional :string, :newStep, 2
138
159
  end
139
160
 
140
161
  class PerformRefactoringResponse < ::ProtocolBuffers::Message
141
162
  set_fully_qualified_name "gauge.messages.PerformRefactoringResponse"
142
163
 
143
- required :bool, :success, 1
164
+ optional :bool, :success, 1
144
165
  repeated :string, :errors, 2
145
166
  repeated :string, :filesChanged, 3
146
167
  end
@@ -148,31 +169,31 @@ module Gauge
148
169
  class ExtractConceptInfoRequest < ::ProtocolBuffers::Message
149
170
  set_fully_qualified_name "gauge.messages.ExtractConceptInfoRequest"
150
171
 
151
- required :string, :text, 1
172
+ optional :string, :text, 1
152
173
  end
153
174
 
154
175
  class ExtractConceptRequest < ::ProtocolBuffers::Message
155
176
  set_fully_qualified_name "gauge.messages.ExtractConceptRequest"
156
177
 
157
- required ::Gauge::Messages::Step, :conceptName, 1
178
+ optional ::Gauge::Messages::Step, :conceptName, 1
158
179
  repeated ::Gauge::Messages::Step, :steps, 2
159
- required :bool, :changeAcrossProject, 3
160
- required :string, :conceptFileName, 4
180
+ optional :bool, :changeAcrossProject, 3
181
+ optional :string, :conceptFileName, 4
161
182
  optional ::Gauge::Messages::TextInfo, :selectedTextInfo, 5
162
183
  end
163
184
 
164
185
  class TextInfo < ::ProtocolBuffers::Message
165
186
  set_fully_qualified_name "gauge.messages.textInfo"
166
187
 
167
- required :string, :fileName, 1
168
- required :int32, :startingLineNo, 2
169
- required :int32, :endLineNo, 3
188
+ optional :string, :fileName, 1
189
+ optional :int32, :startingLineNo, 2
190
+ optional :int32, :endLineNo, 3
170
191
  end
171
192
 
172
193
  class Step < ::ProtocolBuffers::Message
173
194
  set_fully_qualified_name "gauge.messages.step"
174
195
 
175
- required :string, :name, 1
196
+ optional :string, :name, 1
176
197
  optional :string, :table, 2
177
198
  optional :string, :paramTableName, 3
178
199
  end
@@ -180,7 +201,7 @@ module Gauge
180
201
  class ExtractConceptResponse < ::ProtocolBuffers::Message
181
202
  set_fully_qualified_name "gauge.messages.ExtractConceptResponse"
182
203
 
183
- required :bool, :isSuccess, 1
204
+ optional :bool, :isSuccess, 1
184
205
  optional :string, :error, 2
185
206
  repeated :string, :filesChanged, 3
186
207
  end
@@ -212,42 +233,42 @@ module Gauge
212
233
 
213
234
  set_fully_qualified_name "gauge.messages.APIMessage.APIMessageType"
214
235
 
215
- GetProjectRootRequest = 1
216
- GetProjectRootResponse = 2
217
- GetInstallationRootRequest = 3
218
- GetInstallationRootResponse = 4
219
- GetAllStepsRequest = 5
220
- GetAllStepResponse = 6
221
- GetAllSpecsRequest = 7
222
- GetAllSpecsResponse = 8
223
- GetStepValueRequest = 9
224
- GetStepValueResponse = 10
225
- GetLanguagePluginLibPathRequest = 11
226
- GetLanguagePluginLibPathResponse = 12
227
- ErrorResponse = 13
228
- GetAllConceptsRequest = 14
229
- GetAllConceptsResponse = 15
230
- PerformRefactoringRequest = 16
231
- PerformRefactoringResponse = 17
232
- ExtractConceptRequest = 18
233
- ExtractConceptResponse = 19
234
- FormatSpecsRequest = 20
235
- FormatSpecsResponse = 21
236
- UnsupportedApiMessageResponse = 22
236
+ GetProjectRootRequest = 0
237
+ GetProjectRootResponse = 1
238
+ GetInstallationRootRequest = 2
239
+ GetInstallationRootResponse = 3
240
+ GetAllStepsRequest = 4
241
+ GetAllStepResponse = 5
242
+ SpecsRequest = 6
243
+ SpecsResponse = 7
244
+ GetStepValueRequest = 8
245
+ GetStepValueResponse = 9
246
+ GetLanguagePluginLibPathRequest = 10
247
+ GetLanguagePluginLibPathResponse = 11
248
+ ErrorResponse = 12
249
+ GetAllConceptsRequest = 13
250
+ GetAllConceptsResponse = 14
251
+ PerformRefactoringRequest = 15
252
+ PerformRefactoringResponse = 16
253
+ ExtractConceptRequest = 17
254
+ ExtractConceptResponse = 18
255
+ FormatSpecsRequest = 19
256
+ FormatSpecsResponse = 20
257
+ UnsupportedApiMessageResponse = 21
237
258
  end
238
259
 
239
260
  set_fully_qualified_name "gauge.messages.APIMessage"
240
261
 
241
- required ::Gauge::Messages::APIMessage::APIMessageType, :messageType, 1
242
- required :int64, :messageId, 2
262
+ optional ::Gauge::Messages::APIMessage::APIMessageType, :messageType, 1
263
+ optional :int64, :messageId, 2
243
264
  optional ::Gauge::Messages::GetProjectRootRequest, :projectRootRequest, 3
244
265
  optional ::Gauge::Messages::GetProjectRootResponse, :projectRootResponse, 4
245
266
  optional ::Gauge::Messages::GetInstallationRootRequest, :installationRootRequest, 5
246
267
  optional ::Gauge::Messages::GetInstallationRootResponse, :installationRootResponse, 6
247
268
  optional ::Gauge::Messages::GetAllStepsRequest, :allStepsRequest, 7
248
269
  optional ::Gauge::Messages::GetAllStepsResponse, :allStepsResponse, 8
249
- optional ::Gauge::Messages::GetAllSpecsRequest, :allSpecsRequest, 9
250
- optional ::Gauge::Messages::GetAllSpecsResponse, :allSpecsResponse, 10
270
+ optional ::Gauge::Messages::SpecsRequest, :specsRequest, 9
271
+ optional ::Gauge::Messages::SpecsResponse, :specsResponse, 10
251
272
  optional ::Gauge::Messages::GetStepValueRequest, :stepValueRequest, 11
252
273
  optional ::Gauge::Messages::GetStepValueResponse, :stepValueResponse, 12
253
274
  optional ::Gauge::Messages::GetLanguagePluginLibPathRequest, :libPathRequest, 13
@@ -47,7 +47,7 @@ module Gauge
47
47
  class ExecutionStatusResponse < ::ProtocolBuffers::Message
48
48
  set_fully_qualified_name "gauge.messages.ExecutionStatusResponse"
49
49
 
50
- required ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
50
+ optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
51
51
  end
52
52
 
53
53
  class ExecutionStartingRequest < ::ProtocolBuffers::Message
@@ -110,32 +110,32 @@ module Gauge
110
110
  class SpecInfo < ::ProtocolBuffers::Message
111
111
  set_fully_qualified_name "gauge.messages.SpecInfo"
112
112
 
113
- required :string, :name, 1
114
- required :string, :fileName, 2
115
- required :bool, :isFailed, 3
113
+ optional :string, :name, 1
114
+ optional :string, :fileName, 2
115
+ optional :bool, :isFailed, 3
116
116
  repeated :string, :tags, 4
117
117
  end
118
118
 
119
119
  class ScenarioInfo < ::ProtocolBuffers::Message
120
120
  set_fully_qualified_name "gauge.messages.ScenarioInfo"
121
121
 
122
- required :string, :name, 1
123
- required :bool, :isFailed, 2
122
+ optional :string, :name, 1
123
+ optional :bool, :isFailed, 2
124
124
  repeated :string, :tags, 3
125
125
  end
126
126
 
127
127
  class StepInfo < ::ProtocolBuffers::Message
128
128
  set_fully_qualified_name "gauge.messages.StepInfo"
129
129
 
130
- required ::Gauge::Messages::ExecuteStepRequest, :step, 1
131
- required :bool, :isFailed, 2
130
+ optional ::Gauge::Messages::ExecuteStepRequest, :step, 1
131
+ optional :bool, :isFailed, 2
132
132
  end
133
133
 
134
134
  class ExecuteStepRequest < ::ProtocolBuffers::Message
135
135
  set_fully_qualified_name "gauge.messages.ExecuteStepRequest"
136
136
 
137
- required :string, :actualStepText, 1
138
- required :string, :parsedStepText, 2
137
+ optional :string, :actualStepText, 1
138
+ optional :string, :parsedStepText, 2
139
139
  optional :bool, :scenarioFailing, 3
140
140
  repeated ::Gauge::Messages::Parameter, :parameters, 4
141
141
  end
@@ -143,8 +143,8 @@ module Gauge
143
143
  class StepValidateRequest < ::ProtocolBuffers::Message
144
144
  set_fully_qualified_name "gauge.messages.StepValidateRequest"
145
145
 
146
- required :string, :stepText, 1
147
- required :int32, :numberOfParameters, 2
146
+ optional :string, :stepText, 1
147
+ optional :int32, :numberOfParameters, 2
148
148
  end
149
149
 
150
150
  class StepValidateResponse < ::ProtocolBuffers::Message
@@ -162,7 +162,7 @@ module Gauge
162
162
 
163
163
  set_fully_qualified_name "gauge.messages.StepValidateResponse"
164
164
 
165
- required :bool, :isValid, 1
165
+ optional :bool, :isValid, 1
166
166
  optional :string, :errorMessage, 2
167
167
  optional ::Gauge::Messages::StepValidateResponse::ErrorType, :errorType, 3
168
168
  end
@@ -170,7 +170,7 @@ module Gauge
170
170
  class SuiteExecutionResult < ::ProtocolBuffers::Message
171
171
  set_fully_qualified_name "gauge.messages.SuiteExecutionResult"
172
172
 
173
- required ::Gauge::Messages::ProtoSuiteResult, :suiteResult, 1
173
+ optional ::Gauge::Messages::ProtoSuiteResult, :suiteResult, 1
174
174
  end
175
175
 
176
176
  class StepNamesRequest < ::ProtocolBuffers::Message
@@ -202,22 +202,22 @@ module Gauge
202
202
  class ParameterPosition < ::ProtocolBuffers::Message
203
203
  set_fully_qualified_name "gauge.messages.ParameterPosition"
204
204
 
205
- required :int32, :oldPosition, 1
206
- required :int32, :newPosition, 2
205
+ optional :int32, :oldPosition, 1
206
+ optional :int32, :newPosition, 2
207
207
  end
208
208
 
209
209
  class RefactorRequest < ::ProtocolBuffers::Message
210
210
  set_fully_qualified_name "gauge.messages.RefactorRequest"
211
211
 
212
- required ::Gauge::Messages::ProtoStepValue, :oldStepValue, 1
213
- required ::Gauge::Messages::ProtoStepValue, :newStepValue, 2
212
+ optional ::Gauge::Messages::ProtoStepValue, :oldStepValue, 1
213
+ optional ::Gauge::Messages::ProtoStepValue, :newStepValue, 2
214
214
  repeated ::Gauge::Messages::ParameterPosition, :paramPositions, 3
215
215
  end
216
216
 
217
217
  class RefactorResponse < ::ProtocolBuffers::Message
218
218
  set_fully_qualified_name "gauge.messages.RefactorResponse"
219
219
 
220
- required :bool, :success, 1
220
+ optional :bool, :success, 1
221
221
  optional :string, :error, 2
222
222
  repeated :string, :filesChanged, 3
223
223
  end
@@ -225,15 +225,15 @@ module Gauge
225
225
  class StepNameRequest < ::ProtocolBuffers::Message
226
226
  set_fully_qualified_name "gauge.messages.StepNameRequest"
227
227
 
228
- required :string, :stepValue, 1
228
+ optional :string, :stepValue, 1
229
229
  end
230
230
 
231
231
  class StepNameResponse < ::ProtocolBuffers::Message
232
232
  set_fully_qualified_name "gauge.messages.StepNameResponse"
233
233
 
234
- required :bool, :isStepPresent, 1
234
+ optional :bool, :isStepPresent, 1
235
235
  repeated :string, :stepName, 2
236
- required :bool, :hasAlias, 3
236
+ optional :bool, :hasAlias, 3
237
237
  end
238
238
 
239
239
  class UnsupportedMessageResponse < ::ProtocolBuffers::Message
@@ -279,8 +279,8 @@ module Gauge
279
279
 
280
280
  set_fully_qualified_name "gauge.messages.Message"
281
281
 
282
- required ::Gauge::Messages::Message::MessageType, :messageType, 1
283
- required :int64, :messageId, 2
282
+ optional ::Gauge::Messages::Message::MessageType, :messageType, 1
283
+ optional :int64, :messageId, 2
284
284
  optional ::Gauge::Messages::ExecutionStartingRequest, :executionStartingRequest, 3
285
285
  optional ::Gauge::Messages::SpecExecutionStartingRequest, :specExecutionStartingRequest, 4
286
286
  optional ::Gauge::Messages::SpecExecutionEndingRequest, :specExecutionEndingRequest, 5
@@ -37,7 +37,7 @@ module Gauge
37
37
  end
38
38
 
39
39
  def handle_failure(message, exception, execution_time, recoverable)
40
- execution_status_response =
40
+ execution_status_response =
41
41
  Messages::ExecutionStatusResponse.new(
42
42
  :executionResult => Messages::ProtoExecutionResult.new(:failed => true,
43
43
  :recoverableError => recoverable,
@@ -50,7 +50,7 @@ module Gauge
50
50
  end
51
51
 
52
52
  def screenshot_bytes
53
- return nil if (ENV['screenshot_enabled'] || "").downcase == "false" || which("gauge_screenshot").nil?
53
+ return nil if (ENV['screenshot_on_failure'] || "").downcase == "false" || which("gauge_screenshot").nil?
54
54
  begin
55
55
  Configuration.instance.screengrabber.call
56
56
  rescue Exception => e
@@ -89,4 +89,4 @@ module Gauge
89
89
  end
90
90
  end
91
91
  end
92
- end
92
+ end
@@ -26,15 +26,27 @@ module Gauge
26
26
  class ProtoSpecResult < ::ProtocolBuffers::Message; end
27
27
  class ProtoStepValue < ::ProtocolBuffers::Message; end
28
28
 
29
+ # enums
30
+ module ExecutionStatus
31
+ include ::ProtocolBuffers::Enum
32
+
33
+ set_fully_qualified_name "gauge.messages.ExecutionStatus"
34
+
35
+ NOTEXECUTED = 0
36
+ PASSED = 1
37
+ FAILED = 2
38
+ SKIPPED = 3
39
+ end
40
+
29
41
  class ProtoSpec < ::ProtocolBuffers::Message
30
42
  set_fully_qualified_name "gauge.messages.ProtoSpec"
31
43
 
32
- required :string, :specHeading, 1
44
+ optional :string, :specHeading, 1
33
45
  repeated ::Gauge::Messages::ProtoItem, :items, 2
34
- required :bool, :isTableDriven, 3
46
+ optional :bool, :isTableDriven, 3
35
47
  optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 4
36
48
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 5
37
- required :string, :fileName, 6
49
+ optional :string, :fileName, 6
38
50
  repeated :string, :tags, 7
39
51
  end
40
52
 
@@ -47,18 +59,18 @@ module Gauge
47
59
 
48
60
  set_fully_qualified_name "gauge.messages.ProtoItem.ItemType"
49
61
 
50
- Step = 1
51
- Comment = 2
52
- Concept = 3
53
- Scenario = 4
54
- TableDrivenScenario = 5
55
- Table = 6
56
- Tags = 7
62
+ Step = 0
63
+ Comment = 1
64
+ Concept = 2
65
+ Scenario = 3
66
+ TableDrivenScenario = 4
67
+ Table = 5
68
+ Tags = 6
57
69
  end
58
70
 
59
71
  set_fully_qualified_name "gauge.messages.ProtoItem"
60
72
 
61
- required ::Gauge::Messages::ProtoItem::ItemType, :itemType, 1
73
+ optional ::Gauge::Messages::ProtoItem::ItemType, :itemType, 1
62
74
  optional ::Gauge::Messages::ProtoStep, :step, 2
63
75
  optional ::Gauge::Messages::ProtoConcept, :concept, 3
64
76
  optional ::Gauge::Messages::ProtoScenario, :scenario, 4
@@ -71,39 +83,41 @@ module Gauge
71
83
  class ProtoScenario < ::ProtocolBuffers::Message
72
84
  set_fully_qualified_name "gauge.messages.ProtoScenario"
73
85
 
74
- required :string, :scenarioHeading, 1
75
- required :bool, :failed, 2
86
+ optional :string, :scenarioHeading, 1
87
+ optional :bool, :failed, 2
76
88
  repeated ::Gauge::Messages::ProtoItem, :contexts, 3
77
89
  repeated ::Gauge::Messages::ProtoItem, :scenarioItems, 4
78
90
  optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 5
79
91
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 6
80
92
  repeated :string, :tags, 7
81
93
  optional :int64, :executionTime, 8
82
- required :bool, :skipped, 9
94
+ optional :bool, :skipped, 9
83
95
  repeated :string, :skipErrors, 10
84
96
  optional :string, :ID, 11
85
97
  repeated ::Gauge::Messages::ProtoItem, :tearDownSteps, 12
86
98
  optional ::Gauge::Messages::Span, :span, 13
99
+ optional ::Gauge::Messages::ExecutionStatus, :executionStatus, 14
87
100
  end
88
101
 
89
102
  class Span < ::ProtocolBuffers::Message
90
103
  set_fully_qualified_name "gauge.messages.Span"
91
104
 
92
- required :int64, :start, 1
93
- required :int64, :end, 2
105
+ optional :int64, :start, 1
106
+ optional :int64, :end, 2
94
107
  end
95
108
 
96
109
  class ProtoTableDrivenScenario < ::ProtocolBuffers::Message
97
110
  set_fully_qualified_name "gauge.messages.ProtoTableDrivenScenario"
98
111
 
99
- repeated ::Gauge::Messages::ProtoScenario, :scenarios, 1
112
+ optional ::Gauge::Messages::ProtoScenario, :scenario, 1
113
+ optional :int32, :tableRowIndex, 2
100
114
  end
101
115
 
102
116
  class ProtoStep < ::ProtocolBuffers::Message
103
117
  set_fully_qualified_name "gauge.messages.ProtoStep"
104
118
 
105
- required :string, :actualText, 1
106
- required :string, :parsedText, 2
119
+ optional :string, :actualText, 1
120
+ optional :string, :parsedText, 2
107
121
  repeated ::Gauge::Messages::Fragment, :fragments, 3
108
122
  optional ::Gauge::Messages::ProtoStepExecutionResult, :stepExecutionResult, 4
109
123
  end
@@ -111,7 +125,7 @@ module Gauge
111
125
  class ProtoConcept < ::ProtocolBuffers::Message
112
126
  set_fully_qualified_name "gauge.messages.ProtoConcept"
113
127
 
114
- required ::Gauge::Messages::ProtoStep, :conceptStep, 1
128
+ optional ::Gauge::Messages::ProtoStep, :conceptStep, 1
115
129
  repeated ::Gauge::Messages::ProtoItem, :steps, 2
116
130
  optional ::Gauge::Messages::ProtoStepExecutionResult, :conceptExecutionResult, 3
117
131
  end
@@ -131,13 +145,13 @@ module Gauge
131
145
 
132
146
  set_fully_qualified_name "gauge.messages.Fragment.FragmentType"
133
147
 
134
- Text = 1
135
- Parameter = 2
148
+ Text = 0
149
+ Parameter = 1
136
150
  end
137
151
 
138
152
  set_fully_qualified_name "gauge.messages.Fragment"
139
153
 
140
- required ::Gauge::Messages::Fragment::FragmentType, :fragmentType, 1
154
+ optional ::Gauge::Messages::Fragment::FragmentType, :fragmentType, 1
141
155
  optional :string, :text, 2
142
156
  optional ::Gauge::Messages::Parameter, :parameter, 3
143
157
  end
@@ -151,16 +165,16 @@ module Gauge
151
165
 
152
166
  set_fully_qualified_name "gauge.messages.Parameter.ParameterType"
153
167
 
154
- Static = 1
155
- Dynamic = 2
156
- Special_String = 3
157
- Special_Table = 4
158
- Table = 5
168
+ Static = 0
169
+ Dynamic = 1
170
+ Special_String = 2
171
+ Special_Table = 3
172
+ Table = 4
159
173
  end
160
174
 
161
175
  set_fully_qualified_name "gauge.messages.Parameter"
162
176
 
163
- required ::Gauge::Messages::Parameter::ParameterType, :parameterType, 1
177
+ optional ::Gauge::Messages::Parameter::ParameterType, :parameterType, 1
164
178
  optional :string, :value, 2
165
179
  optional :string, :name, 3
166
180
  optional ::Gauge::Messages::ProtoTable, :table, 4
@@ -169,13 +183,13 @@ module Gauge
169
183
  class ProtoComment < ::ProtocolBuffers::Message
170
184
  set_fully_qualified_name "gauge.messages.ProtoComment"
171
185
 
172
- required :string, :text, 1
186
+ optional :string, :text, 1
173
187
  end
174
188
 
175
189
  class ProtoTable < ::ProtocolBuffers::Message
176
190
  set_fully_qualified_name "gauge.messages.ProtoTable"
177
191
 
178
- required ::Gauge::Messages::ProtoTableRow, :headers, 1
192
+ optional ::Gauge::Messages::ProtoTableRow, :headers, 1
179
193
  repeated ::Gauge::Messages::ProtoTableRow, :rows, 2
180
194
  end
181
195
 
@@ -191,7 +205,7 @@ module Gauge
191
205
  optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
192
206
  optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
193
207
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
194
- required :bool, :skipped, 4
208
+ optional :bool, :skipped, 4
195
209
  optional :string, :skippedReason, 5
196
210
  end
197
211
 
@@ -204,27 +218,27 @@ module Gauge
204
218
 
205
219
  set_fully_qualified_name "gauge.messages.ProtoExecutionResult.ErrorType"
206
220
 
207
- ASSERTION = 1
208
- VERIFICATION = 2
221
+ ASSERTION = 0
222
+ VERIFICATION = 1
209
223
  end
210
224
 
211
225
  set_fully_qualified_name "gauge.messages.ProtoExecutionResult"
212
226
 
213
- required :bool, :failed, 1
227
+ optional :bool, :failed, 1
214
228
  optional :bool, :recoverableError, 2
215
229
  optional :string, :errorMessage, 3
216
230
  optional :string, :stackTrace, 4
217
231
  optional :bytes, :screenShot, 5
218
- required :int64, :executionTime, 6
232
+ optional :int64, :executionTime, 6
219
233
  repeated :string, :message, 7
220
- optional ::Gauge::Messages::ProtoExecutionResult::ErrorType, :errorType, 8, :default => ::Gauge::Messages::ProtoExecutionResult::ErrorType::ASSERTION
234
+ optional ::Gauge::Messages::ProtoExecutionResult::ErrorType, :errorType, 8
221
235
  end
222
236
 
223
237
  class ProtoHookFailure < ::ProtocolBuffers::Message
224
238
  set_fully_qualified_name "gauge.messages.ProtoHookFailure"
225
239
 
226
- required :string, :stackTrace, 1
227
- required :string, :errorMessage, 2
240
+ optional :string, :stackTrace, 1
241
+ optional :string, :errorMessage, 2
228
242
  optional :bytes, :screenShot, 3
229
243
  end
230
244
 
@@ -234,35 +248,36 @@ module Gauge
234
248
  repeated ::Gauge::Messages::ProtoSpecResult, :specResults, 1
235
249
  optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
236
250
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
237
- required :bool, :failed, 4
238
- required :int32, :specsFailedCount, 5
251
+ optional :bool, :failed, 4
252
+ optional :int32, :specsFailedCount, 5
239
253
  optional :int64, :executionTime, 6
240
- required :float, :successRate, 7
254
+ optional :float, :successRate, 7
241
255
  optional :string, :environment, 8
242
256
  optional :string, :tags, 9
243
- required :string, :projectName, 10
244
- required :string, :timestamp, 11
245
- required :int32, :specsSkippedCount, 12
257
+ optional :string, :projectName, 10
258
+ optional :string, :timestamp, 11
259
+ optional :int32, :specsSkippedCount, 12
246
260
  end
247
261
 
248
262
  class ProtoSpecResult < ::ProtocolBuffers::Message
249
263
  set_fully_qualified_name "gauge.messages.ProtoSpecResult"
250
264
 
251
- required ::Gauge::Messages::ProtoSpec, :protoSpec, 1
252
- required :int32, :scenarioCount, 2
253
- required :int32, :scenarioFailedCount, 3
254
- required :bool, :failed, 4
265
+ optional ::Gauge::Messages::ProtoSpec, :protoSpec, 1
266
+ optional :int32, :scenarioCount, 2
267
+ optional :int32, :scenarioFailedCount, 3
268
+ optional :bool, :failed, 4
255
269
  repeated :int32, :failedDataTableRows, 5
256
270
  optional :int64, :executionTime, 6
257
- required :bool, :skipped, 7
258
- required :int32, :scenarioSkippedCount, 9
271
+ optional :bool, :skipped, 7
272
+ optional :int32, :scenarioSkippedCount, 9
273
+ repeated :int32, :skippedDataTableRows, 10
259
274
  end
260
275
 
261
276
  class ProtoStepValue < ::ProtocolBuffers::Message
262
277
  set_fully_qualified_name "gauge.messages.ProtoStepValue"
263
278
 
264
- required :string, :stepValue, 1
265
- required :string, :parameterizedStepValue, 2
279
+ optional :string, :stepValue, 1
280
+ optional :string, :parameterizedStepValue, 2
266
281
  repeated :string, :parameters, 3
267
282
  end
268
283
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gauge-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gauge Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-protocol-buffers
@@ -122,4 +122,3 @@ signing_key:
122
122
  specification_version: 4
123
123
  summary: Ruby support for Gauge
124
124
  test_files: []
125
- has_rdoc: yard