SimBot 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: af9bcbba18bd6d55f89bb1182f3bfb29d65598576ed1a7cce2d058f6450225b4
4
- data.tar.gz: 5a23939038037a0f82dafc55e2b54a778ba768730b028a8574466f8738601de9
3
+ metadata.gz: 465b3f2a610b3e4d75575bea6ad533ea7e8d1ba2bcc72fca04c2679fa7614c91
4
+ data.tar.gz: 775f9186f34f6f9fb86b5907090bc0c620a4cb0f438ce1aeaee2948c2adb3767
5
5
  SHA512:
6
- metadata.gz: 8dd154dc52127040e2f4f270c132eefa5c5e9ab422e9ad9e6d2d8d9e5f1d5527807dc94747571519b6c80d67d8dcd96d9c54a726c8183c5faf457acac6b5dbf6
7
- data.tar.gz: 1bb95fab0a8819d49bf63f325217a599af489cf30f80be74d767661e4d1dab64cf90d99cdd27d40dc9368870247df216f7677eb4311bc3ddc2e894c632c1805f
6
+ metadata.gz: ccb458d5f8d70496a84d968443612bd3315aa9b8cf6e7d24202f39d3c1c6dbd143a96e28161abe01eda98a1f49205f34007cc0c8bbaa972dbd8f8228d9cd0cd8
7
+ data.tar.gz: 3af48d4a8e66525fa0e7c1d61e0ca016b676d658cbf20f536b2d623897537bc63b74be5ff287a98b93f49f5e1502594aed004e4532ccdc6b6b7cf2130439b957
@@ -15,6 +15,7 @@
15
15
  <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
17
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="pusher-client (v0.6.2, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
18
19
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
19
20
  <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
20
21
  <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
@@ -25,5 +26,6 @@
25
26
  <orderEntry type="library" scope="PROVIDED" name="thor (v0.20.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
26
27
  <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
27
28
  <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.5, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="websocket (v1.2.8, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
28
30
  </component>
29
31
  </module>
@@ -2,10 +2,14 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="">
5
+ <change afterPath="$PROJECT_DIR$/lib/barong.rb" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/.idea/SimBot.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/SimBot.iml" afterDir="false" />
5
7
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
8
  <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/SimBot.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/SimBot.gemspec" afterDir="false" />
7
10
  <change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
8
11
  <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/lib/api_controller.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/api_controller.rb" afterDir="false" />
9
13
  <change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
10
14
  </list>
11
15
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -16,75 +20,93 @@
16
20
  <option name="LAST_RESOLUTION" value="IGNORE" />
17
21
  </component>
18
22
  <component name="CoverageDataManager">
19
- <SUITE FILE_PATH="coverage/SimBot@Install_My_Gem.rcov" NAME="Install My Gem Coverage Results" MODIFIED="1525376082299" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="SimBot" />
23
+ <SUITE FILE_PATH="coverage/SimBot@Install_My_Gem.rcov" NAME="Install My Gem Coverage Results" MODIFIED="1528473090970" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="SimBot" />
20
24
  </component>
21
25
  <component name="FileEditorManager">
22
- <splitter split-orientation="horizontal" split-proportion="0.5">
26
+ <splitter split-orientation="horizontal" split-proportion="0.52644426">
23
27
  <split-first>
24
- <leaf>
25
- <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
28
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
+ <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="false">
26
30
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
27
31
  <provider selected="true" editor-type-id="text-editor">
28
- <state relative-caret-position="283">
29
- <caret line="29" column="42" lean-forward="true" selection-start-line="29" selection-start-column="42" selection-end-line="29" selection-end-column="42" />
32
+ <state relative-caret-position="604">
33
+ <caret line="36" selection-start-line="36" selection-end-line="36" />
30
34
  </state>
31
35
  </provider>
32
36
  </entry>
33
37
  </file>
34
- <file leaf-file-name="api_controller.rb" pinned="false" current-in-tab="false">
35
- <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
38
+ <file leaf-file-name="SimBot" pinned="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/exe/SimBot">
36
40
  <provider selected="true" editor-type-id="text-editor">
