lloydpick-honstats 0.0.6 → 0.0.7
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.
- data/lib/honstats/character.rb +10 -2
- metadata +4 -3
data/lib/honstats/character.rb
CHANGED
@@ -75,7 +75,8 @@ module HonStats
|
|
75
75
|
:average_kills_per_game, :average_deaths_per_game,
|
76
76
|
:average_assists_per_game, :disconnect_percentage,
|
77
77
|
:average_xp_earned_per_game, :average_creep_kills_per_game,
|
78
|
-
:average_creep_denies_per_game
|
78
|
+
:average_creep_denies_per_game, :concedes, :concede_votes,
|
79
|
+
:kicked, :pub_skill
|
79
80
|
|
80
81
|
def initialize(data, hero_stats, creep_stats)
|
81
82
|
@wins = HonStats::API.get_data("acc_wins", data).to_i
|
@@ -91,6 +92,10 @@ module HonStats
|
|
91
92
|
@xp_earned = HonStats::API.get_data("acc_exp", data).to_i
|
92
93
|
@actions_made = HonStats::API.get_data("acc_actions", data).to_i
|
93
94
|
@average_score = HonStats::API.get_data("acc_avg_score", data).to_f
|
95
|
+
@concedes = HonStats::API.get_data("acc_concedes", data).to_i
|
96
|
+
@concede_votes = HonStats::API.get_data("acc_concedevotes", data).to_i
|
97
|
+
@kicked = HonStats::API.get_data("acc_kicked", data).to_i
|
98
|
+
@pub_skill = HonStats::API.get_data("acc_pub_skill", data).to_i
|
94
99
|
|
95
100
|
if @time_played > 0
|
96
101
|
minutes_played = @time_played / 60
|
@@ -166,7 +171,8 @@ module HonStats
|
|
166
171
|
class Hero
|
167
172
|
attr_reader :kills, :damage, :xp, :gold, :assists, :deaths, :gold_lost,
|
168
173
|
:seconds_dead, :buybacks, :kills_per_minute, :xp_per_minute,
|
169
|
-
:time_dead_percentage, :assists_per_minute, :kill_death_ratio
|
174
|
+
:time_dead_percentage, :assists_per_minute, :kill_death_ratio,
|
175
|
+
:consumables, :wards
|
170
176
|
|
171
177
|
def initialize(data)
|
172
178
|
@kills = HonStats::API.get_data("acc_herokills", data).to_i
|
@@ -178,6 +184,8 @@ module HonStats
|
|
178
184
|
@gold_lost = HonStats::API.get_data("acc_goldlost2death", data).to_i
|
179
185
|
@seconds_dead = HonStats::API.get_data("acc_secs_dead", data).to_i
|
180
186
|
@buybacks = HonStats::API.get_data("acc_buybacks", data).to_i
|
187
|
+
@consumables = HonStats::API.get_data("acc_consumables", data).to_i
|
188
|
+
@wards = HonStats::API.get_data("acc_wards", data).to_i
|
181
189
|
|
182
190
|
seconds_played = HonStats::API.get_data("acc_secs", data).to_i
|
183
191
|
minutes_played = seconds_played / 60
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lloydpick-honstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lloyd Pick
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- lib/honstats/ignore.rb
|
33
33
|
has_rdoc: false
|
34
34
|
homepage: https://github.com/lloydpick/hon-stats
|
35
|
+
licenses:
|
35
36
|
post_install_message:
|
36
37
|
rdoc_options:
|
37
38
|
- --inline-source
|
@@ -53,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
54
|
requirements: []
|
54
55
|
|
55
56
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
57
|
+
rubygems_version: 1.3.5
|
57
58
|
signing_key:
|
58
59
|
specification_version: 2
|
59
60
|
summary: HonStats is a Ruby Gem for extracting player statistics and other information from the Heroes of Newerth master server.
|