SimBot 0.1.19 → 0.1.20

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: 729bb7d5e9ffe74d104296e6e88692fed3ee5e606f159c89760a171fcf6867b0
4
- data.tar.gz: 7e93b1f1504fa92df399555d3072c2ea91bc2fd03b644719d03c5bc113b50a93
3
+ metadata.gz: 8a18255d731a4ca12715707672d37574d2a5d12cd90bd9b09836baa6b337c792
4
+ data.tar.gz: 41a88de30ad2fe91c57c18ab1c99dec2b0db939eb3acc666249c6f1f0308b438
5
5
  SHA512:
6
- metadata.gz: 6c3aa78c238ee4aa002cc9631392d21122ca903b144eebd0e706313cd3e0d037d7a5d73d932754d955d7883ef9a857d5b75cdb8a1b7e2c316be33916f9255e5f
7
- data.tar.gz: 02f491547702208bdc39a1fcc7d614ac1cb0129c3b049d2fd5a3a5740a79a038eae0e055479e26af5cb5c435be9714a08868cef09e7a25b97e0deb96bc258ac9
6
+ metadata.gz: 5e5d9711db3f1bfbe1fa0f1743ec242bc1e15f1ca01602912a0c652a38ce7e4dcc2d93f6aa9535c8075afa7eb6f56297cad021b05d9a693046a7a1ac6848b89b
7
+ data.tar.gz: 6354f6ad1d3dc9c27fe6e4519fd67ba2506e3f798733663c0ecd85bb18329a44b8bc2fbf7af30cd397e576b85593a13b5c17c139241b9c44d80d15db132633df
@@ -10,12 +10,14 @@
10
10
  <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
11
11
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
12
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="event_emitter (v0.2.6, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
13
14
  <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
14
15
  <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="mail (v2.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
15
17
  <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
16
18
  <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.0.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
17
20
  <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" />
19
21
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
20
22
  <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
21
23
  <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
@@ -29,5 +31,6 @@
29
31
  <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
30
32
  <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.5, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
31
33
  <orderEntry type="library" scope="PROVIDED" name="websocket (v1.2.8, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="websocket-client-simple (v0.3.0, RVM: ruby-2.5.1 [SimBot]) [gem]" level="application" />
32
35
  </component>
33
36
  </module>
@@ -2,15 +2,15 @@
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 beforePath="$PROJECT_DIR$/.idea/SimBot.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/SimBot.iml" afterDir="false" />
6
5
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
8
- <change beforePath="$PROJECT_DIR$/SimBot-0.1.14.gem" beforeDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/SimBot-0.1.18.gem" beforeDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/SimBot-0.1.19.gem" beforeDir="false" />
9
8
  <change beforePath="$PROJECT_DIR$/SimBot.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/SimBot.gemspec" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/lib/ApiController/barong.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ApiController/barong.rb" afterDir="false" />
10
10
  <change beforePath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" afterDir="false" />
11
11
  <change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
12
12
  <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/lib/mailer.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/mailer.rb" afterDir="false" />
14
14
  </list>
15
15
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
16
  <option name="TRACKING_ENABLED" value="true" />
@@ -22,6 +22,10 @@
22
22
  <component name="CoverageDataManager">
23
23
  <SUITE FILE_PATH="coverage/SimBot@Install_My_Gem.rcov" NAME="Install My Gem Coverage Results" MODIFIED="1528479809312" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="SimBot" />
24
24
  </component>
25
+ <component name="ExportToHTMLSettings">
26
+ <option name="printScope" value="1" />
27
+ <option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/exportToHTML" />
28
+ </component>
25
29
  <component name="FileEditorManager">
26
30
  <splitter split-orientation="horizontal" split-proportion="0.4615964">
27
31
  <split-first>
@@ -29,8 +33,17 @@
29
33
  <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
30
34
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
31
35
  <provider selected="true" editor-type-id="text-editor">
32
- <state relative-caret-position="253">
33
- <caret line="11" column="30" selection-start-line="11" selection-start-column="30" selection-end-line="11" selection-end-column="30" />
36
+ <state relative-caret-position="-104">
37
+ <caret line="25" column="67" lean-forward="true" selection-start-line="25" selection-start-column="67" selection-end-line="25" selection-end-column="67" />
38
+ </state>
39
+ </provider>
40
+ </entry>
41
+ </file>
42
+ <file leaf-file-name="barong.rb" pinned="false" current-in-tab="false">
43
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
44
+ <provider selected="true" editor-type-id="text-editor">
45
+ <state relative-caret-position="363">
46
+ <caret line="24" column="7" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="24" selection-end-column="7" />
34
47
  </state>
