steam-condenser 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/exceptions/packet_format_exception.rb +12 -5
- data/lib/exceptions/rcon_ban_exception.rb +11 -3
- data/lib/exceptions/rcon_no_auth_exception.rb +10 -3
- data/lib/exceptions/steam_condenser_exception.rb +8 -5
- data/lib/exceptions/timeout_exception.rb +13 -3
- data/lib/exceptions/web_api_exception.rb +31 -23
- data/lib/steam-condenser.rb +9 -3
- data/lib/steam-condenser/community.rb +8 -1
- data/lib/steam-condenser/servers.rb +7 -1
- data/lib/steam-condenser/version.rb +2 -1
- data/lib/steam/community/cacheable.rb +4 -4
- data/lib/steam/community/game_inventory.rb +119 -0
- data/lib/steam/community/game_item.rb +38 -0
- data/lib/steam/community/game_stats.rb +10 -4
- data/lib/steam/community/portal2/portal2_inventory.rb +21 -0
- data/lib/steam/community/portal2/portal2_item.rb +35 -0
- data/lib/steam/community/portal2/portal2_stats.rb +28 -0
- data/lib/steam/community/tf2/tf2_inventory.rb +7 -37
- data/lib/steam/community/tf2/tf2_item.rb +8 -79
- data/lib/steam/community/tf2/tf2_stats.rb +10 -13
- data/lib/steam/community/web_api.rb +1 -0
- data/lib/steam/packets/a2m_get_servers_batch2_packet.rb +37 -4
- data/lib/steam/packets/a2s_info_packet.rb +10 -5
- data/lib/steam/packets/a2s_player_packet.rb +16 -6
- data/lib/steam/packets/a2s_rules_packet.rb +16 -4
- data/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +11 -5
- data/lib/steam/packets/c2m_checkmd5_packet.rb +10 -4
- data/lib/steam/packets/m2a_server_batch_packet.rb +19 -3
- data/lib/steam/packets/m2c_isvalidmd5_packet.rb +14 -5
- data/lib/steam/packets/m2s_requestrestart_packet.rb +14 -4
- data/lib/steam/packets/rcon/rcon_auth_request.rb +15 -3
- data/lib/steam/packets/rcon/rcon_auth_response.rb +17 -3
- data/lib/steam/packets/rcon/rcon_exec_request.rb +15 -3
- data/lib/steam/packets/rcon/rcon_exec_response.rb +20 -3
- data/lib/steam/packets/rcon/rcon_goldsrc_request.rb +18 -3
- data/lib/steam/packets/rcon/rcon_goldsrc_response.rb +17 -3
- data/lib/steam/packets/rcon/rcon_packet.rb +31 -3
- data/lib/steam/packets/rcon/rcon_packet_factory.rb +15 -5
- data/lib/steam/packets/rcon/rcon_terminator.rb +14 -5
- data/lib/steam/packets/request_with_challenge.rb +10 -5
- data/lib/steam/packets/s2a_info2_packet.rb +14 -5
- data/lib/steam/packets/s2a_info_base_packet.rb +16 -6
- data/lib/steam/packets/s2a_info_detailed_packet.rb +15 -8
- data/lib/steam/packets/s2a_logstring_packet.rb +11 -5
- data/lib/steam/packets/s2a_player_packet.rb +14 -6
- data/lib/steam/packets/s2a_rules_packet.rb +15 -5
- data/lib/steam/packets/s2c_challenge_packet.rb +17 -6
- data/lib/steam/packets/s2m_heartbeat2_packet.rb +18 -4
- data/lib/steam/packets/steam_packet.rb +14 -5
- data/lib/steam/packets/steam_packet_factory.rb +25 -2
- data/lib/steam/servers/game_server.rb +154 -25
- data/lib/steam/servers/goldsrc_server.rb +35 -3
- data/lib/steam/servers/master_server.rb +77 -23
- data/lib/steam/servers/server.rb +42 -3
- data/lib/steam/servers/source_server.rb +35 -11
- data/lib/stringio_additions.rb +48 -3
- data/test/query_tests.rb +4 -4
- metadata +11 -6
data/test/query_tests.rb
CHANGED
@@ -42,8 +42,8 @@ class QueryTests < Test::Unit::TestCase
|
|
42
42
|
|
43
43
|
server = GoldSrcServer.new(*servers[rand(servers.length)])
|
44
44
|
server.init
|
45
|
-
server.
|
46
|
-
server.
|
45
|
+
server.update_players
|
46
|
+
server.update_rules
|
47
47
|
|
48
48
|
print server.to_s
|
49
49
|
end
|
@@ -60,8 +60,8 @@ class QueryTests < Test::Unit::TestCase
|
|
60
60
|
|
61
61
|
server = SourceServer.new(*servers[rand(servers.length)])
|
62
62
|
server.init
|
63
|
-
server.
|
64
|
-
server.
|
63
|
+
server.update_players
|
64
|
+
server.update_rules
|
65
65
|
|
66
66
|
print server.to_s
|
67
67
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steam-condenser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 14
|
9
|
+
- 0
|
10
|
+
version: 0.14.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sebastian Staudt
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bzip2-ruby
|
@@ -96,6 +96,8 @@ files:
|
|
96
96
|
- lib/steam/community/dods/dods_weapon.rb
|
97
97
|
- lib/steam/community/game_achievement.rb
|
98
98
|
- lib/steam/community/game_class.rb
|
99
|
+
- lib/steam/community/game_inventory.rb
|
100
|
+
- lib/steam/community/game_item.rb
|
99
101
|
- lib/steam/community/game_stats.rb
|
100
102
|
- lib/steam/community/game_weapon.rb
|
101
103
|
- lib/steam/community/l4d/abstract_l4d_stats.rb
|
@@ -107,6 +109,9 @@ files:
|
|
107
109
|
- lib/steam/community/l4d/l4d_map.rb
|
108
110
|
- lib/steam/community/l4d/l4d_stats.rb
|
109
111
|
- lib/steam/community/l4d/l4d_weapon.rb
|
112
|
+
- lib/steam/community/portal2/portal2_inventory.rb
|
113
|
+
- lib/steam/community/portal2/portal2_item.rb
|
114
|
+
- lib/steam/community/portal2/portal2_stats.rb
|
110
115
|
- lib/steam/community/steam_group.rb
|
111
116
|
- lib/steam/community/steam_id.rb
|
112
117
|
- lib/steam/community/tf2/tf2_class.rb
|
@@ -204,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
209
|
requirements: []
|
205
210
|
|
206
211
|
rubyforge_project: steam-condenser
|
207
|
-
rubygems_version: 1.
|
212
|
+
rubygems_version: 1.8.5
|
208
213
|
signing_key:
|
209
214
|
specification_version: 3
|
210
215
|
summary: Steam Condenser - A Steam query library
|