37
- <state relative-caret-position="439">
38
- <caret line="24" column="5" lean-forward="true" selection-start-line="24" selection-start-column="5" selection-end-line="24" selection-end-column="5" />
41
+ <state relative-caret-position="92">
42
+ <caret line="4" column="7" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
39
43
  </state>
40
44
  </provider>
41
45
  </entry>
42
46
  </file>
43
- <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
44
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
47
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/.gitignore">
45
49
  <provider selected="true" editor-type-id="text-editor">
46
- <state relative-caret-position="377">
47
- <caret line="36" column="35" lean-forward="true" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
50
+ <state relative-caret-position="322">
51
+ <caret line="14" selection-start-line="14" selection-end-line="14" />
48
52
  </state>
49
53
  </provider>
50
54
  </entry>
51
55
  </file>
52
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
56
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
53
57
  <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
54
58
  <provider selected="true" editor-type-id="text-editor">
55
- <state relative-caret-position="69">
56
- <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
59
+ <state relative-caret-position="23">
60
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
57
61
  </state>
58
62
  </provider>
59
63
  </entry>
60
64
  </file>
61
- <file leaf-file-name="SimBot" pinned="false" current-in-tab="false">
62
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
65
+ <file leaf-file-name="api_controller.rb" pinned="false" current-in-tab="false">
66
+ <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
63
67
  <provider selected="true" editor-type-id="text-editor">
64
- <state relative-caret-position="92">
65
- <caret line="4" column="7" lean-forward="true" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
68
+ <state relative-caret-position="414">
69
+ <caret line="18" column="53" lean-forward="true" selection-start-line="18" selection-start-column="53" selection-end-line="18" selection-end-column="53" />
66
70
  </state>
67
71
  </provider>
68
72
  </entry>
69
73
  </file>
70
- <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
71
- <entry file="file://$PROJECT_DIR$/.gitignore">
74
+ </leaf>
75
+ </split-first>
76
+ <split-second>
77
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
78
+ <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
79
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
72
80
  <provider selected="true" editor-type-id="text-editor">
73
- <state relative-caret-position="322">
74
- <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
81
+ <state relative-caret-position="299">
82
+ <caret line="13" column="38" selection-start-line="13" selection-start-column="38" selection-end-line="13" selection-end-column="38" />
75
83
  </state>
76
84
  </provider>
77
85
  </entry>
78
86
  </file>
79
- </leaf>
80
- </split-first>
81
- <split-second>
82
- <leaf>
83
- <file leaf-file-name="utils.rb" pinned="false" current-in-tab="true">
84
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
87
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
88
+ <entry file="file://$PROJECT_DIR$/Gemfile">
89
+ <provider selected="true" editor-type-id="text-editor">
90
+ <state relative-caret-position="138">
91
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
92
+ </state>
93
+ </provider>
94
+ </entry>
95
+ </file>
96
+ <file leaf-file-name="barong.rb" pinned="false" current-in-tab="true">
97
+ <entry file="file://$PROJECT_DIR$/lib/barong.rb">
98
+ <provider selected="true" editor-type-id="text-editor">
99
+ <state relative-caret-position="552">
100
+ <caret line="24" column="3" lean-forward="true" selection-start-line="24" selection-start-column="3" selection-end-line="24" selection-end-column="3" />
101
+ </state>
102
+ </provider>
103
+ </entry>
104
+ </file>
105
+ <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
106
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
85
107
  <provider selected="true" editor-type-id="text-editor">
86
- <state relative-caret-position="368">
87
- <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
108
+ <state relative-caret-position="416">
109
+ <caret line="27" column="5" selection-start-line="27" selection-start-column="5" selection-end-line="27" selection-end-column="5" />
88
110
  </state>
89
111
  </provider>
90
112
  </entry>
@@ -114,12 +136,13 @@
114
136
  <option value="$PROJECT_DIR$/README.md" />
