HackT 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 946b0d3b901974387fdea9b0bc110cdf42ed9ddd
4
- data.tar.gz: 1124d14361234821c85621ca2be7a00230f678b2
3
+ metadata.gz: b91b015f97ca90d53297f5849e739fd57166e8ee
4
+ data.tar.gz: e451ade8cdfe87db18e9b0d5f0074e3aabca86e8
5
5
  SHA512:
6
- metadata.gz: 1057697362e95b9d2319e109ec481c23426ededf6fca394cfdf08011de3eb53bd690ac46de9c51870c1c62d7b8b1b96eaa3580370ff12eb8d51abaf70d58c8b7
7
- data.tar.gz: 04f0fa391519b7bd724ff0217e7fb7088afee9e0a59af7402c926adaa091f32275cc35fd19a19a4aca47467f668e1000cf93cb9517a144bc42e3155da6979998
6
+ metadata.gz: 361efa21f919c014765c143f07ad08a1bd9613b3371b96fbc4447392325d6f8fc3342504e2d453094b777ebb7061617ecf9f41291ebc5b94f38d9daea335f8a8
7
+ data.tar.gz: 980da4e8b2577dc4babb80c3227beee68ca54b0bfc36638e82597e181d30ff124d368eaeaa1954b3d77a63061650352901084a557dc4a915910c87ffed09520d
@@ -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="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" />
17
+ <SUITE FILE_PATH="coverage/HackT@console.coverage" NAME="console Coverage Results" MODIFIED="1452692427920" 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">
@@ -56,21 +56,21 @@
56
56
  </provider>
57
57
  </entry>
58
58
  </file>
59
- <file leaf-file-name="net.rb" pinned="false" current-in-tab="true">
59
+ <file leaf-file-name="net.rb" pinned="false" current-in-tab="false">
60
60
  <entry file="file://$PROJECT_DIR$/lib/hackt/net.rb">
61
61
  <provider selected="true" editor-type-id="text-editor">
62
- <state vertical-scroll-proportion="0.7246377">
63
- <caret line="28" column="12" selection-start-line="28" selection-start-column="12" selection-end-line="28" selection-end-column="12" />
62
+ <state vertical-scroll-proportion="0.0">
63
+ <caret line="15" column="11" selection-start-line="15" selection-start-column="11" selection-end-line="15" selection-end-column="11" />
64
64
  <folding />
65
65
  </state>
66
66
  </provider>
67
67
  </entry>
68
68
  </file>
69
- <file leaf-file-name="console" pinned="false" current-in-tab="false">
69
+ <file leaf-file-name="console" pinned="false" current-in-tab="true">
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.0">
73
- <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
72
+ <state vertical-scroll-proportion="1.4109589">
73
+ <caret line="72" column="5" selection-start-line="72" selection-start-column="5" selection-end-line="72" selection-end-column="5" />
74
74
  <folding />
75
75
  </state>
76
76
  </provider>
@@ -139,11 +139,11 @@
139
139
  <option value="$PROJECT_DIR$/bin/game" />
140
140
  <option value="$PROJECT_DIR$/lib/hackt.rb" />
141
141
  <option value="$PROJECT_DIR$/HackT.gemspec" />
142
- <option value="$PROJECT_DIR$/bin/console" />
143
142
  <option value="$PROJECT_DIR$/Gemfile" />
144
143
  <option value="$PROJECT_DIR$/lib/HackT.rb" />
145
144
  <option value="$PROJECT_DIR$/lib/hackt/request.rb" />
146
145
  <option value="$PROJECT_DIR$/lib/hackt/net.rb" />
146
+ <option value="$PROJECT_DIR$/bin/console" />
147
147
  </list>
148
148
  </option>
149
149
  </component>
@@ -156,9 +156,9 @@
156
156
  </component>
157
157
  <component name="ProjectFrameBounds">
158
158
  <option name="x" value="65" />
159
- <option name="y" value="24" />
159
+ <option name="y" value="52" />
160
160
  <option name="width" value="1615" />
161
- <option name="height" value="1026" />
161
+ <option name="height" value="998" />
162
162
  </component>
