gauge-ruby 0.0.7 → 0.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
  SHA1:
3
- metadata.gz: 2accac791a13e74c5e8ac108743e3977d9064853
4
- data.tar.gz: 120a793e7aa30e82650bf49fb03d664add3c6a28
3
+ metadata.gz: b5b6f5b18a2b369e0b492a75923d245596b18306
4
+ data.tar.gz: cabd011e6c236d1f115af34eae8dc3453c479d60
5
5
  SHA512:
6
- metadata.gz: 287d7ad4bbff790052eb23c7d1e1bb0dd75043d9ef8c35f34235c0d6f1182fa2790390a5cb585c380819bb52f809494df75909318e2fe613d417705a19095229
7
- data.tar.gz: 549a7e70786c46a04104c48fa417000fd9b87ffc004aa53761f93edd7a47033af1af73a2d48f98ab1d6a12ce62653d0d7881f09167a3ceb9dea5128154784206
6
+ metadata.gz: 6fe8afc2f36e974eeaf12fdd305ec591c02ace40853249760f044ced878a8891d6018d97d85ccc567a29ce56cde47edc89fddccfbb3ff41c7dcab32e378edeee
7
+ data.tar.gz: 51e5e0e50c0154bc943b55b6bac048e7bdc698163b10f956a07debf4073103260a339aba32f5ee51b5c554042234c7069cbe18e69600a3a006fea89ebd28fdc0
data/lib/api.pb.rb CHANGED
@@ -1,22 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- # Copyright 2015 ThoughtWorks, Inc.
4
-
5
- # This file is part of Gauge-Ruby.
6
-
7
- # Gauge-Ruby is free software: you can redistribute it and/or modify
8
- # it under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation, either version 3 of the License, or
10
- # (at your option) any later version.
11
-
12
- # Gauge-Ruby is distributed in the hope that it will be useful,
13
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- # GNU General Public License for more details.
16
-
17
- # You should have received a copy of the GNU General Public License
18
- # along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
19
-
20
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
21
3
 
22
4
  require 'protocol_buffers'
@@ -24,7 +6,6 @@ require 'protocol_buffers'
24
6
  begin; require 'spec.pb'; rescue LoadError; end
25
7
 
26
8
  module Gauge
27
- # @api private
28
9
  module Messages
29
10
  # forward declarations
30
11
  class GetProjectRootRequest < ::ProtocolBuffers::Message; end
@@ -45,6 +26,14 @@ module Gauge
45
26
  class ErrorResponse < ::ProtocolBuffers::Message; end
46
27
  class PerformRefactoringRequest < ::ProtocolBuffers::Message; end
47
28
  class PerformRefactoringResponse < ::ProtocolBuffers::Message; end
29
+ class ExtractConceptInfoRequest < ::ProtocolBuffers::Message; end
30
+ class ExtractConceptRequest < ::ProtocolBuffers::Message; end
31
+ class TextInfo < ::ProtocolBuffers::Message; end
32
+ class Step < ::ProtocolBuffers::Message; end
33
+ class ExtractConceptResponse < ::ProtocolBuffers::Message; end
34
+ class FormatSpecsRequest < ::ProtocolBuffers::Message; end
35
+ class FormatSpecsResponse < ::ProtocolBuffers::Message; end
36
+ class UnsupportedApiMessageResponse < ::ProtocolBuffers::Message; end
48
37
  class APIMessage < ::ProtocolBuffers::Message; end
49
38
 
50
39
  class GetProjectRootRequest < ::ProtocolBuffers::Message
@@ -156,6 +145,64 @@ module Gauge
156
145
  repeated :string, :filesChanged, 3
157
146
  end
158
147
 