115
137
  <option value="$PROJECT_DIR$/exe/SimBot" />
116
138
  <option value="$PROJECT_DIR$/lib/utilities.rb" />
139
+ <option value="$PROJECT_DIR$/.gitignore" />
117
140
  <option value="$PROJECT_DIR$/SimBot.gemspec" />
118
141
  <option value="$PROJECT_DIR$/lib/api_controller.rb" />
119
- <option value="$PROJECT_DIR$/.gitignore" />
142
+ <option value="$PROJECT_DIR$/lib/barong.rb" />
143
+ <option value="$PROJECT_DIR$/lib/utils.rb" />
120
144
  <option value="$PROJECT_DIR$/lib/SimBot.rb" />
121
145
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
122
- <option value="$PROJECT_DIR$/lib/utils.rb" />
123
146
  </list>
124
147
  </option>
125
148
  </component>
@@ -133,9 +156,9 @@
133
156
  <packageJsonPaths />
134
157
  </component>
135
158
  <component name="ProjectFrameBounds">
136
- <option name="x" value="1834" />
159
+ <option name="x" value="1554" />
137
160
  <option name="y" value="22" />
138
- <option name="width" value="1489" />
161
+ <option name="width" value="1625" />
139
162
  <option name="height" value="1058" />
140
163
  </component>
141
164
  <component name="ProjectView">
@@ -222,59 +245,60 @@
222
245
  <option name="number" value="Default" />
223
246
  <option name="presentableId" value="Default" />
224
247
  <updated>1525279604835</updated>
225
- <workItem from="1525279607229" duration="35325000" />
248
+ <workItem from="1525279607229" duration="36216000" />
249
+ <workItem from="1528301072964" duration="18218000" />
226
250
  </task>
227
251
  <servers />
228
252
  </component>
229
253
  <component name="TimeTrackingManager">
230
- <option name="totallyTimeSpent" value="35325000" />
254
+ <option name="totallyTimeSpent" value="54434000" />
231
255
  </component>
232
256
  <component name="ToolWindowManager">
233
- <frame x="1834" y="22" width="1489" height="1058" extended-state="0" />
257
+ <frame x="1554" y="22" width="1625" height="1058" extended-state="0" />
234
258
  <editor active="true" />
235
259
  <layout>
260
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22362603" />
236
261
  <window_info anchor="bottom" id="TODO" order="6" />
237
- <window_info anchor="bottom" id="Messages" sideWeight="0.49965397" weight="0.3293348" />
238
- <window_info anchor="bottom" id="Event Log" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
239
- <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
240
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.2777778" />
241
- <window_info anchor="bottom" id="Version Control" />
242
- <window_info active="true" anchor="bottom" id="Terminal" sideWeight="0.49619377" visible="true" weight="0.3453159" />
243
- <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24982698" />
244
- <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
245
- <window_info anchor="right" id="Database" />
246
- <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
262
+ <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
263
+ <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
264
+ <window_info anchor="right" id="Database" order="3" />
265
+ <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
266
+ <window_info anchor="bottom" id="Version Control" order="7" />
267
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28649238" />
247
268
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
269
+ <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49619377" weight="0.3453159" />
270
+ <window_info id="Favorites" order="2" side_tool="true" />
248
271
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
249
- <window_info id="Favorites" side_tool="true" />
272
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
273
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
250
274
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
251
275
  <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
252
276
  <window_info anchor="bottom" id="Message" order="0" />
253
- <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
254
- <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
255
277
  <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
278
+ <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
279
+ <window_info anchor="bottom" id="Messages" order="7" sideWeight="0.49965397" weight="0.3293348" />
256
280
  </layout>
257
281
  <layout-to-restore>
258
282
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="3" weight="0.25" />
259
283
  <window_info anchor="bottom" id="Docker" order="0" show_stripe_button="false" />
260
284
  <window_info anchor="bottom" id="Run" order="8" sideWeight="0.48719722" weight="0.2780807" />
