SimBot 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d5fe5af0df1807dbb703952805b6f39b07f1758dc29b8a5f596feeea092f2f14
4
+ data.tar.gz: 29c58ce0bd628558b297d99dc655b0b12cca9ff6b9242dec87dc8b1a2a5e9abc
5
+ SHA512:
6
+ metadata.gz: 8733541c33321ff2272a843872262b2bb95515906268871f982d908f8656d49e348de8486bf5f55df0479a20acc8f57bcb302b2415a6d835ed62573dec875121
7
+ data.tar.gz: 599dbe338e309dacde864510e42c2d07678d36aa7b8eb9dbaaca7cdb64e3037715545ecb6723348bc964de593d1b2bed27a359696b185769c10a74b6ed3d8b50
Binary file
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # the gem file
14
+ SimBot-0.1.0.gem
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build SimBot-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install SimBot-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install SimBot-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push SimBot-0.1.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.5.1 [SimBot]" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20180417, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.20.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.5, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
28
+ </component>
29
+ </module>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.5.1" project-jdk-type="RUBY_SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/SimBot.iml" filepath="$PROJECT_DIR$/.idea/SimBot.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,347 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="" />
5
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+ <option name="TRACKING_ENABLED" value="true" />
7
+ <option name="SHOW_DIALOG" value="false" />
8
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
9
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
10
+ <option name="LAST_RESOLUTION" value="IGNORE" />
11
+ </component>
12
+ <component name="CoverageDataManager">
13
+ <SUITE FILE_PATH="coverage/SimBot@Install_My_Gem.rcov" NAME="Install My Gem Coverage Results" MODIFIED="1525355353796" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="SimBot" />
14
+ </component>
15
+ <component name="FileEditorManager">
16
+ <splitter split-orientation="horizontal" split-proportion="0.5">
17
+ <split-first>
18
+ <leaf>
19
+ <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="false">
20
+ <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
21
+ <provider selected="true" editor-type-id="text-editor">
22
+ <state relative-caret-position="345">
23
+ <caret line="15" column="29" lean-forward="true" selection-start-line="15" selection-start-column="29" selection-end-line="15" selection-end-column="29" />
24
+ </state>
25
+ </provider>
26
+ </entry>
27
+ </file>
28
+ <file leaf-file-name="api_controller.rb" pinned="false" current-in-tab="false">
29
+ <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
30
+ <provider selected="true" editor-type-id="text-editor">
31
+ <state relative-caret-position="207">
32
+ <caret line="9" column="23" lean-forward="true" selection-start-line="9" selection-start-column="23" selection-end-line="9" selection-end-column="23" />
33
+ </state>
34
+ </provider>
35
+ </entry>
36
+ </file>
37
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
38
+ <entry file="file://$PROJECT_DIR$/Gemfile">
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state relative-caret-position="-7">
41
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
42
+ </state>
43
+ </provider>
44
+ </entry>
45
+ </file>
46
+ <file leaf-file-name="setup" pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/bin/setup">
48
+ <provider selected="true" editor-type-id="text-editor">
49
+ <state>
50
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
51
+ </state>
52
+ </provider>
53
+ </entry>
54
+ </file>
55
+ <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
56
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
57
+ <provider selected="true" editor-type-id="text-editor">
58
+ <state relative-caret-position="515">
59
+ <caret line="39" lean-forward="true" selection-start-line="39" selection-end-line="39" />
60
+ </state>
61
+ </provider>
62
+ </entry>
63
+ </file>
64
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="true">
65
+ <entry file="file://$PROJECT_DIR$/.gitignore">
66
+ <provider selected="true" editor-type-id="text-editor">
67
+ <state relative-caret-position="322">
68
+ <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
69
+ </state>
70
+ </provider>
71
+ </entry>
72
+ </file>
73
+ </leaf>
74
+ </split-first>
75
+ <split-second>
76
+ <leaf>
77
+ <file leaf-file-name="utils.rb" pinned="false" current-in-tab="true">
78
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
79
+ <provider selected="true" editor-type-id="text-editor">
80
+ <state relative-caret-position="161">
81
+ <caret line="7" column="3" lean-forward="true" selection-start-line="7" selection-start-column="3" selection-end-line="7" selection-end-column="3" />
82
+ </state>
83
+ </provider>
84
+ </entry>
85
+ </file>
86
+ </leaf>
87
+ </split-second>
88
+ </splitter>
89
+ </component>
90
+ <component name="FileTemplateManagerImpl">
91
+ <option name="RECENT_TEMPLATES">
92
+ <list>
93
+ <option value="Ruby Class Template" />
94
+ </list>
95
+ </option>
96
+ </component>
97
+ <component name="FindInProjectRecents">
98
+ <findStrings>
99
+ <find>post</find>
100
+ </findStrings>
101
+ </component>
102
+ <component name="Git.Settings">
103
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
104
+ </component>
105
+ <component name="IdeDocumentHistory">
106
+ <option name="CHANGED_PATHS">
107
+ <list>
108
+ <option value="$PROJECT_DIR$/README.md" />
109
+ <option value="$PROJECT_DIR$/exe/SimBot" />
110
+ <option value="$PROJECT_DIR$/lib/utilities.rb" />
111
+ <option value="$PROJECT_DIR$/SimBot.gemspec" />
112
+ <option value="$PROJECT_DIR$/lib/api_controller.rb" />
113
+ <option value="$PROJECT_DIR$/lib/SimBot.rb" />
114
+ <option value="$PROJECT_DIR$/lib/utils.rb" />
115
+ <option value="$PROJECT_DIR$/.gitignore" />
116
+ </list>
117
+ </option>
118
+ </component>
119
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
120
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
121
+ <component name="JsGulpfileManager">
122
+ <detection-done>true</detection-done>
123
+ <sorting>DEFINITION_ORDER</sorting>
124
+ </component>
125
+ <component name="NodePackageJsonFileManager">
126
+ <packageJsonPaths />
127
+ </component>
128
+ <component name="ProjectFrameBounds">
129
+ <option name="x" value="1644" />
130
+ <option name="y" value="22" />
131
+ <option name="width" value="1489" />
132
+ <option name="height" value="1058" />
133
+ </component>
134
+ <component name="ProjectView">
135
+ <navigator proportions="" version="1">
136
+ <foldersAlwaysOnTop value="true" />
137
+ </navigator>
138
+ <panes>
139
+ <pane id="Scope" />
140
+ <pane id="ProjectPane">
141
+ <subPane>
142
+ <expand>
143
+ <path>
144
+ <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
145
+ <item name="SimBot" type="462c0819:PsiDirectoryNode" />
146
+ </path>
147
+ <path>
148
+ <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
149
+ <item name="SimBot" type="462c0819:PsiDirectoryNode" />
150
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
151
+ </path>
152
+ </expand>
153
+ <select />
154
+ </subPane>
155
+ </pane>
156
+ </panes>
157
+ </component>
158
+ <component name="PropertiesComponent">
159
+ <property name="WebServerToolWindowFactoryState" value="false" />
160
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
161
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
162
+ </component>
163
+ <component name="RecentsManager">
164
+ <key name="CopyFile.RECENT_KEYS">
165
+ <recent name="$PROJECT_DIR$" />
166
+ </key>
167
+ </component>
168
+ <component name="RunDashboard">
169
+ <option name="ruleStates">
170
+ <list>
171
+ <RuleState>
172
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
173
+ </RuleState>
174
+ <RuleState>
175
+ <option name="name" value="StatusDashboardGroupingRule" />
176
+ </RuleState>
177
+ </list>
178
+ </option>
179
+ </component>
180
+ <component name="RunManager">
181
+ <configuration name="Install My Gem" type="CommandRunConfigurationType" factoryName="Gem Command">
182
+ <module name="SimBot" />
183
+ <COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
184
+ <COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
185
+ <COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
186
+ <COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
187
+ <COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
188
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
189
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
190
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
191
+ <COVERAGE_PATTERN ENABLED="true">
192
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
193
+ </COVERAGE_PATTERN>
194
+ </EXTENSION>
195
+ <COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
196
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
197
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./SimBot-0.1.0.gem" />
198
+ <COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="$MODULE_DIR$" />
199
+ </configuration>
200
+ </component>
201
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
202
+ <component name="SvnConfiguration">
203
+ <configuration />
204
+ </component>
205
+ <component name="TaskManager">
206
+ <task active="true" id="Default" summary="Default task">
207
+ <changelist id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="" />
208
+ <created>1525279604835</created>
209
+ <option name="number" value="Default" />
210
+ <option name="presentableId" value="Default" />
211
+ <updated>1525279604835</updated>
212
+ <workItem from="1525279607229" duration="24196000" />
213
+ </task>
214
+ <servers />
215
+ </component>
216
+ <component name="TimeTrackingManager">
217
+ <option name="totallyTimeSpent" value="24196000" />
218
+ </component>
219
+ <component name="ToolWindowManager">
220
+ <frame x="1644" y="22" width="1489" height="1058" extended-state="0" />
221
+ <layout>
222
+ <window_info anchor="bottom" id="TODO" order="6" />
223
+ <window_info anchor="bottom" id="Messages" sideWeight="0.49965397" weight="0.3293348" />
224
+ <window_info anchor="bottom" id="Event Log" sideWeight="0.50380623" side_tool="true" weight="0.3293348" />
225
+ <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
226
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.2780807" />
227
+ <window_info anchor="bottom" id="Version Control" />
228
+ <window_info active="true" anchor="bottom" id="Terminal" sideWeight="0.49619377" visible="true" weight="0.20261438" />
229
+ <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24982698" />
230
+ <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
231
+ <window_info anchor="right" id="Database" />
232
+ <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
233
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
234
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
235
+ <window_info id="Favorites" side_tool="true" />
236
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
237
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
238
+ <window_info anchor="bottom" id="Message" order="0" />
239
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
240
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
241
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
242
+ </layout>
243
+ </component>
244
+ <component name="TypeScriptGeneratedFilesManager">
245
+ <option name="version" value="1" />
246
+ </component>
247
+ <component name="VcsContentAnnotationSettings">
248
+ <option name="myLimit" value="2678400000" />
249
+ </component>
250
+ <component name="XDebuggerManager">
251
+ <breakpoint-manager>
252
+ <option name="time" value="1" />
253
+ </breakpoint-manager>
254
+ </component>
255
+ <component name="editorHistoryManager">
256
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
257
+ <provider selected="true" editor-type-id="text-editor">
258
+ <state relative-caret-position="115">
259
+ <caret line="5" lean-forward="true" selection-start-line="5" selection-end-line="5" />
260
+ </state>
261
+ </provider>
262
+ </entry>
263
+ <entry file="file://$PROJECT_DIR$/Rakefile">
264
+ <provider selected="true" editor-type-id="text-editor" />
265
+ </entry>
266
+ <entry file="file://$PROJECT_DIR$/README.md">
267
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
268
+ <state split_layout="SPLIT">
269
+ <first_editor relative-caret-position="391">
270
+ <caret line="17" column="42" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
271
+ </first_editor>
272
+ <second_editor />
273
+ </state>
274
+ </provider>
275
+ </entry>
276
+ <entry file="file://$PROJECT_DIR$/bin/setup">
277
+ <provider selected="true" editor-type-id="text-editor">
278
+ <state>
279
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
280
+ </state>
281
+ </provider>
282
+ </entry>
283
+ <entry file="file://$PROJECT_DIR$/bin/console">
284
+ <provider selected="true" editor-type-id="text-editor">
285
+ <state relative-caret-position="322">
286
+ <caret line="14" selection-start-line="14" selection-end-line="14" />
287
+ </state>
288
+ </provider>
289
+ </entry>
290
+ <entry file="file://$PROJECT_DIR$/lib/utilities.rb">
291
+ <provider selected="true" editor-type-id="text-editor">
292
+ <state relative-caret-position="23">
293
+ <caret line="1" column="3" selection-start-line="1" selection-end-line="3" selection-end-column="5" />
294
+ </state>
295
+ </provider>
296
+ </entry>
297
+ <entry file="file://$PROJECT_DIR$/exe/SimBot">
298
+ <provider selected="true" editor-type-id="text-editor">
299
+ <state relative-caret-position="46">
300
+ <caret line="2" column="16" lean-forward="true" selection-start-line="2" selection-start-column="16" selection-end-line="2" selection-end-column="16" />
301
+ </state>
302
+ </provider>
303
+ </entry>
304
+ <entry file="file://$PROJECT_DIR$/Gemfile">
305
+ <provider selected="true" editor-type-id="text-editor">
306
+ <state relative-caret-position="-7">
307
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
308
+ </state>
309
+ </provider>
310
+ </entry>
311
+ <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
312
+ <provider selected="true" editor-type-id="text-editor">
313
+ <state relative-caret-position="207">
314
+ <caret line="9" column="23" lean-forward="true" selection-start-line="9" selection-start-column="23" selection-end-line="9" selection-end-column="23" />
315
+ </state>
316
+ </provider>
317
+ </entry>
318
+ <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
319
+ <provider selected="true" editor-type-id="text-editor">
320
+ <state relative-caret-position="345">
321
+ <caret line="15" column="29" lean-forward="true" selection-start-line="15" selection-start-column="29" selection-end-line="15" selection-end-column="29" />
322
+ </state>
323
+ </provider>
324
+ </entry>
325
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
326
+ <provider selected="true" editor-type-id="text-editor">
327
+ <state relative-caret-position="161">
328
+ <caret line="7" column="3" lean-forward="true" selection-start-line="7" selection-start-column="3" selection-end-line="7" selection-end-column="3" />
329
+ </state>
330
+ </provider>
331
+ </entry>
332
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
333
+ <provider selected="true" editor-type-id="text-editor">
334
+ <state relative-caret-position="515">
335
+ <caret line="39" lean-forward="true" selection-start-line="39" selection-end-line="39" />
336
+ </state>
337
+ </provider>
338
+ </entry>
339
+ <entry file="file://$PROJECT_DIR$/.gitignore">
340
+ <provider selected="true" editor-type-id="text-editor">
341
+ <state relative-caret-position="322">
342
+ <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
343
+ </state>
344
+ </provider>
345
+ </entry>
346
+ </component>
347
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1 @@
1
+ SimBot
@@ -0,0 +1 @@
1
+ ruby-2.5.1
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in SimBot.gemspec
6
+ gemspec
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ SimBot (0.1.0)
5
+ json
6
+ rest-client
7
+ thor (~> 0.20)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ diff-lcs (1.3)
13
+ domain_name (0.5.20180417)
14
+ unf (>= 0.0.5, < 1.0.0)
15
+ http-cookie (1.0.3)
16
+ domain_name (~> 0.5)
17
+ json (2.1.0)
18
+ mime-types (3.1)
19
+ mime-types-data (~> 3.2015)
20
+ mime-types-data (3.2016.0521)
21
+ netrc (0.11.0)
22
+ rake (10.5.0)
23
+ rest-client (2.0.2)
24
+ http-cookie (>= 1.0.2, < 2.0)
25
+ mime-types (>= 1.16, < 4.0)
26
+ netrc (~> 0.8)
27
+ rspec (3.7.0)
28
+ rspec-core (~> 3.7.0)
29
+ rspec-expectations (~> 3.7.0)
30
+ rspec-mocks (~> 3.7.0)
31
+ rspec-core (3.7.1)
32
+ rspec-support (~> 3.7.0)
33
+ rspec-expectations (3.7.0)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.7.0)
36
+ rspec-mocks (3.7.0)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.7.0)
39
+ rspec-support (3.7.1)
40
+ thor (0.20.0)
41
+ unf (0.1.4)
42
+ unf_ext
43
+ unf_ext (0.0.7.5)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ SimBot!
50
+ bundler (~> 1.16)
51
+ rake (~> 10.0)
52
+ rspec (~> 3.0)
53
+
54
+ BUNDLED WITH
55
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 TODO: Write your name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,32 @@
1
+ # SimBot
2
+
3
+ Welcome to the OVEX SimBot CLI.
4
+ SimBot is a simulation bot used for simulating realtime users on the OVEX exchange for DEV testing and QA.
5
+
6
+
7
+ ## Installation
8
+ Simply Run:
9
+
10
+ $ gem install SimBot
11
+
12
+ ## Usagegit a
13
+
14
+ TODO: Write usage instructions here
15
+
16
+ ## Development
17
+
18
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
19
+
20
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
21
+
22
+ ## Contributing
23
+
24
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/SimBot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
25
+
26
+ ## License
27
+
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
29
+
30
+ ## Code of Conduct
31
+
32
+ Everyone interacting in the SimBot project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/SimBot/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "SimBot/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "SimBot"
8
+ spec.version = SimBot::VERSION
9
+ spec.authors = ["Jonathan Ovadia"]
10
+ spec.email = ["ovadiajon@gmail.com"]
11
+
12
+ spec.summary = %q{OVEX simulation Bot CLI used to simulate real world traing activity on the OVEX exchange.}
13
+ spec.description = %q{OVEX simulation Bot CLI used to simulate real world traing activity on the OVEX exchange for testing and QA purposes}
14
+ spec.homepage = "https://github.com/ovCEO/SimBot"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ #if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+ #else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ #end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_dependency "thor", "~> 0.20"
37
+ spec.add_dependency "rest-client"
38
+ spec.add_dependency "json"
39
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "SimBot"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "SimBot"
4
+
5
+ SimBot::CLI.start(ARGV)
@@ -0,0 +1,30 @@
1
+ require "SimBot/version"
2
+ require 'thor'
3
+
4
+ module SimBot
5
+ class CLI < Thor
6
+ require 'utils'
7
+ require 'api_controller'
8
+ desc 'start', 'Start simulation bot parsing in base-url and auth token.'
9
+ method_option :base_url, type: :string, required: true, desc: 'API base URL'
10
+ method_option :jwt, type: :string, required: true, desc: 'JWT to be used'
11
+ method_option :freq, type: :numeric, default: 1, desc: 'Frequency for trades to be added'
12
+ def start
13
+ count = 0
14
+ api = ApiController.new(options[:base_url], options[:jwt])
15
+ loop do
16
+ vol = rand(0.2...2.9)
17
+ price = Utils.get_bchxrp_price
18
+ api.post_order('bchxrp', price, vol, 'sell')
19
+ sleep (1/options[:freq])
20
+ api.post_order('bchxrp', price, vol, 'buy')
21
+ puts "order ##{count} placed"
22
+ count += 1
23
+ end
24
+ end
25
+ desc 'bchxrp_price', 'get the price of BCH in XRP'
26
+ def bchxrp_price
27
+ puts Utils.get_bchxrp_price
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,3 @@
1
+ module SimBot
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,26 @@
1
+ class ApiController
2
+ require 'json'
3
+ require 'rest-client'
4
+
5
+ @endpoint = ''
6
+ @auth_token = ''
7
+
8
+ def initialize(endpoint, token)
9
+ @endpoint = endpoint
10
+ @auth_token = token
11
+ end
12
+
13
+ def post_order(market, price, volume, type)
14
+ response = RestClient.post("#{@endpoint}/api/v2/orders",
15
+ {
16
+ 'market': market,
17
+ 'side': type.to_s,
18
+ 'volume': volume.to_s,
19
+ 'price': price.to_s,
20
+ 'ord_type': 'limit'
21
+ },
22
+ { 'Authorization': "Bearer #{@auth_token}",
23
+ 'content_type': 'application/x-www-form-urlencoded'})
24
+ #puts response
25
+ end
26
+ end
@@ -0,0 +1,8 @@
1
+ class Utils
2
+ def self.get_bchxrp_price
3
+ # fetch bch/xrp price from coin market cap
4
+ response = RestClient.get('https://api.coinmarketcap.com/v2/ticker/1831/?convert=XRP')
5
+ hash = JSON.parse (response.body)
6
+ return hash['data']['quotes']['XRP']['price'].to_f.round(4)
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,157 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: SimBot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Jonathan Ovadia
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.20'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.20'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rest-client
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: json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: OVEX simulation Bot CLI used to simulate real world traing activity on
98
+ the OVEX exchange for testing and QA purposes
99
+ email:
100
+ - ovadiajon@gmail.com
101
+ executables:
102
+ - SimBot
103
+ extensions: []
104
+ extra_rdoc_files: []
105
+ files:
106
+ - ".DS_Store"
107
+ - ".gitignore"
108
+ - ".idea/.rakeTasks"
109
+ - ".idea/SimBot.iml"
110
+ - ".idea/misc.xml"
111
+ - ".idea/modules.xml"
112
+ - ".idea/vcs.xml"
113
+ - ".idea/workspace.xml"
114
+ - ".rspec"
115
+ - ".ruby-gemset"
116
+ - ".ruby-version"
117
+ - ".travis.yml"
118
+ - CODE_OF_CONDUCT.md
119
+ - Gemfile
120
+ - Gemfile.lock
121
+ - LICENSE.txt
122
+ - README.md
123
+ - Rakefile
124
+ - SimBot.gemspec
125
+ - bin/console
126
+ - bin/setup
127
+ - exe/SimBot
128
+ - lib/SimBot.rb
129
+ - lib/SimBot/version.rb
130
+ - lib/api_controller.rb
131
+ - lib/utils.rb
132
+ homepage: https://github.com/ovCEO/SimBot
133
+ licenses:
134
+ - MIT
135
+ metadata: {}
136
+ post_install_message:
137
+ rdoc_options: []
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ requirements: []
151
+ rubyforge_project:
152
+ rubygems_version: 2.7.6
153
+ signing_key:
154
+ specification_version: 4
155
+ summary: OVEX simulation Bot CLI used to simulate real world traing activity on the
156
+ OVEX exchange.
157
+ test_files: []