148
+ class ExtractConceptInfoRequest < ::ProtocolBuffers::Message
149
+ set_fully_qualified_name "gauge.messages.ExtractConceptInfoRequest"
150
+
151
+ required :string, :text, 1
152
+ end
153
+
154
+ class ExtractConceptRequest < ::ProtocolBuffers::Message
155
+ set_fully_qualified_name "gauge.messages.ExtractConceptRequest"
156
+
157
+ required ::Gauge::Messages::Step, :conceptName, 1
158
+ repeated ::Gauge::Messages::Step, :steps, 2
159
+ required :bool, :changeAcrossProject, 3
160
+ required :string, :conceptFileName, 4
161
+ optional ::Gauge::Messages::TextInfo, :selectedTextInfo, 5
162
+ end
163
+
164
+ class TextInfo < ::ProtocolBuffers::Message
165
+ set_fully_qualified_name "gauge.messages.textInfo"
166
+
167
+ required :string, :fileName, 1
168
+ required :int32, :startingLineNo, 2
169
+ required :int32, :endLineNo, 3
170
+ end
171
+
172
+ class Step < ::ProtocolBuffers::Message
173
+ set_fully_qualified_name "gauge.messages.step"
174
+
175
+ required :string, :name, 1
176
+ optional :string, :table, 2
177
+ optional :string, :paramTableName, 3
178
+ end
179
+
180
+ class ExtractConceptResponse < ::ProtocolBuffers::Message
181
+ set_fully_qualified_name "gauge.messages.ExtractConceptResponse"
182
+
183
+ required :bool, :isSuccess, 1
184
+ optional :string, :error, 2
185
+ repeated :string, :filesChanged, 3
186
+ end
187
+
188
+ class FormatSpecsRequest < ::ProtocolBuffers::Message
189
+ set_fully_qualified_name "gauge.messages.FormatSpecsRequest"
190
+
191
+ repeated :string, :specs, 1
192
+ end
193
+
194
+ class FormatSpecsResponse < ::ProtocolBuffers::Message
195
+ set_fully_qualified_name "gauge.messages.FormatSpecsResponse"
196
+
197
+ repeated :string, :errors, 1
198
+ repeated :string, :warnings, 2
199
+ end
200
+
201
+ class UnsupportedApiMessageResponse < ::ProtocolBuffers::Message
202
+ set_fully_qualified_name "gauge.messages.UnsupportedApiMessageResponse"
203
+
204
+ end
205
+
159
206
  class APIMessage < ::ProtocolBuffers::Message
160
207
  # forward declarations
161
208
 
@@ -182,6 +229,11 @@ module Gauge
182
229
  GetAllConceptsResponse = 15
183
230
  PerformRefactoringRequest = 16
184
231
  PerformRefactoringResponse = 17
232
+ ExtractConceptRequest = 18
233
+ ExtractConceptResponse = 19
234
+ FormatSpecsRequest = 20
235
+ FormatSpecsResponse = 21
236
+ UnsupportedApiMessageResponse = 22
185
237
  end
186
238
 
187
239
  set_fully_qualified_name "gauge.messages.APIMessage"
@@ -205,6 +257,11 @@ module Gauge
205
257
  optional ::Gauge::Messages::GetAllConceptsResponse, :allConceptsResponse, 17
206
258
  optional ::Gauge::Messages::PerformRefactoringRequest, :performRefactoringRequest, 18
207
259
  optional ::Gauge::Messages::PerformRefactoringResponse, :performRefactoringResponse, 19
260
+ optional ::Gauge::Messages::ExtractConceptRequest, :extractConceptRequest, 20
261
+ optional ::Gauge::Messages::ExtractConceptResponse, :extractConceptResponse, 21
262
+ optional ::Gauge::Messages::FormatSpecsRequest, :formatSpecsRequest, 22
263
+ optional ::Gauge::Messages::FormatSpecsResponse, :formatSpecsResponse, 23
264
+ optional ::Gauge::Messages::UnsupportedApiMessageResponse, :unsupportedApiMessageResponse, 24
208
265
  end
209
266
 
210
267
  end
data/lib/messages.pb.rb CHANGED
@@ -1,22 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- # Copyright 2015 ThoughtWorks, Inc.
4
-
5
- # This file is part of Gauge-Ruby.
6
-
7
- # Gauge-Ruby is free software: you can redistribute it and/or modify
8
- # it under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation, either version 3 of the License, or
10
- # (at your option) any later version.
11
-
12
- # Gauge-Ruby is distributed in the hope that it will be useful,
13
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- # GNU General Public License for more details.
16
-
17
- # You should have received a copy of the GNU General Public License
18
- # along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
19
-
20
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
21
3
 
22
4
  require 'protocol_buffers'
@@ -24,12 +6,12 @@ require 'protocol_buffers'
24
6
  begin; require 'spec.pb'; rescue LoadError; end
25
7
 
26
8
  module Gauge
27
- # @api private
28
9
  module Messages
29
10
  # forward declarations
30
11
  class KillProcessRequest < ::ProtocolBuffers::Message; end
31
12
  class ExecutionStatusResponse < ::ProtocolBuffers::Message; end
32
13
  class ExecutionStartingRequest < ::ProtocolBuffers::Message; end
14
+ class ExecutionEndingRequest < ::ProtocolBuffers::Message; end
33
15
  class SpecExecutionStartingRequest < ::ProtocolBuffers::Message; end
34
16
  class SpecExecutionEndingRequest < ::ProtocolBuffers::Message; end
35
17
  class ScenarioExecutionStartingRequest < ::ProtocolBuffers::Message; end
@@ -43,7 +25,6 @@ module Gauge
43
25
  class ExecuteStepRequest < ::ProtocolBuffers::Message; end
44
26
  class StepValidateRequest < ::ProtocolBuffers::Message; end
45
27
  class StepValidateResponse < ::ProtocolBuffers::Message; end
46
- class ExecutionEndingRequest < ::ProtocolBuffers::Message; end
47
28
  class SuiteExecutionResult < ::ProtocolBuffers::Message; end
48
29
  class StepNamesRequest < ::ProtocolBuffers::Message; end
49
30
  class StepNamesResponse < ::ProtocolBuffers::Message; end
@@ -55,6 +36,7 @@ module Gauge
55
36
  class RefactorResponse < ::ProtocolBuffers::Message; end
56
37
  class StepNameRequest < ::ProtocolBuffers::Message; end
57
38
  class StepNameResponse < ::ProtocolBuffers::Message; end
39
+ class UnsupportedMessageResponse < ::ProtocolBuffers::Message; end
58
40
  class Message < ::ProtocolBuffers::Message; end
59
41
 
60
42
  class KillProcessRequest < ::ProtocolBuffers::Message
@@ -74,6 +56,12 @@ module Gauge
74
56
  optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
75
57
  end
76
58
 
59
+ class ExecutionEndingRequest < ::ProtocolBuffers::Message
60
+ set_fully_qualified_name "gauge.messages.ExecutionEndingRequest"
61
+
62
+ optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
63
+ end
64
+
77
65
  class SpecExecutionStartingRequest < ::ProtocolBuffers::Message
78
66
  set_fully_qualified_name "gauge.messages.SpecExecutionStartingRequest"
79
67
 
@@ -160,16 +148,22 @@ module Gauge
160
148
  end
161
149
 
162
150
  class StepValidateResponse < ::ProtocolBuffers::Message
151
+ # forward declarations
152
+
153
+ # enums
154
+ module ErrorType
155
+ include ::ProtocolBuffers::Enum
156
+
157
+ set_fully_qualified_name "gauge.messages.StepValidateResponse.ErrorType"
158
+
159
+ STEP_IMPLEMENTATION_NOT_FOUND = 0
160
+ end
161
+
163
162
  set_fully_qualified_name "gauge.messages.StepValidateResponse"
164
163
 
165
164
  required :bool, :isValid, 1
166
165
  optional :string, :errorMessage, 2
167
- end
168
-
169
- class ExecutionEndingRequest < ::ProtocolBuffers::Message
170
- set_fully_qualified_name "gauge.messages.ExecutionEndingRequest"
171
-
172
- optional ::Gauge::Messages::ExecutionInfo, :currentExecutionInfo, 1
166
+ optional ::Gauge::Messages::StepValidateResponse::ErrorType, :errorType, 3
173
167
  end
174
168
 
175
169
  class SuiteExecutionResult < ::ProtocolBuffers::Message
@@ -241,6 +235,12 @@ module Gauge
241
235
  required :bool, :hasAlias, 3
242
236
  end
243
237
 
238
+ class UnsupportedMessageResponse < ::ProtocolBuffers::Message
239
+ set_fully_qualified_name "gauge.messages.UnsupportedMessageResponse"
240
+
241
+ optional :string, :message, 1
242
+ end
243
+
244
244
  class Message < ::ProtocolBuffers::Message
245
245
  # forward declarations
246
246
 
@@ -273,6 +273,7 @@ module Gauge
273
273
  StepNameResponse = 20
274
274
  RefactorRequest = 21
275
275
  RefactorResponse = 22
276
+ UnsupportedMessageResponse = 23
276
277
  end
277
278
 
278
279
  set_fully_qualified_name "gauge.messages.Message"
@@ -302,6 +303,7 @@ module Gauge
302
303
  optional ::Gauge::Messages::StepNameResponse, :stepNameResponse, 23
303
304
  optional ::Gauge::Messages::RefactorRequest, :refactorRequest, 24
304
305
  optional ::Gauge::Messages::RefactorResponse, :refactorResponse, 25
306
+ optional ::Gauge::Messages::UnsupportedMessageResponse, :unsupportedMessageResponse, 26
305
307
  end
306
308
 
307
309
  end
@@ -21,7 +21,7 @@ module Gauge
21
21
  step_validate_request = message.stepValidateRequest
22
22
  is_valid = MethodCache.valid_step?(step_validate_request.stepText)
23
23
  step_validate_response = Messages::StepValidateResponse.new(:isValid => is_valid,
24
- :errorMessage => is_valid ? "" : "Step implementation not found")
24
+ :errorMessage => is_valid ? "" : "Step implementation not found", :errorType => Messages::StepValidateResponse::ErrorType::STEP_IMPLEMENTATION_NOT_FOUND)
25
25
  Messages::Message.new(:messageType => Messages::Message::MessageType::StepValidateResponse,
26
26
  :messageId => message.messageId,
27
27
  :stepValidateResponse => step_validate_response)
data/lib/spec.pb.rb CHANGED
@@ -1,28 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- # Copyright 2015 ThoughtWorks, Inc.
4
-
5
- # This file is part of Gauge-Ruby.
6
-
7
- # Gauge-Ruby is free software: you can redistribute it and/or modify
8
- # it under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation, either version 3 of the License, or
10
- # (at your option) any later version.
11
-
12
- # Gauge-Ruby is distributed in the hope that it will be useful,
13
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- # GNU General Public License for more details.
16
-
17
- # You should have received a copy of the GNU General Public License
18
- # along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
19
-
20
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
21
3
 
22
4
  require 'protocol_buffers'
23
5
 
24
6
  module Gauge
25
- # @api private
26
7
  module Messages
27
8
  # forward declarations
28
9
  class ProtoSpec < ::ProtocolBuffers::Message; end
@@ -71,6 +52,7 @@ module Gauge
71
52
  Scenario = 4
72
53
  TableDrivenScenario = 5
73
54
  Table = 6
55
+ Tags = 7
74
56
  end
75
57
 
76
58
  set_fully_qualified_name "gauge.messages.ProtoItem"
@@ -82,6 +64,7 @@ module Gauge
82
64
  optional ::Gauge::Messages::ProtoTableDrivenScenario, :tableDrivenScenario, 5
83
65
  optional ::Gauge::Messages::ProtoComment, :comment, 6
84
66
  optional ::Gauge::Messages::ProtoTable, :table, 7
67
+ optional ::Gauge::Messages::ProtoTags, :tags, 8
85
68
  end
86
69
 
87
70
  class ProtoScenario < ::ProtocolBuffers::Message
@@ -95,6 +78,8 @@ module Gauge
95
78
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 6
96
79
  repeated :string, :tags, 7
97
80
  optional :int64, :executionTime, 8
81
+ required :bool, :skipped, 9
82
+ repeated :string, :skipErrors, 10
98
83
  end
99
84
 
100
85
  class ProtoTableDrivenScenario < ::ProtocolBuffers::Message
@@ -192,9 +177,11 @@ module Gauge
192
177
  class ProtoStepExecutionResult < ::ProtocolBuffers::Message
193
178
  set_fully_qualified_name "gauge.messages.ProtoStepExecutionResult"
194
179
 
195
- required ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
180
+ optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
196
181
  optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
197
182
  optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
183
+ required :bool, :skipped, 4
184
+ optional :string, :skippedReason, 5
198
185
  end
199
186
 
200
187
  class ProtoExecutionResult < ::ProtocolBuffers::Message
@@ -206,6 +193,7 @@ module Gauge
206
193
  optional :string, :stackTrace, 4
207
194
  optional :bytes, :screenShot, 5
208
195
  required :int64, :executionTime, 6
196
+ repeated :string, :message, 7
209
197
  end
210
198
 
211
199
  class ProtoHookFailure < ::ProtocolBuffers::Message
@@ -226,6 +214,11 @@ module Gauge
226
214
  required :int32, :specsFailedCount, 5
227
215
  optional :int64, :executionTime, 6
228
216
  required :float, :successRate, 7
217
+ optional :string, :environment, 8
218
+ optional :string, :tags, 9
219
+ required :string, :projectName, 10
220
+ required :string, :timestamp, 11
221
+ required :int32, :specsSkippedCount, 12
229
222
  end
230
223
 
231
224
  class ProtoSpecResult < ::ProtocolBuffers::Message
@@ -237,6 +230,8 @@ module Gauge
237
230
  required :bool, :failed, 4
238
231
  repeated :int32, :failedDataTableRows, 5
239
232
  optional :int64, :executionTime, 6
233
+ required :bool, :skipped, 7
234
+ required :int32, :scenarioSkippedCount, 9
240
235
  end
241
236
 
242
237
  class ProtoStepValue < ::ProtocolBuffers::Message
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.0.7
4
+ version: 0.1.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: 2015-05-18 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-protocol-buffers
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: parser
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: method_source
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.8.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.8.2
69
69
  description: Adds Ruby support into Gauge tests
@@ -105,19 +105,18 @@ require_paths:
105
105
  - lib
106
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ">="
113
+ - - '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.4.6
118
+ rubygems_version: 2.0.14
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Ruby support for Gauge
122
122
  test_files: []
123
- has_rdoc: yard