261
- <window_info anchor="right" id="Ant Build" order="2" weight="0.25" />
262
- <window_info anchor="bottom" id="Cvs" order="10" weight="0.25" />
285
+ <window_info id="Favorites" order="0" side_tool="true" />
263
286
  <window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.24982698" />
264
287
  <window_info id="Structure" order="2" side_tool="true" weight="0.25" />
265
288
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="1" type="SLIDING" weight="0.4" />
289
+ <window_info anchor="right" id="Ant Build" order="2" weight="0.25" />
266
290
  <window_info anchor="bottom" id="TODO" order="12" />
267
- <window_info anchor="bottom" id="Database Changes" order="1" show_stripe_button="false" />
291
+ <window_info anchor="bottom" id="Version Control" order="3" />
268
292
  <window_info anchor="bottom" id="Find" order="7" sideWeight="0.49896193" weight="0.32897604" />
269
293
  <window_info anchor="right" id="Database" order="0" />
270
294
  <window_info active="true" anchor="bottom" id="Terminal" order="2" sideWeight="0.49619377" visible="true" weight="0.20261438" />
271
295
  <window_info anchor="bottom" id="Debug" order="9" weight="0.4" />
272
- <window_info anchor="bottom" id="Inspection" order="11" weight="0.4" />
273
- <window_info anchor="bottom" id="Version Control" order="3" />
296
+ <window_info anchor="bottom" id="Database Changes" order="1" show_stripe_button="false" />
297
+ <window_info anchor="bottom" id="Cvs" order="10" weight="0.25" />
274
298
  <window_info anchor="bottom" id="Event Log" order="4" sideWeight="0.50380623" side_tool="true" weight="0.3293348" />
275
299
  <window_info anchor="bottom" id="Message" order="6" />
276
300
  <window_info anchor="bottom" id="Messages" order="5" sideWeight="0.49965397" weight="0.3293348" />
277
- <window_info id="Favorites" order="0" side_tool="true" />
301
+ <window_info anchor="bottom" id="Inspection" order="11" weight="0.4" />
278
302
  </layout-to-restore>
279
303
  </component>
280
304
  <component name="TypeScriptGeneratedFilesManager">
@@ -285,10 +309,59 @@
285
309
  </component>
286
310
  <component name="XDebuggerManager">
287
311
  <breakpoint-manager>
288
- <option name="time" value="1" />
312
+ <option name="time" value="2" />
289
313
  </breakpoint-manager>
290
314
  </component>
291
315
  <component name="editorHistoryManager">
316
+ <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
317
+ <provider selected="true" editor-type-id="text-editor">
318
+ <state relative-caret-position="782">
319
+ <caret line="34" column="3" selection-start-line="34" selection-start-column="3" selection-end-line="34" selection-end-column="3" />
320
+ </state>
321
+ </provider>
322
+ </entry>
323
+ <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
324
+ <provider selected="true" editor-type-id="text-editor">
325
+ <state relative-caret-position="552">
326
+ <caret line="24" column="5" lean-forward="true" selection-start-line="24" selection-start-column="5" selection-end-line="24" selection-end-column="5" />
327
+ </state>
328
+ </provider>
329
+ </entry>
330
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
331
+ <provider selected="true" editor-type-id="text-editor">
332
+ <state relative-caret-position="828">
333
+ <caret line="36" column="35" lean-forward="true" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
334
+ </state>
335
+ </provider>
336
+ </entry>
337
+ <entry file="file://$PROJECT_DIR$/exe/SimBot">
338
+ <provider selected="true" editor-type-id="text-editor">
339
+ <state relative-caret-position="92">
340
+ <caret line="4" column="7" lean-forward="true" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
341
+ </state>
342
+ </provider>
343
+ </entry>
344
+ <entry file="file://$PROJECT_DIR$/.gitignore">
345
+ <provider selected="true" editor-type-id="text-editor">
346
+ <state relative-caret-position="322">
347
+ <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
348
+ </state>
349
+ </provider>
350
+ </entry>
351
+ <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
352
+ <provider selected="true" editor-type-id="text-editor">
353
+ <state relative-caret-position="69">
354
+ <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
355
+ </state>
356
+ </provider>
357
+ </entry>
358
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
359
+ <provider selected="true" editor-type-id="text-editor">
360
+ <state relative-caret-position="368">
361
+ <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
362
+ </state>
363
+ </provider>
364
+ </entry>
292
365
  <entry file="file://$PROJECT_DIR$/.travis.yml">
293
366
  <provider selected="true" editor-type-id="text-editor">
294
367
  <state relative-caret-position="115">
@@ -296,9 +369,6 @@
296
369
  </state>
297
370
  </provider>
298
371
  </entry>
299
- <entry file="file://$PROJECT_DIR$/Rakefile">
300
- <provider selected="true" editor-type-id="text-editor" />
301
- </entry>
302
372
  <entry file="file://$PROJECT_DIR$/README.md">
303
373
  <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
304
374
  <state split_layout="SPLIT">
@@ -323,69 +393,67 @@
323
393
  </state>
324
394
  </provider>
325
395
  </entry>
326
- <entry file="file://$PROJECT_DIR$/lib/utilities.rb">
396
+ <entry file="file://$PROJECT_DIR$/lib/utilities.rb" />
397
+ <entry file="file://$PROJECT_DIR$/exe/SimBot">
327
398
  <provider selected="true" editor-type-id="text-editor">
328
- <state relative-caret-position="23">
329
- <caret line="1" column="3" selection-start-line="1" selection-end-line="3" selection-end-column="5" />
399
+ <state relative-caret-position="92">
400
+ <caret line="4" column="7" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
330
401
  </state>
331
402
  </provider>
332
403
  </entry>
333
- <entry file="file://$PROJECT_DIR$/.gitignore">
404
+ <entry file="file://$PROJECT_DIR$/Gemfile">
334
405
  <provider selected="true" editor-type-id="text-editor">
335
- <state relative-caret-position="322">
336
- <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
406
+ <state relative-caret-position="138">
407
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
337
408
  </state>
338
409
  </provider>
339
410
  </entry>
340
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
411
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
341
412
  <provider selected="true" editor-type-id="text-editor">
342
- <state relative-caret-position="92">
343
- <caret line="4" column="7" lean-forward="true" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
413
+ <state relative-caret-position="416">
414
+ <caret line="27" column="5" selection-start-line="27" selection-start-column="5" selection-end-line="27" selection-end-column="5" />
344
415
  </state>
345
416
  </provider>
346
417
  </entry>
347
- <entry file="file://$PROJECT_DIR$/.ruby-version">
348
- <provider selected="true" editor-type-id="text-editor" />
349
- </entry>
350
- <entry file="file://$PROJECT_DIR$/Gemfile">
418
+ <entry file="file://$PROJECT_DIR$/.gitignore">
351
419
  <provider selected="true" editor-type-id="text-editor">
352
- <state relative-caret-position="115">
353
- <caret line="5" column="7" lean-forward="true" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
420
+ <state relative-caret-position="322">
421
+ <caret line="14" selection-start-line="14" selection-end-line="14" />
354
422
  </state>
355
423
  </provider>
356
424
  </entry>
357
425
  <entry file="file://$PROJECT_DIR$/lib/api_controller.rb">
358
426
  <provider selected="true" editor-type-id="text-editor">
359
- <state relative-caret-position="439">
360
- <caret line="24" column="5" lean-forward="true" selection-start-line="24" selection-start-column="5" selection-end-line="24" selection-end-column="5" />
427
+ <state relative-caret-position="414">
428
+ <caret line="18" column="53" lean-forward="true" selection-start-line="18" selection-start-column="53" selection-end-line="18" selection-end-column="53" />
361
429
  </state>
362
430
  </provider>
363
431
  </entry>
364
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
432
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
365
433
  <provider selected="true" editor-type-id="text-editor">
366
- <state relative-caret-position="377">
367
- <caret line="36" column="35" lean-forward="true" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
434
+ <state relative-caret-position="299">
435
+ <caret line="13" column="38" selection-start-line="13" selection-start-column="38" selection-end-line="13" selection-end-column="38" />
368
436
  </state>
369
437
  </provider>
370
438
  </entry>
371
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
439
+ <entry file="file://$PROJECT_DIR$/lib/barong.rb">
372
440
  <provider selected="true" editor-type-id="text-editor">
373
- <state relative-caret-position="69">
374
- <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
441
+ <state relative-caret-position="552">
442
+ <caret line="24" column="3" lean-forward="true" selection-start-line="24" selection-start-column="3" selection-end-line="24" selection-end-column="3" />
375
443
  </state>
376
444
  </provider>
377
445
  </entry>
378
446
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
379
447
  <provider selected="true" editor-type-id="text-editor">
380
- <state relative-caret-position="283">
381
- <caret line="29" column="42" lean-forward="true" selection-start-line="29" selection-start-column="42" selection-end-line="29" selection-end-column="42" />
448
+ <state relative-caret-position="604">
449
+ <caret line="36" selection-start-line="36" selection-end-line="36" />
382
450
  </state>
383
451
  </provider>
384
452
  </entry>
385
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
453
+ <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
386
454
  <provider selected="true" editor-type-id="text-editor">
387
- <state relative-caret-position="368">
388
- <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
455
+ <state relative-caret-position="23">
456
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
389
457
  </state>
390
458
  </provider>
391
459
  </entry>
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.2)
4
+ SimBot (0.1.3)
5
5
  json
6
+ pusher-client
6
7
  rest-client
7
8
  thor (~> 0.20)
8
9
 
@@ -19,6 +20,9 @@ GEM
19
20
  mime-types-data (~> 3.2015)
20
21
  mime-types-data (3.2016.0521)
21
22
  netrc (0.11.0)
23
+ pusher-client (0.6.2)
24
+ json
25
+ websocket (~> 1.0)
22
26
  rake (10.5.0)
23
27
  rest-client (2.0.2)
24
28
  http-cookie (>= 1.0.2, < 2.0)
@@ -41,6 +45,7 @@ GEM
41
45
  unf (0.1.4)
42
46
  unf_ext
43
47
  unf_ext (0.0.7.5)
48
+ websocket (1.2.8)
44
49
 
45
50
  PLATFORMS
46
51
  ruby
@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "rspec", "~> 3.0"
36
36
  spec.add_dependency "thor", "~> 0.20"
37
+ spec.add_dependency "pusher-client"
37
38
  spec.add_dependency "rest-client"
38
39
  spec.add_dependency "json"
39
40
  end
@@ -1,21 +1,27 @@
1
1
  require "SimBot/version"
2
2
  require 'thor'
3
+ require 'pusher-client'
3
4
 
4
5
  module SimBot
5
6
  class CLI < Thor
6
7
  require 'utils'
8
+ require 'barong'
7
9
  require 'api_controller'
8
10
  desc 'start', 'Start simulation bot parsing in base-url and auth token.'
9
- method_option :base_url, type: :string, default: 'https://platform.test.ovex.io/', desc: 'API base URL'
10
- method_option :jwt, type: :string, required: true, desc: 'JWT to be used'
11
- method_option :market, type: :string, default: 'bchxrp', required: false, desc: 'OVEX market for SimBot to interact with'
11
+ method_option :email, type: :string, default: 'admin@ovex.io', required: true, desc: 'Your OVEX email address'
12
+ method_option :password, type: :string, default: '1bQozgrr', required: true, desc: 'Your OVEX password'
13
+ method_option :peatio_base_url, type: :string, default: 'https://platform.review.ovex.io/api/v2', desc: 'Peatio API base URL'
14
+ method_option :barong_base_url, type: :string, default: 'https://account.review.ovex.io/api/v1', desc: 'Barong API base URL'
15
+ method_option :app_id, type: :string, default: 'ef3f28bfb2625ed56f0ff88c6fdb', desc: 'Peatio applicaiton id from Barong'
16
+ method_option :market, type: :string, default: 'bchbtc', required: false, desc: 'OVEX market for SimBot to interact with'
12
17
  method_option :freq, type: :numeric, default: 1, desc: 'Frequency for trades to be added'