163
163
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
164
164
  <OptionsSetting value="true" id="Add" />
@@ -249,14 +249,14 @@
249
249
  </PATH>
250
250
  </subPane>
251
251
  </pane>
252
- <pane id="Scratches" />
253
252
  <pane id="Scope" />
253
+ <pane id="Scratches" />
254
254
  </panes>
255
255
  </component>
256
256
  <component name="PropertiesComponent">
257
257
  <property name="WebServerToolWindowFactoryState" value="true" />
258
258
  <property name="FullScreen" value="false" />
259
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
259
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../HackEx" />
260
260
  <property name="recentsLimit" value="5" />
261
261
  </component>
262
262
  <component name="RecentsManager">
@@ -431,29 +431,29 @@
431
431
  </todo-panel>
432
432
  </component>
433
433
  <component name="ToolWindowManager">
434
- <frame x="65" y="24" width="1615" height="1026" extended-state="6" />
434
+ <frame x="65" y="52" width="1615" height="998" extended-state="6" />
435
435
  <editor active="false" />
436
436
  <layout>
437
- <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3197492" sideWeight="0.7272148" order="7" side_tool="false" content_ui="tabs" />
437
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30825496" sideWeight="0.7163799" 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
440
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" 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="true" weight="0.27852136" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
443
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.29955384" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
444
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" />
445
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3197492" sideWeight="0.27278522" order="7" side_tool="true" content_ui="tabs" />
445
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33907428" sideWeight="0.35627788" order="7" side_tool="true" content_ui="tabs" />
446
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" />
447
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" />
448
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" />
449
- <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" />
450
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" />
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
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" />
452
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" />
453
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="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" />
454
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3291536" sideWeight="0.6437221" 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
- <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" />
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" />
458
458
  </layout>
459
459
  </component>
@@ -796,7 +796,7 @@
796
796
  </state>
797
797
  </provider>
798
798
  </entry>
799
- <entry file="file://$PROJECT_DIR$/bin/setup">
799
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
800
800
  <provider selected="true" editor-type-id="text-editor">
801
801
  <state vertical-scroll-proportion="0.0">
802
802
  <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
@@ -804,74 +804,74 @@
804
804
  </state>
805
805
  </provider>
806
806
  </entry>
807
- <entry file="file://$PROJECT_DIR$/Gemfile.lock">
807
+ <entry file="file://$PROJECT_DIR$/Gemfile">
808
808
  <provider selected="true" editor-type-id="text-editor">
809
809
  <state vertical-scroll-proportion="0.0">
810
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
810
+ <caret line="3" column="8" selection-start-line="3" selection-start-column="8" selection-end-line="3" selection-end-column="8" />
811
811
  <folding />
812
812
  </state>
813
813
  </provider>
814
814
  </entry>
815
- <entry file="file://$PROJECT_DIR$/Rakefile">
815
+ <entry file="file://$PROJECT_DIR$/HackT.gemspec">
816
816
  <provider selected="true" editor-type-id="text-editor">
817
817
  <state vertical-scroll-proportion="0.0">
818
- <caret line="4" column="38" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
818
+ <caret line="18" column="62" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
819
819
  <folding />
820
820
  </state>
821
821
  </provider>
822
822
  </entry>
823
- <entry file="file://$PROJECT_DIR$/Gemfile">
823
+ <entry file="file://$PROJECT_DIR$/lib/HackT.rb">
824
824
  <provider selected="true" editor-type-id="text-editor">
825
825
  <state vertical-scroll-proportion="0.0">
826
- <caret line="3" column="8" selection-start-line="3" selection-start-column="8" selection-end-line="3" selection-end-column="8" />
826
+ <caret line="6" column="18" selection-start-line="6" selection-start-column="18" selection-end-line="6" selection-end-column="18" />
827
827
  <folding />
828
828
  </state>
829
829
  </provider>
830
830
  </entry>
831
- <entry file="file://$PROJECT_DIR$/bin/console">
831
+ <entry file="file://$PROJECT_DIR$/lib/hackt/error.rb">
832
832
  <provider selected="true" editor-type-id="text-editor">
