HackT 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +40 -40
- data/lib/HackT.rb +1 -1
- data/lib/hackt/request.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530dba1ddb1385a5d41664386653242dae82c07e
|
4
|
+
data.tar.gz: c37833c68392f55cebe9a5dff5a3add36cf55cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add95dd78b54d584b11f128de37108f6f8c0530ad1c6a00210ae024e6b1f9a9df06134cf412505951ce8f29576c74c4085d1a935c541759de301f2a1a07e807a
|
7
|
+
data.tar.gz: 50d061415e75b4ac987057b7025ecff82bdbbebbbf1d28944e5d607e32a27e60a1145e36200c5d0d80bbb5ccaeec60240ecb49dfc3793ea7c2354de727140c96
|
data/.idea/workspace.xml
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
</component>
|
15
15
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
16
16
|
<component name="CoverageDataManager">
|
17
|
-
<SUITE FILE_PATH="coverage/HackT@console.coverage" NAME="console Coverage Results" MODIFIED="
|
17
|
+
<SUITE FILE_PATH="coverage/HackT@console.coverage" NAME="console Coverage Results" MODIFIED="1452362855566" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bin" MODULE_NAME="HackT" />
|
18
18
|
<SUITE FILE_PATH="coverage/HackT@request.coverage" NAME="request Coverage Results" MODIFIED="1452177492784" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/hackt" MODULE_NAME="HackT" />
|
19
19
|
</component>
|
20
20
|
<component name="CreatePatchCommitExecutor">
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<entry file="file://$PROJECT_DIR$/lib/HackT.rb">
|
31
31
|
<provider selected="true" editor-type-id="text-editor">
|
32
32
|
<state vertical-scroll-proportion="0.0">
|
33
|
-
<caret line="
|
33
|
+
<caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
|
34
34
|
<folding />
|
35
35
|
</state>
|
36
36
|
</provider>
|
@@ -66,10 +66,10 @@
|
|
66
66
|
</provider>
|
67
67
|
</entry>
|
68
68
|
</file>
|
69
|
-
<file leaf-file-name="console" pinned="false" current-in-tab="
|
69
|
+
<file leaf-file-name="console" pinned="false" current-in-tab="false">
|
70
70
|
<entry file="file://$PROJECT_DIR$/bin/console">
|
71
71
|
<provider selected="true" editor-type-id="text-editor">
|
72
|
-
<state vertical-scroll-proportion="0.
|
72
|
+
<state vertical-scroll-proportion="0.0">
|
73
73
|
<caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
|
74
74
|
<folding />
|
75
75
|
</state>
|
@@ -106,11 +106,11 @@
|
|
106
106
|
</provider>
|
107
107
|
</entry>
|
108
108
|
</file>
|
109
|
-
<file leaf-file-name="request.rb" pinned="false" current-in-tab="
|
109
|
+
<file leaf-file-name="request.rb" pinned="false" current-in-tab="true">
|
110
110
|
<entry file="file://$PROJECT_DIR$/lib/hackt/request.rb">
|
111
111
|
<provider selected="true" editor-type-id="text-editor">
|
112
|
-
<state vertical-scroll-proportion="0.
|
113
|
-
<caret line="
|
112
|
+
<state vertical-scroll-proportion="0.74019605">
|
113
|
+
<caret line="158" column="46" selection-start-line="158" selection-start-column="46" selection-end-line="158" selection-end-column="46" />
|
114
114
|
<folding />
|
115
115
|
</state>
|
116
116
|
</provider>
|
@@ -135,7 +135,6 @@
|
|
135
135
|
<option value="$PROJECT_DIR$/lib/hackt/hackex.rb" />
|
136
136
|
<option value="$PROJECT_DIR$/lib/hackt/net/std.rb" />
|
137
137
|
<option value="$PROJECT_DIR$/Rakefile" />
|
138
|
-
<option value="$PROJECT_DIR$/lib/HackT.rb" />
|
139
138
|
<option value="$PROJECT_DIR$/lib/hackt/error.rb" />
|
140
139
|
<option value="$PROJECT_DIR$/bin/game" />
|
141
140
|
<option value="$PROJECT_DIR$/lib/hackt/net.rb" />
|
@@ -143,6 +142,7 @@
|
|
143
142
|
<option value="$PROJECT_DIR$/HackT.gemspec" />
|
144
143
|
<option value="$PROJECT_DIR$/bin/console" />
|
145
144
|
<option value="$PROJECT_DIR$/Gemfile" />
|
145
|
+
<option value="$PROJECT_DIR$/lib/HackT.rb" />
|
146
146
|
<option value="$PROJECT_DIR$/lib/hackt/request.rb" />
|
147
147
|
</list>
|
148
148
|
</option>
|
@@ -156,9 +156,9 @@
|
|
156
156
|
</component>
|
157
157
|
<component name="ProjectFrameBounds">
|
158
158
|
<option name="x" value="65" />
|
159
|
-
<option name="y" value="
|
159
|
+
<option name="y" value="24" />
|
160
160
|
<option name="width" value="1615" />
|
161
|
-
<option name="height" value="
|
161
|
+
<option name="height" value="1026" />
|
162
162
|
</component>
|
163
163
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
164
164
|
<OptionsSetting value="true" id="Add" />
|
@@ -183,8 +183,6 @@
|
|
183
183
|
<sortByType />
|
184
184
|
</navigator>
|
185
185
|
<panes>
|
186
|
-
<pane id="Scope" />
|
187
|
-
<pane id="Scratches" />
|
188
186
|
<pane id="ProjectPane">
|
189
187
|
<subPane>
|
190
188
|
<PATH>
|
@@ -251,6 +249,8 @@
|
|
251
249
|
</PATH>
|
252
250
|
</subPane>
|
253
251
|
</pane>
|
252
|
+
<pane id="Scope" />
|
253
|
+
<pane id="Scratches" />
|
254
254
|
</panes>
|
255
255
|
</component>
|
256
256
|
<component name="PropertiesComponent">
|
@@ -403,8 +403,8 @@
|
|
403
403
|
</list>
|
404
404
|
<recent_temporary>
|
405
405
|
<list size="2">
|
406
|
-
<item index="0" class="java.lang.String" itemvalue="Ruby.
|
407
|
-
<item index="1" class="java.lang.String" itemvalue="Ruby.
|
406
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.request" />
|
407
|
+
<item index="1" class="java.lang.String" itemvalue="Ruby.console" />
|
408
408
|
</list>
|
409
409
|
</recent_temporary>
|
410
410
|
</component>
|
@@ -431,27 +431,27 @@
|
|
431
431
|
</todo-panel>
|
432
432
|
</component>
|
433
433
|
<component name="ToolWindowManager">
|
434
|
-
<frame x="65" y="
|
435
|
-
<editor active="
|
434
|
+
<frame x="65" y="24" width="1615" height="1026" extended-state="6" />
|
435
|
+
<editor active="true" />
|
436
436
|
<layout>
|
437
437
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3197492" sideWeight="0.734863" order="7" side_tool="false" content_ui="tabs" />
|
438
438
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32938644" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
439
439
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
440
|
-
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
440
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2530274" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
441
441
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
442
442
|
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
443
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
444
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
445
|
-
<window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3291536" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
443
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2753346" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
446
444
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
447
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
445
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3291536" sideWeight="0.3499044" order="7" side_tool="true" content_ui="tabs" />
|
448
446
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
449
447
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
450
448
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
451
449
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32938644" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
452
450
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
451
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
453
452
|
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32948583" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
454
453
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
454
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3291536" sideWeight="0.6500956" order="2" side_tool="false" content_ui="tabs" />
|
455
455
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
456
456
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
457
457
|
<window_info id="Thumbnails" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32948583" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
@@ -796,14 +796,6 @@
|
|
796
796
|
</state>
|
797
797
|
</provider>
|
798
798
|
</entry>
|
799
|
-
<entry file="file://$PROJECT_DIR$/lib/hackt/net.rb">
|
800
|
-
<provider selected="true" editor-type-id="text-editor">
|
801
|
-
<state vertical-scroll-proportion="0.0">
|
802
|
-
<caret line="2" column="22" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
|
803
|
-
<folding />
|
804
|
-
</state>
|
805
|
-
</provider>
|
806
|
-
</entry>
|
807
799
|
<entry file="file://$PROJECT_DIR$/lib/hackt/error.rb">
|
808
800
|
<provider selected="true" editor-type-id="text-editor">
|
809
801
|
<state vertical-scroll-proportion="0.0">
|
@@ -828,14 +820,6 @@
|
|
828
820
|
</state>
|
829
821
|
</provider>
|
830
822
|
</entry>
|
831
|
-
<entry file="file://$PROJECT_DIR$/lib/HackT.rb">
|
832
|
-
<provider selected="true" editor-type-id="text-editor">
|
833
|
-
<state vertical-scroll-proportion="0.0">
|
834
|
-
<caret line="1" column="1" selection-start-line="1" selection-start-column="1" selection-end-line="1" selection-end-column="1" />
|
835
|
-
<folding />
|
836
|
-
</state>
|
837
|
-
</provider>
|
838
|
-
</entry>
|
839
823
|
<entry file="file://$PROJECT_DIR$/Rakefile">
|
840
824
|
<provider selected="true" editor-type-id="text-editor">
|
841
825
|
<state vertical-scroll-proportion="0.0">
|
@@ -860,21 +844,37 @@
|
|
860
844
|
</state>
|
861
845
|
</provider>
|
862
846
|
</entry>
|
863
|
-
<entry file="file://$PROJECT_DIR$/lib/hackt/
|
847
|
+
<entry file="file://$PROJECT_DIR$/lib/hackt/net.rb">
|
864
848
|
<provider selected="true" editor-type-id="text-editor">
|
865
849
|
<state vertical-scroll-proportion="0.0">
|
866
|
-
<caret line="
|
850
|
+
<caret line="2" column="22" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
|
851
|
+
<folding />
|
852
|
+
</state>
|
853
|
+
</provider>
|
854
|
+
</entry>
|
855
|
+
<entry file="file://$PROJECT_DIR$/lib/HackT.rb">
|
856
|
+
<provider selected="true" editor-type-id="text-editor">
|
857
|
+
<state vertical-scroll-proportion="0.0">
|
858
|
+
<caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
|
867
859
|
<folding />
|
868
860
|
</state>
|
869
861
|
</provider>
|
870
862
|
</entry>
|
871
863
|
<entry file="file://$PROJECT_DIR$/bin/console">
|
872
864
|
<provider selected="true" editor-type-id="text-editor">
|
873
|
-
<state vertical-scroll-proportion="0.
|
865
|
+
<state vertical-scroll-proportion="0.0">
|
874
866
|
<caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
|
875
867
|
<folding />
|
876
868
|
</state>
|
877
869
|
</provider>
|
878
870
|
</entry>
|
871
|
+
<entry file="file://$PROJECT_DIR$/lib/hackt/request.rb">
|
872
|
+
<provider selected="true" editor-type-id="text-editor">
|
873
|
+
<state vertical-scroll-proportion="0.74019605">
|
874
|
+
<caret line="158" column="46" selection-start-line="158" selection-start-column="46" selection-end-line="158" selection-end-column="46" />
|
875
|
+
<folding />
|
876
|
+
</state>
|
877
|
+
</provider>
|
878
|
+
</entry>
|
879
879
|
</component>
|
880
880
|
</project>
|
data/lib/HackT.rb
CHANGED
data/lib/hackt/request.rb
CHANGED
@@ -152,6 +152,14 @@ module HackT
|
|
152
152
|
HackTNet::Get '/process/info', auth_token: auth_token
|
153
153
|
end
|
154
154
|
|
155
|
+
def ProcessOverclock(auth_token, process_id)
|
156
|
+
HackTNet::Post '/process/overclock', auth_token: auth_token, process_id: process_id
|
157
|
+
end
|
158
|
+
|
159
|
+
def ProcessRetry(auth_token, process_id)
|
160
|
+
HackTNet::Post '/process/retry', auth_token: auth_token, process_id: process_id
|
161
|
+
end
|
162
|
+
|
155
163
|
def EndProcess(auth_token, process_id)
|
156
164
|
HackTNet::Post '/process/end', auth_token: auth_token, process_id: process_id
|
157
165
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HackT
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- grig191
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|