ruby_robot 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +133 -0
- data/Guardfile +77 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +24 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/ruby_robot +34 -0
- data/exe/ruby_robot_grpc_client +53 -0
- data/exe/ruby_robot_grpc_server +46 -0
- data/exe/ruby_robot_web +19 -0
- data/json_schema/request.schema.json +37 -0
- data/json_schema/response.schema.json +24 -0
- data/lib/public/favicon-16x16.png +0 -0
- data/lib/public/favicon-32x32.png +0 -0
- data/lib/public/index.html +95 -0
- data/lib/public/swagger-ui-bundle.js +93 -0
- data/lib/public/swagger-ui-standalone-preset.js +13 -0
- data/lib/public/swagger-ui.css +3 -0
- data/lib/public/swagger-ui.js +8 -0
- data/lib/public/swagger.json +179 -0
- data/lib/ruby_robot.rb +16 -0
- data/lib/ruby_robot/cacerts.crt +92 -0
- data/lib/ruby_robot/construction_error.rb +4 -0
- data/lib/ruby_robot/grpc/robot_service.rb +102 -0
- data/lib/ruby_robot/grpc/ruby_robot_services_pb.rb +34 -0
- data/lib/ruby_robot/grpc_helper.rb +15 -0
- data/lib/ruby_robot/grpc_ruby/ruby_robot_pb.rb +36 -0
- data/lib/ruby_robot/grpc_shell.rb +85 -0
- data/lib/ruby_robot/netflix_tabletop.rb +14 -0
- data/lib/ruby_robot/placement_error.rb +4 -0
- data/lib/ruby_robot/robot.rb +71 -0
- data/lib/ruby_robot/ruby_robot.proto +53 -0
- data/lib/ruby_robot/schema_loader.rb +10 -0
- data/lib/ruby_robot/shell.rb +204 -0
- data/lib/ruby_robot/tabletop.rb +120 -0
- data/lib/ruby_robot/version.rb +3 -0
- data/lib/ruby_robot/webapp.rb +263 -0
- data/ruby_robot.gemspec +48 -0
- metadata +258 -0
data/ruby_robot.gemspec
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "ruby_robot/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ruby_robot"
|
8
|
+
spec.version = RubyRobot::VERSION
|
9
|
+
spec.authors = ["Dane Avilla"]
|
10
|
+
spec.email = ["github.com@avilla.net"]
|
11
|
+
|
12
|
+
spec.required_ruby_version = ">= 2.0.0"
|
13
|
+
|
14
|
+
spec.summary = %q{RubyGem implementing a Robot for Netflix Studio coding exercise.}
|
15
|
+
spec.description = spec.summary
|
16
|
+
spec.homepage = "https://github.com/ateamlunchbox"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
20
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
21
|
+
if spec.respond_to?(:metadata)
|
22
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
23
|
+
else
|
24
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
25
|
+
"public gem pushes."
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r{^(test|spec|features)/})
|
30
|
+
end
|
31
|
+
spec.bindir = "exe"
|
32
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
|
35
|
+
spec.add_runtime_dependency 'bombshell'
|
36
|
+
spec.add_runtime_dependency 'wirble'
|
37
|
+
spec.add_runtime_dependency 'sinatra', "<2"
|
38
|
+
spec.add_runtime_dependency 'sinatra-swagger-exposer'
|
39
|
+
spec.add_runtime_dependency 'json-schema'
|
40
|
+
spec.add_runtime_dependency "bundler", "~> 1.16"
|
41
|
+
spec.add_runtime_dependency "grpc"
|
42
|
+
|
43
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
44
|
+
spec.add_development_dependency "rspec"
|
45
|
+
spec.add_development_dependency "guard-rspec"
|
46
|
+
spec.add_development_dependency "rack-test"
|
47
|
+
spec.add_development_dependency "grpc-tools"
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,258 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby_robot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.9
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dane Avilla
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bombshell
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: wirble
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sinatra
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sinatra-swagger-exposer
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json-schema
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.16'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.16'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: grpc
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard-rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rack-test
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: grpc-tools
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: RubyGem implementing a Robot for Netflix Studio coding exercise.
|
182
|
+
email:
|
183
|
+
- github.com@avilla.net
|
184
|
+
executables:
|
185
|
+
- ruby_robot
|
186
|
+
- ruby_robot_grpc_client
|
187
|
+
- ruby_robot_grpc_server
|
188
|
+
- ruby_robot_web
|
189
|
+
extensions: []
|
190
|
+
extra_rdoc_files: []
|
191
|
+
files:
|
192
|
+
- ".rspec"
|
193
|
+
- Gemfile
|
194
|
+
- Gemfile.lock
|
195
|
+
- Guardfile
|
196
|
+
- LICENSE.txt
|
197
|
+
- README.md
|
198
|
+
- Rakefile
|
199
|
+
- bin/console
|
200
|
+
- bin/setup
|
201
|
+
- exe/ruby_robot
|
202
|
+
- exe/ruby_robot_grpc_client
|
203
|
+
- exe/ruby_robot_grpc_server
|
204
|
+
- exe/ruby_robot_web
|
205
|
+
- json_schema/request.schema.json
|
206
|
+
- json_schema/response.schema.json
|
207
|
+
- lib/public/favicon-16x16.png
|
208
|
+
- lib/public/favicon-32x32.png
|
209
|
+
- lib/public/index.html
|
210
|
+
- lib/public/swagger-ui-bundle.js
|
211
|
+
- lib/public/swagger-ui-standalone-preset.js
|
212
|
+
- lib/public/swagger-ui.css
|
213
|
+
- lib/public/swagger-ui.js
|
214
|
+
- lib/public/swagger.json
|
215
|
+
- lib/ruby_robot.rb
|
216
|
+
- lib/ruby_robot/cacerts.crt
|
217
|
+
- lib/ruby_robot/construction_error.rb
|
218
|
+
- lib/ruby_robot/grpc/robot_service.rb
|
219
|
+
- lib/ruby_robot/grpc/ruby_robot_services_pb.rb
|
220
|
+
- lib/ruby_robot/grpc_helper.rb
|
221
|
+
- lib/ruby_robot/grpc_ruby/ruby_robot_pb.rb
|
222
|
+
- lib/ruby_robot/grpc_shell.rb
|
223
|
+
- lib/ruby_robot/netflix_tabletop.rb
|
224
|
+
- lib/ruby_robot/placement_error.rb
|
225
|
+
- lib/ruby_robot/robot.rb
|
226
|
+
- lib/ruby_robot/ruby_robot.proto
|
227
|
+
- lib/ruby_robot/schema_loader.rb
|
228
|
+
- lib/ruby_robot/shell.rb
|
229
|
+
- lib/ruby_robot/tabletop.rb
|
230
|
+
- lib/ruby_robot/version.rb
|
231
|
+
- lib/ruby_robot/webapp.rb
|
232
|
+
- ruby_robot.gemspec
|
233
|
+
homepage: https://github.com/ateamlunchbox
|
234
|
+
licenses:
|
235
|
+
- MIT
|
236
|
+
metadata:
|
237
|
+
allowed_push_host: https://rubygems.org
|
238
|
+
post_install_message:
|
239
|
+
rdoc_options: []
|
240
|
+
require_paths:
|
241
|
+
- lib
|
242
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
+
requirements:
|
244
|
+
- - ">="
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: 2.0.0
|
247
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - ">="
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: '0'
|
252
|
+
requirements: []
|
253
|
+
rubyforge_project:
|
254
|
+
rubygems_version: 2.6.14
|
255
|
+
signing_key:
|
256
|
+
specification_version: 4
|
257
|
+
summary: RubyGem implementing a Robot for Netflix Studio coding exercise.
|
258
|
+
test_files: []
|