35
48
  </provider>
36
49
  </entry>
@@ -78,8 +91,17 @@
78
91
  <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
79
92
  <entry file="file://$PROJECT_DIR$/lib/utils.rb">
80
93
  <provider selected="true" editor-type-id="text-editor">
81
- <state relative-caret-position="324">
82
- <caret line="23" column="18" lean-forward="true" selection-start-line="23" selection-start-column="18" selection-end-line="23" selection-end-column="18" />
94
+ <state relative-caret-position="380">
95
+ <caret line="26" column="4" selection-start-line="26" selection-start-column="4" selection-end-line="27" selection-end-column="20" />
96
+ </state>
97
+ </provider>
98
+ </entry>
99
+ </file>
100
+ <file leaf-file-name="mailer.rb" pinned="false" current-in-tab="false">
101
+ <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
102
+ <provider selected="true" editor-type-id="text-editor">
103
+ <state relative-caret-position="378">
104
+ <caret line="30" column="3" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
83
105
  </state>
84
106
  </provider>
85
107
  </entry>
@@ -96,8 +118,8 @@
96
118
  <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="false">
97
119
  <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
98
120
  <provider selected="true" editor-type-id="text-editor">
99
- <state relative-caret-position="297">
100
- <caret line="32" column="18" selection-start-line="32" selection-start-column="18" selection-end-line="32" selection-end-column="18" />
121
+ <state relative-caret-position="667">
122
+ <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
101
123
  </state>
102
124
  </provider>
103
125
  </entry>
@@ -105,8 +127,8 @@
105
127
  <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
106
128
  <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
107
129
  <provider selected="true" editor-type-id="text-editor">
108
- <state relative-caret-position="851">
109
- <caret line="37" column="35" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
130
+ <state relative-caret-position="943">
131
+ <caret line="41" column="3" lean-forward="true" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
110
132
  </state>
111
133
  </provider>
112
134
  </entry>
@@ -153,10 +175,14 @@
153
175
  <option value="$PROJECT_DIR$/lib/wash_trade.rb" />
154
176
  <option value="$PROJECT_DIR$/lib/peatio.rb" />
155
177
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
156
- <option value="$PROJECT_DIR$/SimBot.gemspec" />
178
+ <option value="$PROJECT_DIR$/email_footer.html" />
179
+ <option value="$PROJECT_DIR$/email_template.txt" />
157
180
  <option value="$PROJECT_DIR$/lib/utils.rb" />
181
+ <option value="$PROJECT_DIR$/lib/mailer.rb" />
158
182
  <option value="$PROJECT_DIR$/lib/SimBot.rb" />
183
+ <option value="$PROJECT_DIR$/lib/ApiController/barong.rb" />
159
184
  <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
185
+ <option value="$PROJECT_DIR$/SimBot.gemspec" />
160
186
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
161
187
  </list>
162
188
  </option>
@@ -171,16 +197,17 @@
171
197
  <packageJsonPaths />
172
198
  </component>
173
199
  <component name="ProjectFrameBounds">
174
- <option name="x" value="1545" />
200
+ <option name="x" value="1443" />
175
201
  <option name="y" value="22" />
176
202
  <option name="width" value="1645" />
177
- <option name="height" value="1058" />
203
+ <option name="height" value="1028" />
178
204
  </component>
179
205
  <component name="ProjectView">
180
206
  <navigator proportions="" version="1">
181
207
  <foldersAlwaysOnTop value="true" />
182
208
  </navigator>
183
209
  <panes>
210
+ <pane id="Scope" />
184
211
  <pane id="ProjectPane">
185
212
  <subPane>
186
213
  <expand>
@@ -188,6 +215,11 @@
188
215
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
189
216
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
190
217
  </path>
218
+ <path>
219
+ <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
220
+ <item name="SimBot" type="462c0819:PsiDirectoryNode" />
221
+ <item name="bin" type="462c0819:PsiDirectoryNode" />
222
+ </path>
191
223
  <path>
192
224
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
193
225
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
@@ -196,13 +228,13 @@
196
228
  <path>
197
229
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
198
230
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
199
- <item name="spec" type="462c0819:PsiDirectoryNode" />
231
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
232
+ <item name="SimBot" type="462c0819:PsiDirectoryNode" />
200
233
  </path>
201
234
  </expand>
202
235
  <select />
203
236
  </subPane>
204
237
  </pane>
205
- <pane id="Scope" />
206
238
  </panes>
207
239
  </component>
208
240
  <component name="PropertiesComponent">
@@ -269,29 +301,32 @@
269
301
  <workItem from="1528301072964" duration="35313000" />
270
302
  <workItem from="1528709208580" duration="28075000" />
271
303
  <workItem from="1529482548938" duration="7932000" />
272
- <workItem from="1531747087172" duration="4075000" />
304
+ <workItem from="1531747087172" duration="4944000" />
305
+ <workItem from="1531824473237" duration="2590000" />
306
+ <workItem from="1532528275009" duration="12558000" />
307
+ <workItem from="1532961242324" duration="696000" />
273
308
  </task>
274
309
  <servers />
275
310
  </component>
276
311
  <component name="TimeTrackingManager">
277
- <option name="totallyTimeSpent" value="111611000" />
312
+ <option name="totallyTimeSpent" value="128324000" />
278
313
  </component>
279
314
  <component name="ToolWindowManager">
280
- <frame x="1545" y="22" width="1645" height="1058" extended-state="0" />
315
+ <frame x="1443" y="22" width="1645" height="1028" extended-state="0" />
281
316
  <editor active="true" />
282
317
  <layout>
283
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18964441" />
318
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.19650654" />
284
319
  <window_info anchor="bottom" id="TODO" order="6" />
285
320
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
286
- <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.51341236" side_tool="true" weight="0.3540305" />
321
+ <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50904554" side_tool="true" weight="0.3457207" />
287
322
  <window_info anchor="right" id="Database" order="3" />
288
323
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
324
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" visible="true" weight="0.3536036" />
289
325
  <window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
290
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3540305" />
291
326
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
292
- <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49619377" visible="true" weight="0.34422657" />
293
- <window_info id="Favorites" order="2" side_tool="true" />
327
+ <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" weight="0.3457207" />
294
328
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
329
+ <window_info id="Favorites" order="2" side_tool="true" />
295
330
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
296
331
  <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
297
332
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@@ -304,20 +339,20 @@
304
339
  <layout-to-restore>
305
340
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
306
341
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
307
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28540304" />
308
- <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
342
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
309
343
  <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2123369" />
310
344
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
311
345
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
312
346
  <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
313
347
  <window_info anchor="bottom" id="TODO" order="6" />
314
- <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
348
+ <window_info anchor="bottom" id="Version Control" order="11" />
349
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28540304" />
315
350
  <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
316
351
  <window_info anchor="right" id="Database" order="3" />
317
352
  <window_info anchor="bottom" id="Terminal" order="9" sideWeight="0.49619377" weight="0.41463414" />
318
353
  <window_info anchor="bottom" id="Event Log" order="10" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
319
354
  <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
320
- <window_info anchor="bottom" id="Version Control" order="11" />
355
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
321
356
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
322
357
  <window_info anchor="bottom" id="Message" order="0" />
323
358
  <window_info anchor="bottom" id="Messages" order="12" sideWeight="0.49965397" weight="0.3293348" />
@@ -339,34 +374,6 @@
339
374
  </breakpoint-manager>
340
375
  </component>
341
376
  <component name="editorHistoryManager">
342
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
343
- <provider selected="true" editor-type-id="text-editor">
344
- <state relative-caret-position="989">
345
- <caret line="43" column="47" selection-start-line="43" selection-start-column="47" selection-end-line="43" selection-end-column="47" />
346
- </state>
347
- </provider>
348
- </entry>
349
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
350
- <provider selected="true" editor-type-id="text-editor">
351
- <state relative-caret-position="138">
352
- <caret line="6" selection-start-line="6" selection-end-line="6" />
353
- </state>
354
- </provider>
355
- </entry>
356
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
357
- <provider selected="true" editor-type-id="text-editor">
358
- <state relative-caret-position="69">
359
- <caret line="3" selection-start-line="3" selection-end-line="3" />
360
- </state>
361
- </provider>
362
- </entry>
363
- <entry file="file://$PROJECT_DIR$/.gitignore">
364
- <provider selected="true" editor-type-id="text-editor">
365
- <state relative-caret-position="322">
366
- <caret line="14" selection-start-line="14" selection-end-line="14" />
367
- </state>
368
- </provider>
369
- </entry>
370
377
  <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
371
378
  <provider selected="true" editor-type-id="text-editor">
372
379
  <state relative-caret-position="529">
@@ -753,13 +760,6 @@
753
760
  </state>
754
761
  </provider>
755
762
  </entry>
756
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
757
- <provider selected="true" editor-type-id="text-editor">
758
- <state relative-caret-position="575">
759
- <caret line="25" column="5" lean-forward="true" selection-start-line="25" selection-start-column="5" selection-end-line="25" selection-end-column="5" />
760
- </state>
761
- </provider>
762
- </entry>
763
763
  <entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
764
764
  <provider selected="true" editor-type-id="text-editor">
765
765
  <state relative-caret-position="207">
@@ -802,31 +802,66 @@
802
802
  </state>
803
803
  </provider>
804
804
  </entry>
805
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
805
+ <entry file="file://$PROJECT_DIR$/exportToHTML/mailer.rb.html">
806
806
  <provider selected="true" editor-type-id="text-editor">
807
- <state relative-caret-position="851">
808
- <caret line="37" column="35" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
807
+ <state relative-caret-position="506">
808
+ <caret line="22" column="27" lean-forward="true" selection-start-line="22" selection-start-column="27" selection-end-line="22" selection-end-column="27" />
809
809
  </state>
810
810
  </provider>
811
811
  </entry>
812
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
812
+ <entry file="file://$PROJECT_DIR$/email_footer.html">
813
813
  <provider selected="true" editor-type-id="text-editor">
814
- <state relative-caret-position="324">
815
- <caret line="23" column="18" lean-forward="true" selection-start-line="23" selection-start-column="18" selection-end-line="23" selection-end-column="18" />
814
+ <state relative-caret-position="1081">
815
+ <caret line="47" column="117" selection-start-line="47" selection-start-column="117" selection-end-line="47" selection-end-column="117" />
816
816
  </state>
817
817
  </provider>
818
818
  </entry>
819
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
819
+ <entry file="file://$PROJECT_DIR$/email_template.txt">
820
820
  <provider selected="true" editor-type-id="text-editor">
821
821
  <state relative-caret-position="253">
822
- <caret line="11" column="30" selection-start-line="11" selection-start-column="30" selection-end-line="11" selection-end-column="30" />
822
+ <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
823
+ </state>
824
+ </provider>
825
+ </entry>
826
+ <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
827
+ <provider selected="true" editor-type-id="text-editor">
828
+ <state relative-caret-position="378">
829
+ <caret line="30" column="3" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
830
+ </state>
831
+ </provider>
832
+ </entry>
833
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
834
+ <provider selected="true" editor-type-id="text-editor">
835
+ <state relative-caret-position="363">
836
+ <caret line="24" column="7" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="24" selection-end-column="7" />
837
+ </state>
838
+ </provider>
839
+ </entry>
840
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
841
+ <provider selected="true" editor-type-id="text-editor">
842
+ <state relative-caret-position="380">
843
+ <caret line="26" column="4" selection-start-line="26" selection-start-column="4" selection-end-line="27" selection-end-column="20" />
823
844
  </state>
824
845
  </provider>
825
846
  </entry>
826
847
  <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
827
848
  <provider selected="true" editor-type-id="text-editor">
828
- <state relative-caret-position="297">
829
- <caret line="32" column="18" selection-start-line="32" selection-start-column="18" selection-end-line="32" selection-end-column="18" />
849
+ <state relative-caret-position="667">
850
+ <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
851
+ </state>
852
+ </provider>
853
+ </entry>
854
+ <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
855
+ <provider selected="true" editor-type-id="text-editor">
856
+ <state relative-caret-position="-104">
857
+ <caret line="25" column="67" lean-forward="true" selection-start-line="25" selection-start-column="67" selection-end-line="25" selection-end-column="67" />
858
+ </state>
859
+ </provider>
860
+ </entry>
861
+ <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
862
+ <provider selected="true" editor-type-id="text-editor">
863
+ <state relative-caret-position="943">
864
+ <caret line="41" column="3" lean-forward="true" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
830
865
  </state>
831
866
  </provider>
832
867
  </entry>
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.18)
4
+ SimBot (0.1.19)
5
5
  json
6
- pusher-client
6
+ mail
7
7
  rest-client
8
8
  spreadsheet
9
9
  thor (~> 0.20)
10
+ websocket-client-simple
10
11
 
11
12
  GEM
12
13
  remote: https://rubygems.org/
@@ -14,16 +15,17 @@ GEM
14
15
  diff-lcs (1.3)
15
16
  domain_name (0.5.20180417)
16
17
  unf (>= 0.0.5, < 1.0.0)
18
+ event_emitter (0.2.6)
17
19
  http-cookie (1.0.3)
18
20
  domain_name (~> 0.5)
19
21
  json (2.1.0)
22
+ mail (2.7.0)
23
+ mini_mime (>= 0.1.1)
20
24
  mime-types (3.1)
21
25
  mime-types-data (~> 3.2015)
22
26
  mime-types-data (3.2016.0521)
27
+ mini_mime (1.0.0)
23
28
  netrc (0.11.0)
24
- pusher-client (0.6.2)
25
- json
26
- websocket (~> 1.0)
27
29
  rake (10.5.0)
28
30
  rest-client (2.0.2)
29
31
  http-cookie (>= 1.0.2, < 2.0)
@@ -50,6 +52,9 @@ GEM
50
52
  unf_ext
51
53
  unf_ext (0.0.7.5)
52
54
  websocket (1.2.8)
55
+ websocket-client-simple (0.3.0)
56
+ event_emitter
57
+ websocket
53
58
 
54
59
  PLATFORMS
55
60
  ruby
@@ -34,9 +34,9 @@ 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
+ spec.add_dependency "websocket-client-simple"
38
38
  spec.add_dependency "rest-client"
39
39
  spec.add_dependency "json"
40
40
  spec.add_dependency "spreadsheet"
41
-
41
+ spec.add_dependency "mail"
42
42
  end
Binary file
Binary file
@@ -0,0 +1,48 @@
1
+ <div>
2
+
3
+ <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; margin-bottom: 10px;">
4
+ <a style="text-decoration:none" href="www.ovadia.me" class="clink logo-container">
5
+ <img src="https://s3-eu-west-1.amazonaws.com/www.ovex.io/ovex_logo.png" alt="OVEX" border="0" class="sig-logo" height="50" width="183">
6
+
7
+ </a>
8
+ </p>
9
+ <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; color: rgb(33, 33, 33); margin-bottom: 10px;"><span style="font-weight: bold; display: inline;" class="txt signature_name-target sig-hide">Jonathan Ovadia</span>
10
+ <span class="title-sep sep" style="display: inline;">/</span> <span style="display: inline;" class="txt signature_jobtitle-target sig-hide">Founder and CEO</span> <span class="email-sep break" style="display: inline;"><br></span>
11
+ <a class="link email signature_email-target sig-hide" href="mailto:jon@ovex.io" style="color: rgb(71, 124, 204); text-decoration: none; display: inline;">jon@ovex.io</a><span class="signature_email-sep sep" style="display: inline;"> / </span><span style="display: inline;" class="txt signature_mobilephone-target sig-hide">+27 82 600 7474</span></p>
12
+
13
+ <p class="company-info" style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; margin-bottom: 10px;">
14
+ <span style="font-weight: bold; color: rgb(33, 33, 33); display: inline;" class="txt signature_companyname-target sig-hide"> OVEX </span>
15
+ <span class="company-sep break" style="display: inline;"><br></span>
16
+ <span style="color: rgb(33, 33, 33); display: inline;" class="txt signature_officephone-target sig-hide">Twitter: @ov_ceo</span><br>
17
+ <span style="color: rgb(33, 33, 33); display: inline;" class="txt signature_officephone-target sig-hide">Skype: ovadiajon</span><br>
18
+ <span style="color: #212121;" class="txt signature_fax-target sig-hide"></span>
19
+ <span class="address-sep break" style="display: inline;"><br></span> <span style="color: rgb(33, 33, 33); display: inline;" class="txt signature_address-target sig-hide">76 Regent Road The Point Centre, 5th floor, Sea Point, Cape Town, 8060</span>
20
+ <span class="address2-sep break" style="display: inline;"><br></span> <span style="color: #212121;" class="txt signature_address2-target sig-hide"></span>
21
+ <span class="website-sep break" style="display: block;"></span>
22
+ <a class="link signature_website-target sig-hide" href="http://www.ovex.io" style="color: rgb(71, 124, 204); text-decoration: none; display: inline;">www.ovex.io</a>
23
+ </p>
24
+
25
+
26
+ <p class="social-list" style="font-size: 0px; line-height: 0; font-family: Helvetica, Arial, sans-serif;">
27
+ <a style="text-decoration: none; display: inline;" class="social signature_twitter-target sig-hide" href="https://twitter.com/ov_ceo">
28
+ <img width="16" style="margin-bottom:2px; border:none; display:inline;" height="16" data-filename="twitter.png" src="https://s3-eu-west-1.amazonaws.com/ovsoft.resources/twitter.png" alt="Twitter">
29
+ </a>
30
+ <span style="white-space: nowrap; display: inline;" class="signature_twitter-sep social-sep">
31
+ <img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2">
32
+ </span>
33
+
34
+
35
+
36
+
37
+ <a style="text-decoration: none; display: inline;" class="social signature_linkedin-target sig-hide" href="https://www.linkedin.com/in/ovceo/">
38
+ <img width="16" style="margin-bottom:2px; border:none; display:inline;" height="16" data-filename="linkedin.png" src="https://s3-eu-west-1.amazonaws.com/ovsoft.resources/linkedin.png" alt="LinkedIn">
39
+ </a>
40
+ <span style="white-space: nowrap; display: inline;" class="signature_linkedin-sep social-sep">
41
+ <img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2">
42
+ </span>
43
+
44
+ </p></div>
45
+
46
+ <p></p>
47
+
48
+ <p style="font-family: Helvetica, Arial, sans-serif; color: #212121; font-size: 9px; line-height: 12px;" class="txt signature_disclaimer-target"></p>
@@ -0,0 +1,11 @@
1
+ Hi {var},
2
+ <p>
3
+ I’m contacting you from OVEX - a cryptocurrency exchange with the goal of placing token projects and their communities back in control of their tokens on the secondary market, all while providing access to a liquid marketplace and in turn increase token exposure.
4
+ <p>
5
+ We’re really interested in your project and think your {var} token is a great use of blockchain technology.
6
+ <p>
7
+ There are a few synergies that could exist between our projects. We’re in talks with a few tokens to be part of our first cohort of listed tokens, and we’re offering free market making to those projects. Would you be available for a short 30-minute call with our founding team this week to discuss the prospect. If you’d prefer I’d be happy to do it over telegram in any spare time you might have?
8
+ <p>
9
+ Thanks for your time and I look forward to hearing from you.
10
+ <p>
11
+ Kind Regards
@@ -0,0 +1,63 @@
1
+ <html>
2
+ <head>
3
+ <title>mailer.rb</title>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style type="text/css">
6
+ .ln { color: #586e75; font-weight: normal; font-style: normal; }
7
+ .s0 { color: rgb(181,137,0); }
8
+ .s1 { color: rgb(131,148,150); }
9
+ .s2 { color: rgb(133,153,0); }
10
+ .s3 { color: rgb(203,75,22); }
11
+ .s4 { color: rgb(108,113,196); font-weight: bold; }
12
+ .s5 { color: rgb(204,120,51); }
13
+ .s6 { color: rgb(220,50,47); }
14
+ .s7 { color: rgb(38,139,210); }
15
+ .s8 { color: rgb(82,161,46); font-weight: bold; }
16
+ </style>
17
+ </head>
18
+ <BODY BGCOLOR="#2b36">
19
+ <TABLE CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
20
+ <TR><TD><CENTER>
21
+ <FONT FACE="Arial, Helvetica" COLOR="#000000">
22
+ mailer.rb</FONT>
23
+ </center></TD></TR></TABLE>
24
+ <pre>
25
+ <span class="s0">class </span><span class="s2">Mailer</span><span class="s1">
26
+ </span><span class="s3">require </span><span class="s1">'mail'
27
+
28
+ </span><span class="s0">def </span><span class="s3">initialize</span><span class="s1">(</span><span class="s3">username</span><span class="s1">, </span><span class="s3">password</span><span class="s1">)
29
+ </span><span class="s4">@username</span><span class="s1">
30
+ </span><span class="s4">@password</span><span class="s1">
31
+ </span><span class="s0">end</span><span class="s1">
32
+
33
+ </span><span class="s0">def </span><span class="s3">send</span><span class="s1">(</span><span class="s3">to_</span><span class="s1">, </span><span class="s3">from_</span><span class="s1">, </span><span class="s3">subject_</span><span class="s1">, </span><span class="s3">body_</span><span class="s1">)
34
+ </span><span class="s3">options </span><span class="s5">= </span><span class="s1">{</span><span class="s6">:address </span><span class="s7">=&gt; </span><span class="s8">&quot;smtp.gmail.com&quot;</span><span class="s1">,
35
+ </span><span class="s6">:port </span><span class="s7">=&gt; </span><span class="s3">587</span><span class="s1">,
36
+ </span><span class="s6">:user_name </span><span class="s7">=&gt; </span><span class="s1">'jon@ovex.io',
37
+ </span><span class="s6">:password </span><span class="s7">=&gt; </span><span class="s1">'aewowzkiusgrdcxx',
38
+ </span><span class="s6">:authentication </span><span class="s7">=&gt; </span><span class="s1">'plain',
39
+ </span><span class="s6">:enable_starttls_auto </span><span class="s7">=&gt; </span><span class="s0">true</span><span class="s1">}
40
+ </span><span class="s2">Mail</span><span class="s1">.</span><span class="s3">defaults </span><span class="s0">do</span><span class="s1">
41
+ </span><span class="s3">delivery_method </span><span class="s6">:smtp</span><span class="s1">, </span><span class="s3">options</span><span class="s1">
42
+ </span><span class="s0">end</span><span class="s1">
43
+ </span><span class="s2">Mail</span><span class="s1">.</span><span class="s3">deliver </span><span class="s0">do</span><span class="s1">
44
+ </span><span class="s3">to to_</span><span class="s1">
45
+ </span><span class="s3">from from_</span><span class="s1">
46
+ </span><span class="s3">subject subject_</span><span class="s1">
47
+
48
+ </span><span class="s3">text_part </span><span class="s0">do</span><span class="s1">
49
+ </span><span class="s3">content_type </span><span class="s1">'text/plain'
50
+ </span><span class="s3">body body_</span><span class="s1">
51
+ </span><span class="s0">end</span><span class="s1">
52
+
53
+ </span><span class="s3">html_part </span><span class="s0">do</span><span class="s1">
54
+ </span><span class="s3">content_type </span><span class="s1">'text/html; charset=UTF-8'
55
+ </span><span class="s3">body </span><span class="s2">File</span><span class="s1">.</span><span class="s3">read</span><span class="s1">('email_footer.html')
56
+ </span><span class="s0">end</span><span class="s1">
57
+
58
+ </span><span class="s0">end</span><span class="s1">
59
+ </span><span class="s0">end</span><span class="s1">
60
+
61
+ </span><span class="s0">end</span></pre>
62
+ </body>
63
+ </html>
@@ -16,7 +16,7 @@ module ApiController
16
16
  'email': email,
17
17
  'password': password,
18
18
  'application_id': @app_id,
19
- 'expires_in': 60_000_000
19
+ 'expires_in': 80_000
20
20
  },
21
21
  {
22
22
  'content_type': 'application/x-www-form-urlencoded'
@@ -30,7 +30,7 @@ module Deamons
30
30
  @api.post_order(@market, price, vol, 'sell')
31
31
  @api.post_order(@market, price, vol, 'buy')
32
32
  puts "order ##{count} placed"
33
- delay = (5.00 / @freq)
33
+ delay = (1 / @freq).to_i
34
34
  sleep(delay)
35
35
  count += 1
36
36
  rescue ::StandardError => e
@@ -1,7 +1,11 @@
1
1
  require "SimBot/version"
2
2
  require 'thor'
3
- require 'pusher-client'
3
+
4
+ require 'rubygems'
5
+ require 'websocket-client-simple'
6
+
4
7
  require_relative 'ApiController/barong'
8
+ require_relative 'mailer'
5
9
  require_relative 'ApiController/peatio'
6
10
  require_relative 'Deamons/wash_trade'
7
11
  module SimBot
@@ -10,7 +14,7 @@ module SimBot
10
14
  require 'utils'
11
15
  desc 'start', 'Start simulation bot parsing in base-url and auth token.'
12
16
  method_option :email, type: :string, default: 'admin@ovex.io', required: true, desc: 'Your OVEX email address'
13
- method_option :password, type: :string, default: '7P1CMgrr', required: true, desc: 'Your OVEX password'
17
+ method_option :password, type: :string, default: 'Pass123', required: true, desc: 'Your OVEX password'
14
18
  method_option :peatio_base_url, type: :string, default: 'https://api.review.ovex.io/api/v2', desc: 'Peatio API base URL'
15
19
  method_option :barong_base_url, type: :string, default: 'https://auth.review.ovex.io/api/v1', desc: 'Barong API base URL'
16
20
  method_option :app_id, type: :string, default: 'ceca08fbc83c2fb4eb53bb026489', desc: 'Peatio applicaiton id from Barong'
@@ -42,7 +46,21 @@ module SimBot
42
46
  end
43
47
  desc 'test_ws', 'connect to web socket and test it is working correctly'
44
48
  def test_ws
45
- Barong::API.log_in("hi there","my man")
49
+ # Create websocket connection.
50
+ ws = WebSocket::Client::Simple.connect("ws://ws.api.review.ovex.io:80")
51
+ puts("here")
52
+ # Called on messaged from websocket server.
53
+ ws.on(:message) do |msg|
54
+ puts msg.data
55
+ end
56
+
57
+ # Called if connection to server has been opened.
58
+ ws.on(:open) do
59
+ # Authenticate.
60
+ msg = "{ \"jwt\": \"Bearer ngrgiuerubrgeiru\"}"
61
+
62
+ ws.send msg
63
+ end
46
64
  end
47
65
  desc 'quote market', 'get the quote for the given market e.g. btc/eth'
48
66
  def quote(market)
@@ -54,5 +72,11 @@ module SimBot
54
72
  data = Utils.cmc_data
55
73
  Utils.write_to_spreadsheet(data, outfile)
56
74
  end
75
+ desc 'send_emails data_file template_file', 'Sends emails based on the data in the provided data_file'
76
+ method_option :email, type: :string, default: 'jon@ovex.io', required: true, desc: 'Your email address'
77
+ method_option :password, type: :string, required: true, desc: 'Your password'
78
+ def send_emails(data_file, template_file)
79
+ Utils.send_mail(data_file, template_file, options[:email], options[:password])
80
+ end
57
81
  end
58
82
  end
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
@@ -0,0 +1,31 @@
1
+ class Mailer
2
+ require 'mail'
3
+
4
+ def initialize(username, password)
5
+ @username = username
6
+ @password = password
7
+ end
8
+
9
+ def send(to_, cc_, from_, subject_, body_)
10
+ options = {:address => "smtp.gmail.com",
11
+ :port => 587,
12
+ :user_name => @username,
13
+ :password => @password,
14
+ :authentication => 'plain',
15
+ :enable_starttls_auto => true}
16
+
17
+ mail = Mail.new do
18
+ delivery_method :smtp, options
19
+ to to_
20
+ cc cc_
21
+ from from_
22
+ subject subject_
23
+ end
24
+ html_part = Mail::Part.new do
25
+ content_type 'text/html; charset=UTF-8'
26
+ body "#{body_}\n #{File.read('email_footer.html')}"
27
+ end
28
+ mail.html_part = html_part
29
+ mail.deliver
30
+ end
31
+ end
@@ -129,6 +129,31 @@ class Utils
129
129
  false
130
130
  end
131
131
 
132
+ def self.send_mail(data_file, template_file, email, password)
133
+ m = Mailer.new(email, password)
134
+ data = read_from_spreadsheet(data_file)
135
+ data.delete_at(0)
136
+ data.each do |row|
137
+ File.open(template_file, "r") do |f|
138
+ m.send(row[2], row[3], 'jon@ovex.io', 'COLLABORATION', find_and_replace(f, '{var}', row))
139
+ puts "Sent mail to #{row[2]}"
140
+ end
141
+ end
142
+ end
143
+
144
+ def self.find_and_replace(file, replce_string, data)
145
+ i = 0
146
+ result = ''
147
+ file.each_line do |line|
148
+ if line.include? "{var}"
149
+ line = line.gsub(replce_string, data[i])
150
+ i += 1
151
+ end
152
+ result += line
153
+ end
154
+ result
155
+ end
156
+
132
157
  # @return [Array] cmc data
133
158
  def self.cmc_data
134
159
  data = []
@@ -163,5 +188,19 @@ class Utils
163
188
  book.write(name)
164
189
  puts "Data written to #{name}"
165
190
  end
191
+
192
+ # @param [String] name
193
+ # @return [Array]
194
+ def self.read_from_spreadsheet(name)
195
+ data = []
196
+ book = Spreadsheet.open(name)
197
+ sheet1 = book.worksheet(0) # can use an index or worksheet name
198
+ sheet1.each do |row|
199
+ break if row[0].nil? # if first cell empty
200
+ data.push(row)
201
+ end
202
+ data
203
+ end
204
+
166
205
  end
167
206
 
Binary file
Binary file
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.19
4
+ version: 0.1.20
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-07-16 00:00:00.000000000 Z
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.20'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pusher-client
70
+ name: websocket-client-simple
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mail
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: OVEX simulation Bot CLI used to simulate real world traing activity on
126
140
  the OVEX exchange for testing and QA purposes
127
141
  email:
@@ -152,13 +166,21 @@ files:
152
166
  - SimBot.gemspec
153
167
  - bin/console
154
168
  - bin/setup
169
+ - cmc_data.xls
170
+ - cmc_data.xlsx
171
+ - email_footer.html
172
+ - email_template.txt
155
173
  - exe/SimBot
174
+ - exportToHTML/mailer.rb.html
156
175
  - lib/ApiController/barong.rb
157
176
  - lib/ApiController/peatio.rb
158
177
  - lib/Deamons/wash_trade.rb
159
178
  - lib/SimBot.rb
160
179
  - lib/SimBot/version.rb
180
+ - lib/mailer.rb
161
181
  - lib/utils.rb
182
+ - project_email_data.xls
183
+ - project_email_data.xlsx
162
184
  homepage: https://github.com/ovCEO/SimBot
163
185
  licenses:
164
186
  - MIT