13
18
  def start
14
19
  count = 0
15
- api = ApiController.new(options[:base_url], options[:jwt])
20
+ jwt = Barong::API.new(options[:barong_base_url], options[:app_id]).log_in(options[:email], options[:password])
21
+ api = ApiController.new(options[:peatio_base_url], jwt)
16
22
  loop do
17
- vol = rand(0.2...2.9)
18
- price = Utils.get_bchxrp_price
23
+ vol = rand(1...10)
24
+ price = Utils.get_bchbtc_price
19
25
  api.post_order(options[:market], price, vol, 'sell')
20
26
  sleep(1 / options[:freq])
21
27
  api.post_order(options[:market], price, vol, 'buy')
@@ -23,6 +29,14 @@ module SimBot
23
29
  count += 1
24
30
  end
25
31
  end
32
+ desc 'test_ws', 'connect to web socket and test it is working correctly'
33
+ def test_ws
34
+ Barong::API.log_in("hi there","my man")
35
+ end
36
+ desc 'bchbtc_price', 'get the price of BCH in BTC'
37
+ def bchbtc_price
38
+ puts Utils.get_bchbtc_price
39
+ end
26
40
  desc 'bchxrp_price', 'get the price of BCH in XRP'
27
41
  def bchxrp_price
28
42
  puts Utils.get_bchxrp_price
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -11,7 +11,7 @@ class ApiController
11
11
  end
12
12
 
13
13
  def post_order(market, price, volume, type)
14
- response = RestClient.post("#{@endpoint}/api/v2/orders",
14
+ response = RestClient.post("#{@endpoint}/orders",
15
15
  {
16
16
  'market': market,
17
17
  'side': type.to_s,
@@ -0,0 +1,25 @@
1
+ module Barong
2
+ # General barong API functions
3
+ class API
4
+ require 'json'
5
+ require 'rest-client'
6
+ def initialize(endpoint, app_id)
7
+ @endpoint = endpoint
8
+ @app_id = app_id
9
+ end
10
+
11
+ def log_in(email, password)
12
+ response = RestClient.post("#{@endpoint}/sessions",
13
+ {
14
+ 'email': email,
15
+ 'password': password,
16
+ 'application_id': @app_id,
17
+ 'expires_in': 60_000_000
18
+ },
19
+ {
20
+ 'content_type': 'application/x-www-form-urlencoded'
21
+ })
22
+ response.delete('"')
23
+ end
24
+ end
25
+ end
@@ -6,6 +6,13 @@ class Utils
6
6
  hash = JSON.parse (response.body)
7
7
  return hash['data']['quotes']['XRP']['price'].to_f.round(4) * factor
8
8
  end
9
+ def self.get_bchbtc_price
10
+ # fetch bch/xrp price from coin market cap
11
+ factor = rand(1...1.01)
12
+ response = RestClient.get('https://api.coinmarketcap.com/v2/ticker/1831/?convert=BTC')
13
+ hash = JSON.parse (response.body)
14
+ return hash['data']['quotes']['BTC']['price'].to_f.round(4) * factor
15
+ end
9
16
  def self.get_eoseth_price
10
17
  # fetch bch/xrp price from coin market cap
11
18
  response = RestClient.get('https://api.coinmarketcap.com/v2/ticker/1765/?convert=ETH')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SimBot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.20'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pusher-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'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rest-client
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +142,7 @@ files:
128
142
  - lib/SimBot.rb
129
143
  - lib/SimBot/version.rb
130
144
  - lib/api_controller.rb
145
+ - lib/barong.rb
131
146
  - lib/utils.rb
132
147
  homepage: https://github.com/ovCEO/SimBot
133
148
  licenses: