gauge-ruby 0.4.3 → 0.5.4
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 +5 -5
- data/lib/code_parser.rb +52 -41
- data/lib/configuration.rb +37 -26
- data/lib/datastore.rb +6 -18
- data/lib/executor.rb +29 -36
- data/lib/gauge.rb +6 -19
- data/lib/gauge_messages.rb +12 -18
- data/lib/gauge_runtime.rb +14 -66
- data/lib/gauge_screenshot.rb +52 -0
- data/lib/log.rb +34 -28
- data/lib/messages_pb.rb +331 -0
- data/lib/method_cache.rb +21 -18
- data/lib/processors/cache_file_processor.rb +20 -31
- data/lib/processors/datastore_init_processor.rb +23 -30
- data/lib/processors/execute_step_request_processor.rb +11 -23
- data/lib/processors/execution_handler.rb +33 -33
- data/lib/processors/execution_hook_processors.rb +23 -36
- data/lib/processors/implementation_file_list_processor.rb +8 -21
- data/lib/processors/implementation_glob_pattern_processor.rb +15 -0
- data/lib/processors/kill_request_processor.rb +5 -17
- data/lib/processors/refactor_step_request_processor.rb +16 -28
- data/lib/processors/step_name_request_processor.rb +15 -30
- data/lib/processors/step_names_request_processor.rb +8 -22
- data/lib/processors/step_positions_request_processor.rb +9 -22
- data/lib/processors/step_validation_request_processor.rb +23 -37
- data/lib/processors/stub_implementation_processor.rb +10 -22
- data/lib/service_handlers.rb +110 -0
- data/lib/services_pb.rb +15 -0
- data/lib/services_services_pb.rb +165 -0
- data/lib/spec_pb.rb +272 -0
- data/lib/static_loader.rb +10 -22
- data/lib/table.rb +5 -17
- data/lib/util.rb +31 -44
- metadata +80 -21
- data/lib/api.pb.rb +0 -273
- data/lib/connector.rb +0 -45
- data/lib/message_processor.rb +0 -59
- data/lib/messages.pb.rb +0 -413
- data/lib/spec.pb.rb +0 -319
data/lib/static_loader.rb
CHANGED
@@ -1,20 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation, either version 3 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
|
10
|
-
# Gauge-Ruby is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
|
1
|
+
=begin
|
2
|
+
* Copyright (c) ThoughtWorks, Inc.
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* See LICENSE.txt in the project root for license information.
|
5
|
+
=end
|
18
6
|
require_relative 'gauge'
|
19
7
|
require_relative 'code_parser'
|
20
8
|
require_relative 'method_cache'
|
@@ -29,10 +17,10 @@ module Gauge
|
|
29
17
|
end
|
30
18
|
|
31
19
|
def self.traverse(ast, &visitor)
|
32
|
-
return if ast.class != Parser::AST::Node
|
33
|
-
if
|
20
|
+
return if !ast || ast.class != Parser::AST::Node
|
21
|
+
if step_node?(ast)
|
34
22
|
visitor.call(ast)
|
35
|
-
elsif ast
|
23
|
+
elsif ast.children
|
36
24
|
ast.children.each {|node|
|
37
25
|
traverse(node, &visitor)
|
38
26
|
}
|
@@ -64,7 +52,7 @@ module Gauge
|
|
64
52
|
load_aliases(file, node)
|
65
53
|
else
|
66
54
|
step_text = node.children[0].children[2].children[0]
|
67
|
-
step_value = Gauge::
|
55
|
+
step_value = Gauge::Util.step_value step_text
|
68
56
|
load_step(file, step_value, step_text, node, {recoverable: recoverable?(node)})
|
69
57
|
end
|
70
58
|
end
|
@@ -83,7 +71,7 @@ module Gauge
|
|
83
71
|
end
|
84
72
|
Gauge::MethodCache.add_step_alias(*aliases.map {|x| x.children[0]})
|
85
73
|
aliases.each {|x|
|
86
|
-
sv = Gauge::
|
74
|
+
sv = Gauge::Util.step_value x.children[0]
|
87
75
|
load_step(file, sv, x.children[0], node, {recoverable: recoverable})
|
88
76
|
}
|
89
77
|
end
|
data/lib/table.rb
CHANGED
@@ -1,20 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation, either version 3 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
|
10
|
-
# Gauge-Ruby is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
|
1
|
+
=begin
|
2
|
+
* Copyright (c) ThoughtWorks, Inc.
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* See LICENSE.txt in the project root for license information.
|
5
|
+
=end
|
18
6
|
module Gauge
|
19
7
|
# Holds a table definition. This corresponds to a markdown table defined in the .spec files.
|
20
8
|
# @api public
|
data/lib/util.rb
CHANGED
@@ -1,49 +1,36 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation, either version 3 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
|
10
|
-
# Gauge-Ruby is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
|
1
|
+
=begin
|
2
|
+
* Copyright (c) ThoughtWorks, Inc.
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* See LICENSE.txt in the project root for license information.
|
5
|
+
=end
|
18
6
|
module Gauge
|
19
7
|
class Util
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
get_file_name("_#{counter}", counter)
|
8
|
+
class << self
|
9
|
+
def get_param_name(params, index)
|
10
|
+
name = "arg_#{index}"
|
11
|
+
return name unless params.include? name
|
12
|
+
get_param_name(params, index + 1)
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_step_implementation_dir
|
16
|
+
return File.join(ENV["GAUGE_PROJECT_ROOT"].gsub(/\\/, "/"), "step_implementations")
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_file_name(prefix = "", counter = 0)
|
20
|
+
name = "step_implementation#{prefix}.rb"
|
21
|
+
file_name = File.join(get_step_implementation_dir, name)
|
22
|
+
return file_name unless File.file? file_name
|
23
|
+
counter += 1
|
24
|
+
get_file_name("_#{counter}", counter)
|
25
|
+
end
|
26
|
+
|
27
|
+
def step_value(text)
|
28
|
+
text.gsub(/(<.*?>)/, "{}")
|
29
|
+
end
|
30
|
+
def unique_screenshot_file
|
31
|
+
base_name = "screenshot-#{Process.pid}-#{(Time.now.to_f*10000).to_i}.png"
|
32
|
+
File.join(ENV['gauge_screenshots_dir'],base_name)
|
33
|
+
end
|
47
34
|
end
|
48
35
|
end
|
49
36
|
end
|
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.4
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gauge Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-protocol-buffers
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: os
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.1.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: parser
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,44 +56,62 @@ dependencies:
|
|
56
56
|
name: unparser
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.2.6
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.5.0
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: 0.2.6
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.5.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: method_source
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: 0.8.2
|
82
|
+
- - "<"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.1.0
|
76
85
|
type: :runtime
|
77
86
|
prerelease: false
|
78
87
|
version_requirements: !ruby/object:Gem::Requirement
|
79
88
|
requirements:
|
80
|
-
- - "
|
89
|
+
- - ">="
|
81
90
|
- !ruby/object:Gem::Version
|
82
91
|
version: 0.8.2
|
92
|
+
- - "<"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 1.1.0
|
83
95
|
- !ruby/object:Gem::Dependency
|
84
96
|
name: ruby-debug-ide
|
85
97
|
requirement: !ruby/object:Gem::Requirement
|
86
98
|
requirements:
|
87
|
-
- - "
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0.6'
|
102
|
+
- - "<"
|
88
103
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
104
|
+
version: '0.8'
|
90
105
|
type: :runtime
|
91
106
|
prerelease: false
|
92
107
|
version_requirements: !ruby/object:Gem::Requirement
|
93
108
|
requirements:
|
94
|
-
- - "
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.6'
|
112
|
+
- - "<"
|
95
113
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
114
|
+
version: '0.8'
|
97
115
|
- !ruby/object:Gem::Dependency
|
98
116
|
name: debase
|
99
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +126,46 @@ dependencies:
|
|
108
126
|
- - "~>"
|
109
127
|
- !ruby/object:Gem::Version
|
110
128
|
version: 0.2.2
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: grpc
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 1.10.0
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.10'
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.10.0
|
146
|
+
- - "~>"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '1.10'
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: grpc-tools
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 1.10.0
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '1.10'
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.10.0
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '1.10'
|
111
169
|
description: Adds Ruby support into Gauge tests
|
112
170
|
email:
|
113
171
|
- gauge@thoughtworks.com
|
@@ -115,18 +173,16 @@ executables: []
|
|
115
173
|
extensions: []
|
116
174
|
extra_rdoc_files: []
|
117
175
|
files:
|
118
|
-
- lib/api.pb.rb
|
119
176
|
- lib/code_parser.rb
|
120
177
|
- lib/configuration.rb
|
121
|
-
- lib/connector.rb
|
122
178
|
- lib/datastore.rb
|
123
179
|
- lib/executor.rb
|
124
180
|
- lib/gauge.rb
|
125
181
|
- lib/gauge_messages.rb
|
126
182
|
- lib/gauge_runtime.rb
|
183
|
+
- lib/gauge_screenshot.rb
|
127
184
|
- lib/log.rb
|
128
|
-
- lib/
|
129
|
-
- lib/messages.pb.rb
|
185
|
+
- lib/messages_pb.rb
|
130
186
|
- lib/method_cache.rb
|
131
187
|
- lib/processors/cache_file_processor.rb
|
132
188
|
- lib/processors/datastore_init_processor.rb
|
@@ -134,6 +190,7 @@ files:
|
|
134
190
|
- lib/processors/execution_handler.rb
|
135
191
|
- lib/processors/execution_hook_processors.rb
|
136
192
|
- lib/processors/implementation_file_list_processor.rb
|
193
|
+
- lib/processors/implementation_glob_pattern_processor.rb
|
137
194
|
- lib/processors/kill_request_processor.rb
|
138
195
|
- lib/processors/refactor_step_request_processor.rb
|
139
196
|
- lib/processors/step_name_request_processor.rb
|
@@ -141,7 +198,10 @@ files:
|
|
141
198
|
- lib/processors/step_positions_request_processor.rb
|
142
199
|
- lib/processors/step_validation_request_processor.rb
|
143
200
|
- lib/processors/stub_implementation_processor.rb
|
144
|
-
- lib/
|
201
|
+
- lib/service_handlers.rb
|
202
|
+
- lib/services_pb.rb
|
203
|
+
- lib/services_services_pb.rb
|
204
|
+
- lib/spec_pb.rb
|
145
205
|
- lib/static_loader.rb
|
146
206
|
- lib/table.rb
|
147
207
|
- lib/util.rb
|
@@ -164,8 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
224
|
- !ruby/object:Gem::Version
|
165
225
|
version: '1.9'
|
166
226
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.5.1
|
227
|
+
rubygems_version: 3.0.3
|
169
228
|
signing_key:
|
170
229
|
specification_version: 4
|
171
230
|
summary: Ruby support for Gauge
|
data/lib/api.pb.rb
DELETED
@@ -1,273 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
|
4
|
-
require 'protocol_buffers'
|
5
|
-
|
6
|
-
begin; require 'spec.pb'; rescue LoadError; end
|
7
|
-
|
8
|
-
module Gauge
|
9
|
-
module Messages
|
10
|
-
# forward declarations
|
11
|
-
class GetProjectRootRequest < ::ProtocolBuffers::Message; end
|
12
|
-
class GetProjectRootResponse < ::ProtocolBuffers::Message; end
|
13
|
-
class GetInstallationRootRequest < ::ProtocolBuffers::Message; end
|
14
|
-
class GetInstallationRootResponse < ::ProtocolBuffers::Message; end
|
15
|
-
class GetAllStepsRequest < ::ProtocolBuffers::Message; end
|
16
|
-
class GetAllStepsResponse < ::ProtocolBuffers::Message; end
|
17
|
-
class SpecsRequest < ::ProtocolBuffers::Message; end
|
18
|
-
class SpecsResponse < ::ProtocolBuffers::Message; end
|
19
|
-
class GetAllConceptsRequest < ::ProtocolBuffers::Message; end
|
20
|
-
class GetAllConceptsResponse < ::ProtocolBuffers::Message; end
|
21
|
-
class ConceptInfo < ::ProtocolBuffers::Message; end
|
22
|
-
class GetStepValueRequest < ::ProtocolBuffers::Message; end
|
23
|
-
class GetStepValueResponse < ::ProtocolBuffers::Message; end
|
24
|
-
class GetLanguagePluginLibPathRequest < ::ProtocolBuffers::Message; end
|
25
|
-
class GetLanguagePluginLibPathResponse < ::ProtocolBuffers::Message; end
|
26
|
-
class ErrorResponse < ::ProtocolBuffers::Message; end
|
27
|
-
class PerformRefactoringRequest < ::ProtocolBuffers::Message; end
|
28
|
-
class PerformRefactoringResponse < ::ProtocolBuffers::Message; end
|
29
|
-
class ExtractConceptRequest < ::ProtocolBuffers::Message; end
|
30
|
-
class TextInfo < ::ProtocolBuffers::Message; end
|
31
|
-
class Step < ::ProtocolBuffers::Message; end
|
32
|
-
class ExtractConceptResponse < ::ProtocolBuffers::Message; end
|
33
|
-
class FormatSpecsRequest < ::ProtocolBuffers::Message; end
|
34
|
-
class FormatSpecsResponse < ::ProtocolBuffers::Message; end
|
35
|
-
class UnsupportedApiMessageResponse < ::ProtocolBuffers::Message; end
|
36
|
-
class APIMessage < ::ProtocolBuffers::Message; end
|
37
|
-
|
38
|
-
class GetProjectRootRequest < ::ProtocolBuffers::Message
|
39
|
-
set_fully_qualified_name "gauge.messages.GetProjectRootRequest"
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
class GetProjectRootResponse < ::ProtocolBuffers::Message
|
44
|
-
set_fully_qualified_name "gauge.messages.GetProjectRootResponse"
|
45
|
-
|
46
|
-
optional :string, :projectRoot, 1
|
47
|
-
end
|
48
|
-
|
49
|
-
class GetInstallationRootRequest < ::ProtocolBuffers::Message
|
50
|
-
set_fully_qualified_name "gauge.messages.GetInstallationRootRequest"
|
51
|
-
|
52
|
-
end
|
53
|
-
|
54
|
-
class GetInstallationRootResponse < ::ProtocolBuffers::Message
|
55
|
-
set_fully_qualified_name "gauge.messages.GetInstallationRootResponse"
|
56
|
-
|
57
|
-
optional :string, :installationRoot, 1
|
58
|
-
end
|
59
|
-
|
60
|
-
class GetAllStepsRequest < ::ProtocolBuffers::Message
|
61
|
-
set_fully_qualified_name "gauge.messages.GetAllStepsRequest"
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
class GetAllStepsResponse < ::ProtocolBuffers::Message
|
66
|
-
set_fully_qualified_name "gauge.messages.GetAllStepsResponse"
|
67
|
-
|
68
|
-
repeated ::Gauge::Messages::ProtoStepValue, :allSteps, 1
|
69
|
-
end
|
70
|
-
|
71
|
-
class SpecsRequest < ::ProtocolBuffers::Message
|
72
|
-
set_fully_qualified_name "gauge.messages.SpecsRequest"
|
73
|
-
|
74
|
-
repeated :string, :specs, 1
|
75
|
-
end
|
76
|
-
|
77
|
-
class SpecsResponse < ::ProtocolBuffers::Message
|
78
|
-
# forward declarations
|
79
|
-
class SpecDetail < ::ProtocolBuffers::Message; end
|
80
|
-
|
81
|
-
set_fully_qualified_name "gauge.messages.SpecsResponse"
|
82
|
-
|
83
|
-
# nested messages
|
84
|
-
class SpecDetail < ::ProtocolBuffers::Message
|
85
|
-
set_fully_qualified_name "gauge.messages.SpecsResponse.SpecDetail"
|
86
|
-
|
87
|
-
optional ::Gauge::Messages::ProtoSpec, :spec, 1
|
88
|
-
repeated ::Gauge::Messages::Error, :parseErrors, 2
|
89
|
-
end
|
90
|
-
|
91
|
-
repeated ::Gauge::Messages::SpecsResponse::SpecDetail, :details, 1
|
92
|
-
end
|
93
|
-
|
94
|
-
class GetAllConceptsRequest < ::ProtocolBuffers::Message
|
95
|
-
set_fully_qualified_name "gauge.messages.GetAllConceptsRequest"
|
96
|
-
|
97
|
-
end
|
98
|
-
|
99
|
-
class GetAllConceptsResponse < ::ProtocolBuffers::Message
|
100
|
-
set_fully_qualified_name "gauge.messages.GetAllConceptsResponse"
|
101
|
-
|
102
|
-
repeated ::Gauge::Messages::ConceptInfo, :concepts, 1
|
103
|
-
end
|
104
|
-
|
105
|
-
class ConceptInfo < ::ProtocolBuffers::Message
|
106
|
-
set_fully_qualified_name "gauge.messages.ConceptInfo"
|
107
|
-
|
108
|
-
optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
|
109
|
-
optional :string, :filepath, 2
|
110
|
-
optional :int32, :lineNumber, 3
|
111
|
-
end
|
112
|
-
|
113
|
-
class GetStepValueRequest < ::ProtocolBuffers::Message
|
114
|
-
set_fully_qualified_name "gauge.messages.GetStepValueRequest"
|
115
|
-
|
116
|
-
optional :string, :stepText, 1
|
117
|
-
optional :bool, :hasInlineTable, 2
|
118
|
-
end
|
119
|
-
|
120
|
-
class GetStepValueResponse < ::ProtocolBuffers::Message
|
121
|
-
set_fully_qualified_name "gauge.messages.GetStepValueResponse"
|
122
|
-
|
123
|
-
optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
|
124
|
-
end
|
125
|
-
|
126
|
-
class GetLanguagePluginLibPathRequest < ::ProtocolBuffers::Message
|
127
|
-
set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathRequest"
|
128
|
-
|
129
|
-
optional :string, :language, 1
|
130
|
-
end
|
131
|
-
|
132
|
-
class GetLanguagePluginLibPathResponse < ::ProtocolBuffers::Message
|
133
|
-
set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathResponse"
|
134
|
-
|
135
|
-
optional :string, :path, 1
|
136
|
-
end
|
137
|
-
|
138
|
-
class ErrorResponse < ::ProtocolBuffers::Message
|
139
|
-
set_fully_qualified_name "gauge.messages.ErrorResponse"
|
140
|
-
|
141
|
-
optional :string, :error, 1
|
142
|
-
end
|
143
|
-
|
144
|
-
class PerformRefactoringRequest < ::ProtocolBuffers::Message
|
145
|
-
set_fully_qualified_name "gauge.messages.PerformRefactoringRequest"
|
146
|
-
|
147
|
-
optional :string, :oldStep, 1
|
148
|
-
optional :string, :newStep, 2
|
149
|
-
end
|
150
|
-
|
151
|
-
class PerformRefactoringResponse < ::ProtocolBuffers::Message
|
152
|
-
set_fully_qualified_name "gauge.messages.PerformRefactoringResponse"
|
153
|
-
|
154
|
-
optional :bool, :success, 1
|
155
|
-
repeated :string, :errors, 2
|
156
|
-
repeated :string, :filesChanged, 3
|
157
|
-
end
|
158
|
-
|
159
|
-
class ExtractConceptRequest < ::ProtocolBuffers::Message
|
160
|
-
set_fully_qualified_name "gauge.messages.ExtractConceptRequest"
|
161
|
-
|
162
|
-
optional ::Gauge::Messages::Step, :conceptName, 1
|
163
|
-
repeated ::Gauge::Messages::Step, :steps, 2
|
164
|
-
optional :bool, :changeAcrossProject, 3
|
165
|
-
optional :string, :conceptFileName, 4
|
166
|
-
optional ::Gauge::Messages::TextInfo, :selectedTextInfo, 5
|
167
|
-
end
|
168
|
-
|
169
|
-
class TextInfo < ::ProtocolBuffers::Message
|
170
|
-
set_fully_qualified_name "gauge.messages.textInfo"
|
171
|
-
|
172
|
-
optional :string, :fileName, 1
|
173
|
-
optional :int32, :startingLineNo, 2
|
174
|
-
optional :int32, :endLineNo, 3
|
175
|
-
end
|
176
|
-
|
177
|
-
class Step < ::ProtocolBuffers::Message
|
178
|
-
set_fully_qualified_name "gauge.messages.step"
|
179
|
-
|
180
|
-
optional :string, :name, 1
|
181
|
-
optional :string, :table, 2
|
182
|
-
optional :string, :paramTableName, 3
|
183
|
-
end
|
184
|
-
|
185
|
-
class ExtractConceptResponse < ::ProtocolBuffers::Message
|
186
|
-
set_fully_qualified_name "gauge.messages.ExtractConceptResponse"
|
187
|
-
|
188
|
-
optional :bool, :isSuccess, 1
|
189
|
-
optional :string, :error, 2
|
190
|
-
repeated :string, :filesChanged, 3
|
191
|
-
end
|
192
|
-
|
193
|
-
class FormatSpecsRequest < ::ProtocolBuffers::Message
|
194
|
-
set_fully_qualified_name "gauge.messages.FormatSpecsRequest"
|
195
|
-
|
196
|
-
repeated :string, :specs, 1
|
197
|
-
end
|
198
|
-
|
199
|
-
class FormatSpecsResponse < ::ProtocolBuffers::Message
|
200
|
-
set_fully_qualified_name "gauge.messages.FormatSpecsResponse"
|
201
|
-
|
202
|
-
repeated :string, :errors, 1
|
203
|
-
repeated :string, :warnings, 2
|
204
|
-
end
|
205
|
-
|
206
|
-
class UnsupportedApiMessageResponse < ::ProtocolBuffers::Message
|
207
|
-
set_fully_qualified_name "gauge.messages.UnsupportedApiMessageResponse"
|
208
|
-
|
209
|
-
end
|
210
|
-
|
211
|
-
class APIMessage < ::ProtocolBuffers::Message
|
212
|
-
# forward declarations
|
213
|
-
|
214
|
-
# enums
|
215
|
-
module APIMessageType
|
216
|
-
include ::ProtocolBuffers::Enum
|
217
|
-
|
218
|
-
set_fully_qualified_name "gauge.messages.APIMessage.APIMessageType"
|
219
|
-
|
220
|
-
GetProjectRootRequest = 0
|
221
|
-
GetProjectRootResponse = 1
|
222
|
-
GetInstallationRootRequest = 2
|
223
|
-
GetInstallationRootResponse = 3
|
224
|
-
GetAllStepsRequest = 4
|
225
|
-
GetAllStepResponse = 5
|
226
|
-
SpecsRequest = 6
|
227
|
-
SpecsResponse = 7
|
228
|
-
GetStepValueRequest = 8
|
229
|
-
GetStepValueResponse = 9
|
230
|
-
GetLanguagePluginLibPathRequest = 10
|
231
|
-
GetLanguagePluginLibPathResponse = 11
|
232
|
-
ErrorResponse = 12
|
233
|
-
GetAllConceptsRequest = 13
|
234
|
-
GetAllConceptsResponse = 14
|
235
|
-
PerformRefactoringRequest = 15
|
236
|
-
PerformRefactoringResponse = 16
|
237
|
-
ExtractConceptRequest = 17
|
238
|
-
ExtractConceptResponse = 18
|
239
|
-
FormatSpecsRequest = 19
|
240
|
-
FormatSpecsResponse = 20
|
241
|
-
UnsupportedApiMessageResponse = 21
|
242
|
-
end
|
243
|
-
|
244
|
-
set_fully_qualified_name "gauge.messages.APIMessage"
|
245
|
-
|
246
|
-
optional ::Gauge::Messages::APIMessage::APIMessageType, :messageType, 1
|
247
|
-
optional :int64, :messageId, 2
|
248
|
-
optional ::Gauge::Messages::GetProjectRootRequest, :projectRootRequest, 3
|
249
|
-
optional ::Gauge::Messages::GetProjectRootResponse, :projectRootResponse, 4
|
250
|
-
optional ::Gauge::Messages::GetInstallationRootRequest, :installationRootRequest, 5
|
251
|
-
optional ::Gauge::Messages::GetInstallationRootResponse, :installationRootResponse, 6
|
252
|
-
optional ::Gauge::Messages::GetAllStepsRequest, :allStepsRequest, 7
|
253
|
-
optional ::Gauge::Messages::GetAllStepsResponse, :allStepsResponse, 8
|
254
|
-
optional ::Gauge::Messages::SpecsRequest, :specsRequest, 9
|
255
|
-
optional ::Gauge::Messages::SpecsResponse, :specsResponse, 10
|
256
|
-
optional ::Gauge::Messages::GetStepValueRequest, :stepValueRequest, 11
|
257
|
-
optional ::Gauge::Messages::GetStepValueResponse, :stepValueResponse, 12
|
258
|
-
optional ::Gauge::Messages::GetLanguagePluginLibPathRequest, :libPathRequest, 13
|
259
|
-
optional ::Gauge::Messages::GetLanguagePluginLibPathResponse, :libPathResponse, 14
|
260
|
-
optional ::Gauge::Messages::ErrorResponse, :error, 15
|
261
|
-
optional ::Gauge::Messages::GetAllConceptsRequest, :allConceptsRequest, 16
|
262
|
-
optional ::Gauge::Messages::GetAllConceptsResponse, :allConceptsResponse, 17
|
263
|
-
optional ::Gauge::Messages::PerformRefactoringRequest, :performRefactoringRequest, 18
|
264
|
-
optional ::Gauge::Messages::PerformRefactoringResponse, :performRefactoringResponse, 19
|
265
|
-
optional ::Gauge::Messages::ExtractConceptRequest, :extractConceptRequest, 20
|
266
|
-
optional ::Gauge::Messages::ExtractConceptResponse, :extractConceptResponse, 21
|
267
|
-
optional ::Gauge::Messages::FormatSpecsRequest, :formatSpecsRequest, 22
|
268
|
-
optional ::Gauge::Messages::FormatSpecsResponse, :formatSpecsResponse, 23
|
269
|
-
optional ::Gauge::Messages::UnsupportedApiMessageResponse, :unsupportedApiMessageResponse, 24
|
270
|
-
end
|
271
|
-
|
272
|
-
end
|
273
|
-
end
|