833
833
  <state vertical-scroll-proportion="0.0">
834
- <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
834
+ <caret line="2" column="2" selection-start-line="2" selection-start-column="2" selection-end-line="2" selection-end-column="2" />
835
835
  <folding />
836
836
  </state>
837
837
  </provider>
838
838
  </entry>
839
- <entry file="file://$PROJECT_DIR$/HackT.gemspec">
839
+ <entry file="file://$PROJECT_DIR$/lib/hackt/request.rb">
840
840
  <provider selected="true" editor-type-id="text-editor">
841
841
  <state vertical-scroll-proportion="0.0">
842
- <caret line="18" column="62" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
842
+ <caret line="170" column="36" selection-start-line="170" selection-start-column="36" selection-end-line="170" selection-end-column="36" />
843
843
  <folding />
844
844
  </state>
845
845
  </provider>
846
846
  </entry>
847
- <entry file="file://$PROJECT_DIR$/lib/HackT.rb">
847
+ <entry file="file://$PROJECT_DIR$/lib/hackt/net.rb">
848
848
  <provider selected="true" editor-type-id="text-editor">
849
849
  <state vertical-scroll-proportion="0.0">
850
- <caret line="6" column="18" selection-start-line="6" selection-start-column="18" selection-end-line="6" selection-end-column="18" />
850
+ <caret line="15" column="11" selection-start-line="15" selection-start-column="11" selection-end-line="15" selection-end-column="11" />
851
851
  <folding />
852
852
  </state>
853
853
  </provider>
854
854
  </entry>
855
- <entry file="file://$PROJECT_DIR$/lib/hackt/error.rb">
855
+ <entry file="file://$PROJECT_DIR$/Rakefile">
856
856
  <provider selected="true" editor-type-id="text-editor">
857
857
  <state vertical-scroll-proportion="0.0">
858
- <caret line="2" column="2" selection-start-line="2" selection-start-column="2" selection-end-line="2" selection-end-column="2" />
858
+ <caret line="4" column="38" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
859
859
  <folding />
860
860
  </state>
861
861
  </provider>
862
862
  </entry>
863
- <entry file="file://$PROJECT_DIR$/lib/hackt/request.rb">
863
+ <entry file="file://$PROJECT_DIR$/bin/console">
864
864
  <provider selected="true" editor-type-id="text-editor">
865
- <state vertical-scroll-proportion="0.0">
866
- <caret line="170" column="36" selection-start-line="170" selection-start-column="36" selection-end-line="170" selection-end-column="36" />
865
+ <state vertical-scroll-proportion="1.4109589">
866
+ <caret line="72" column="5" selection-start-line="72" selection-start-column="5" selection-end-line="72" selection-end-column="5" />
867
867
  <folding />
868
868
  </state>
869
869
  </provider>
870
870
  </entry>
871
- <entry file="file://$PROJECT_DIR$/lib/hackt/net.rb">
871
+ <entry file="file://$PROJECT_DIR$/bin/setup">
872
872
  <provider selected="true" editor-type-id="text-editor">
873
- <state vertical-scroll-proportion="0.7246377">
874
- <caret line="28" column="12" selection-start-line="28" selection-start-column="12" selection-end-line="28" selection-end-column="12" />
873
+ <state vertical-scroll-proportion="0.0">
874
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
875
875
  <folding />
876
876
  </state>
877
877
  </provider>
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "HackT"
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
@@ -4,6 +4,6 @@ module HackT
4
4
  require 'hackt/request'
5
5
 
6
6
 
7
- VERSION = '0.0.4'
7
+ VERSION = '0.0.5'
8
8
  URL = 'http://melgarn.xyz/'
9
9
  end
@@ -172,6 +172,10 @@ module HackT
172
172
  HackTNet::Get '/player/short_info', auth_token: auth_token, ip: ip
173
173
  end
174
174
 
175
+ def Leaderboard(auth_token)
176
+ HackTNet::Get '/player/leaderboard', auth_token: auth_token
177
+ end
178
+
175
179
  end
176
180
  end
177
181
  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
4
+ version: 0.0.5
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 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler