steam-condenser 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +228 -0
- data/CONTRIBUTING.md +59 -0
- data/Gemfile.lock +12 -13
- data/README.md +9 -4
- data/lib/steam-condenser/version.rb +1 -1
- data/lib/steam/community/alien_swarm/alien_swarm_mission.rb +10 -9
- data/lib/steam/community/alien_swarm/alien_swarm_stats.rb +74 -72
- data/lib/steam/community/css/css_map.rb +2 -2
- data/lib/steam/community/css/css_stats.rb +54 -56
- data/lib/steam/community/css/css_weapon.rb +4 -4
- data/lib/steam/community/game_item.rb +2 -3
- data/lib/steam/community/game_leaderboard.rb +22 -15
- data/lib/steam/community/l4d/abstract_l4d_stats.rb +64 -61
- data/lib/steam/community/l4d/l4d2_stats.rb +26 -21
- data/lib/steam/community/steam_id.rb +8 -11
- data/lib/steam/community/web_api.rb +19 -14
- data/lib/steam/packets/s2a_info2_packet.rb +16 -14
- data/lib/steam/packets/s2a_info_detailed_packet.rb +24 -19
- data/lib/steam/packets/steam_packet_factory.rb +7 -2
- data/lib/steam/servers/game_server.rb +3 -2
- data/lib/steam/servers/master_server.rb +1 -1
- data/lib/steam/sockets/source_socket.rb +4 -9
- data/pkg/steam-condenser-1.3.5.gem +0 -0
- data/pkg/steam-condenser-1.3.5/Gemfile +7 -0
- data/pkg/steam-condenser-1.3.5/Gemfile.lock +45 -0
- data/pkg/steam-condenser-1.3.5/LICENSE +25 -0
- data/pkg/steam-condenser-1.3.5/README.md +70 -0
- data/pkg/steam-condenser-1.3.5/Rakefile +46 -0
- data/pkg/steam-condenser-1.3.5/lib/core_ext/stringio.rb +91 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/packet_format_error.rb +13 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/steam_condenser_error.rb +26 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.3.5/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.3.5/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.3.5/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.3.5/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.3.5/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_stats.rb +186 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/cacheable.rb +199 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_stats.rb +142 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_stats.rb +62 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_inventory.rb +171 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_item.rb +156 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_item_schema.rb +131 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard.rb +205 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_stats.rb +185 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_stats.rb +174 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_stats.rb +73 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_stats.rb +33 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/steam_game.rb +193 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/steam_group.rb +129 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/steam_id.rb +498 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_stats.rb +77 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/web_api.rb +130 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/community/xml_data.rb +27 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info2_packet.rb +74 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_base_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_detailed_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet_factory.rb +108 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/servers/game_server.rb +392 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/servers/master_server.rb +188 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/servers/server.rb +115 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/servers/source_server.rb +117 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/sockets/master_server_socket.rb +34 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/sockets/rcon_socket.rb +103 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/sockets/source_socket.rb +78 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/sockets/steam_socket.rb +91 -0
- data/pkg/steam-condenser-1.3.5/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.3.5/steam-condenser.gemspec +26 -0
- data/pkg/steam-condenser-1.3.5/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.3.5/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.3.5/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.3.5/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.3.5/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.3.5/test/fixtures/valve-members.xml +231 -0
- data/pkg/steam-condenser-1.3.5/test/helper.rb +48 -0
- data/pkg/steam-condenser-1.3.5/test/steam/community/test_cacheable.rb +100 -0
- data/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_group.rb +83 -0
- data/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_id.rb +144 -0
- data/pkg/steam-condenser-1.3.5/test/steam/community/test_web_api.rb +98 -0
- data/pkg/steam-condenser-1.3.5/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.3.5/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.3.5/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.3.5/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.3.5/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.3.5/test/steam/servers/test_source_server.rb +134 -0
- data/pkg/steam-condenser-1.3.5/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.3.5/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.3.5/test/steam/sockets/test_rcon_socket.rb +118 -0
- data/pkg/steam-condenser-1.3.5/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.3.5/test/steam/sockets/test_steam_socket.rb +97 -0
- data/steam-condenser.gemspec +2 -3
- data/test/steam/community/test_cacheable.rb +3 -0
- data/test/steam/community/test_web_api.rb +15 -2
- data/test/steam/packets/test_steam_packet.rb +1 -1
- data/test/steam/sockets/test_source_socket.rb +1 -1
- metadata +151 -27
@@ -0,0 +1,42 @@
|
|
1
|
+
# This code is free software; you can redistribute it and/or modify it under
|
2
|
+
# the terms of the new BSD License.
|
3
|
+
#
|
4
|
+
# Copyright (c) 2011, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
require 'steam/sockets/master_server_socket'
|
8
|
+
|
9
|
+
class TestMasterServerSocket < Test::Unit::TestCase
|
10
|
+
|
11
|
+
context 'A master server socket' do
|
12
|
+
|
13
|
+
setup do
|
14
|
+
@socket = MasterServerSocket.new '127.0.0.1'
|
15
|
+
@socket.instance_variable_set :@buffer, mock
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'raise an error if the packet header is incorrect' do
|
19
|
+
@socket.stubs :receive_packet
|
20
|
+
@socket.instance_variable_get(:@buffer).expects(:long).returns 1
|
21
|
+
|
22
|
+
error = assert_raises PacketFormatError do
|
23
|
+
@socket.reply
|
24
|
+
end
|
25
|
+
assert_equal 'Master query response has wrong packet header.', error.message
|
26
|
+
end
|
27
|
+
|
28
|
+
should 'receive correct packets' do
|
29
|
+
@socket.expects(:receive_packet).with 1500
|
30
|
+
buffer = @socket.instance_variable_get :@buffer
|
31
|
+
buffer.expects(:long).returns 0xFFFFFFFF
|
32
|
+
buffer.expects(:get).returns 'test'
|
33
|
+
|
34
|
+
packet = mock
|
35
|
+
SteamPacketFactory.expects(:packet_from_data).with('test').returns packet
|
36
|
+
|
37
|
+
assert_equal packet, @socket.reply
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# This code is free software; you can redistribute it and/or modify it under
|
2
|
+
# the terms of the new BSD License.
|
3
|
+
#
|
4
|
+
# Copyright (c) 2011, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
require 'steam/sockets/rcon_socket'
|
8
|
+
|
9
|
+
class TestRCONSocket < Test::Unit::TestCase
|
10
|
+
|
11
|
+
context 'A new RCON socket' do
|
12
|
+
|
13
|
+
should 'know its IP and port, but not open a connection' do
|
14
|
+
socket = RCONSocket.new '127.0.0.1', 27015
|
15
|
+
|
16
|
+
assert_equal IPAddr.new('127.0.0.1'), socket.instance_variable_get(:@ip)
|
17
|
+
assert_equal 27015, socket.instance_variable_get(:@port)
|
18
|
+
assert_nil socket.instance_variable_get(:@socket)
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'A disconnected RCON socket' do
|
24
|
+
|
25
|
+
setup do
|
26
|
+
@socket = RCONSocket.new '127.0.0.1', 27015
|
27
|
+
end
|
28
|
+
|
29
|
+
should 'establish the TCP connection when sending' do
|
30
|
+
tcp_socket = mock
|
31
|
+
tcp_socket.expects(:send).with 'test', 0
|
32
|
+
@socket.expects(:connect).with do
|
33
|
+
@socket.instance_variable_set :@socket, tcp_socket
|
34
|
+
end
|
35
|
+
|
36
|
+
@socket.send mock(:to_s => 'test')
|
37
|
+
end
|
38
|
+
|
39
|
+
should 're-establish the TCP connection when sending' do
|
40
|
+
tcp_socket = mock
|
41
|
+
tcp_socket.expects(:closed?).returns true
|
42
|
+
tcp_socket.expects(:send).with 'test', 0
|
43
|
+
@socket.expects :connect
|
44
|
+
@socket.instance_variable_set :@socket, tcp_socket
|
45
|
+
|
46
|
+
packet = mock
|
47
|
+
packet.expects(:to_s).returns 'test'
|
48
|
+
@socket.send packet
|
49
|
+
end
|
50
|
+
|
51
|
+
should 'be able to establish the TCP connection' do
|
52
|
+
tcp_socket = mock
|
53
|
+
TCPSocket.expects(:new).with('127.0.0.1', 27015).
|
54
|
+
returns tcp_socket
|
55
|
+
|
56
|
+
@socket.connect
|
57
|
+
|
58
|
+
assert_equal tcp_socket, @socket.instance_variable_get(:@socket)
|
59
|
+
end
|
60
|
+
|
61
|
+
should 'raise a timeout if the connection cannot be established' do
|
62
|
+
@socket.expects(:timeout).raises Timeout::Error
|
63
|
+
|
64
|
+
assert_raises SteamCondenser::TimeoutError do
|
65
|
+
@socket.connect
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'A connected RCON socket' do
|
72
|
+
|
73
|
+
setup do
|
74
|
+
@socket = RCONSocket.new '127.0.0.1', 27015
|
75
|
+
@tcp_socket = mock
|
76
|
+
@socket.instance_variable_set :@socket, @tcp_socket
|
77
|
+
end
|
78
|
+
|
79
|
+
should 'be able to close the TCP connection' do
|
80
|
+
@tcp_socket.expects :close
|
81
|
+
|
82
|
+
@socket.close
|
83
|
+
end
|
84
|
+
|
85
|
+
should 'receive responses using the TCP connection' do
|
86
|
+
buffer = mock
|
87
|
+
@socket.instance_variable_set :@buffer, buffer
|
88
|
+
|
89
|
+
buffer.expects(:long).returns 1234
|
90
|
+
buffer.expects(:get).twice.returns('test ').returns 'test'
|
91
|
+
@socket.expects(:receive_packet).with(4).returns 1
|
92
|
+
@socket.expects(:receive_packet).with(1234).returns 1000
|
93
|
+
@socket.expects(:receive_packet).with(234).returns 234
|
94
|
+
RCONPacketFactory.expects(:packet_from_data).with 'test test'
|
95
|
+
|
96
|
+
@socket.reply
|
97
|
+
end
|
98
|
+
|
99
|
+
should 'raise an ECONNRESET if the client has been banned' do
|
100
|
+
@socket.expects(:receive_packet).with(4).raises Errno::ECONNRESET
|
101
|
+
|
102
|
+
assert_raise Errno::ECONNRESET do
|
103
|
+
assert_nil @socket.reply
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
should 'raise an RCONNoAuthError if the connection has been dropped' do
|
108
|
+
@socket.expects(:receive_packet).with(4).returns 0
|
109
|
+
@tcp_socket.expects :close
|
110
|
+
|
111
|
+
assert_raise RCONBanError do
|
112
|
+
assert_nil @socket.reply
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# This code is free software; you can redistribute it and/or modify it under
|
2
|
+
# the terms of the new BSD License.
|
3
|
+
#
|
4
|
+
# Copyright (c) 2011, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
require 'steam/sockets/source_socket'
|
8
|
+
|
9
|
+
class TestSourceSocket < Test::Unit::TestCase
|
10
|
+
|
11
|
+
context 'A Source socket' do
|
12
|
+
|
13
|
+
setup do
|
14
|
+
@socket = SourceSocket.new '127.0.0.1'
|
15
|
+
end
|
16
|
+
|
17
|
+
should 'be able to receive single packet replies' do
|
18
|
+
buffer = mock
|
19
|
+
@socket.instance_variable_set :@buffer, buffer
|
20
|
+
|
21
|
+
@socket.expects(:receive_packet).with 1400
|
22
|
+
data = mock
|
23
|
+
buffer.expects(:long).returns 0xFFFFFFFF
|
24
|
+
buffer.expects(:get).returns data
|
25
|
+
packet = mock
|
26
|
+
SteamPacketFactory.expects(:packet_from_data).with(data).returns packet
|
27
|
+
|
28
|
+
assert_equal packet, @socket.reply
|
29
|
+
end
|
30
|
+
|
31
|
+
should 'be able to receive split packet replies' do
|
32
|
+
buffer = mock
|
33
|
+
@socket.instance_variable_set :@buffer, buffer
|
34
|
+
|
35
|
+
@socket.expects(:receive_packet).with(1400)
|
36
|
+
@socket.expects(:receive_packet).with().returns 1400
|
37
|
+
|
38
|
+
data1, data2 = mock, mock
|
39
|
+
buffer.expects(:long).times(4).returns(0xFFFFFFFE).returns(1234).
|
40
|
+
returns(0xFFFFFFFE).returns 1234
|
41
|
+
buffer.expects(:byte).times(4).returns(0x02).returns(0x00).returns(0x02).
|
42
|
+
returns 0x01
|
43
|
+
buffer.expects(:short).twice
|
44
|
+
buffer.expects(:get).twice.returns(data1).returns(data2)
|
45
|
+
|
46
|
+
packet = mock
|
47
|
+
SteamPacketFactory.expects(:reassemble_packet).with([data1, data2]).
|
48
|
+
returns packet
|
49
|
+
|
50
|
+
assert_equal packet, @socket.reply
|
51
|
+
end
|
52
|
+
|
53
|
+
should 'be able to receive compressed replies' do
|
54
|
+
buffer = mock
|
55
|
+
@socket.instance_variable_set :@buffer, buffer
|
56
|
+
|
57
|
+
@socket.expects(:receive_packet).with(1400)
|
58
|
+
@socket.expects(:receive_packet).with().returns 1400
|
59
|
+
|
60
|
+
data1, data2 = mock, mock
|
61
|
+
buffer.expects(:long).times(8).returns(0xFFFFFFFE).returns(2147484882).
|
62
|
+
returns(0).returns(1337).returns(0xFFFFFFFE).returns(2147484882).
|
63
|
+
returns(0).returns 1337
|
64
|
+
buffer.expects(:byte).times(4).returns(0x02).returns(0x00).returns(0x02).
|
65
|
+
returns 0x01
|
66
|
+
buffer.expects(:get).twice.returns(data1).returns(data2)
|
67
|
+
|
68
|
+
packet = mock
|
69
|
+
SteamPacketFactory.expects(:reassemble_packet).
|
70
|
+
with([data1, data2], true, 1337).returns packet
|
71
|
+
|
72
|
+
assert_equal packet, @socket.reply
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# This code is free software; you can redistribute it and/or modify it under
|
2
|
+
# the terms of the new BSD License.
|
3
|
+
#
|
4
|
+
# Copyright (c) 2011, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
require 'steam/sockets/steam_socket'
|
8
|
+
|
9
|
+
class TestSteamSocket < Test::Unit::TestCase
|
10
|
+
|
11
|
+
class GenericSteamSocket
|
12
|
+
include SteamSocket
|
13
|
+
end
|
14
|
+
|
15
|
+
context 'The user timeout of a socket' do
|
16
|
+
|
17
|
+
should 'be able to change the timeout of a socket' do
|
18
|
+
SteamSocket.timeout = 2000
|
19
|
+
|
20
|
+
assert_equal 2000, SteamSocket.send(:class_variable_get, :@@timeout)
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
context 'A new socket' do
|
26
|
+
|
27
|
+
should 'create and connect an UDP socket' do
|
28
|
+
socket = mock
|
29
|
+
socket.expects(:connect).with '127.0.0.1', 27015
|
30
|
+
UDPSocket.expects(:new).returns socket
|
31
|
+
|
32
|
+
GenericSteamSocket.new '127.0.0.1'
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'A socket' do
|
38
|
+
|
39
|
+
setup do
|
40
|
+
@udp_socket = mock
|
41
|
+
@udp_socket.stubs(:connect).with '127.0.0.1', 27015
|
42
|
+
UDPSocket.stubs(:new).returns @udp_socket
|
43
|
+
|
44
|
+
@socket = GenericSteamSocket.new '127.0.0.1'
|
45
|
+
end
|
46
|
+
|
47
|
+
should 'close the UDP socket if it is closed' do
|
48
|
+
@udp_socket.expects :close
|
49
|
+
|
50
|
+
@socket.close
|
51
|
+
end
|
52
|
+
|
53
|
+
should 'send packet data using the UDP socket' do
|
54
|
+
packet = mock
|
55
|
+
packet.expects(:to_s).returns 'test'
|
56
|
+
@udp_socket.expects(:send).with 'test', 0
|
57
|
+
|
58
|
+
@socket.send packet
|
59
|
+
end
|
60
|
+
|
61
|
+
should 'raise a timeout if no reply is received' do
|
62
|
+
@socket.expects(:select).with([@udp_socket], nil, nil, 1).returns nil
|
63
|
+
|
64
|
+
assert_raises SteamCondenser::TimeoutError do
|
65
|
+
@socket.receive_packet
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
should 'receive a packet into a new buffer' do
|
70
|
+
@socket.expects(:select).with([@udp_socket], nil, nil, 1).returns true
|
71
|
+
@udp_socket.expects(:recv).with(4).returns 'test'
|
72
|
+
|
73
|
+
assert_equal 4, @socket.receive_packet(4)
|
74
|
+
|
75
|
+
buffer = @socket.instance_variable_get :@buffer
|
76
|
+
assert_equal 0, buffer.pos
|
77
|
+
assert_equal 4, buffer.size
|
78
|
+
assert_equal 'test', buffer.string
|
79
|
+
end
|
80
|
+
|
81
|
+
should 'receive a packet into an existing buffer' do
|
82
|
+
@socket.instance_variable_set :@buffer, StringIO.alloc(10)
|
83
|
+
|
84
|
+
@socket.expects(:select).with([@udp_socket], nil, nil, 1).returns true
|
85
|
+
@udp_socket.expects(:recv).with(10).returns 'test'
|
86
|
+
|
87
|
+
assert_equal 4, @socket.receive_packet
|
88
|
+
|
89
|
+
buffer = @socket.instance_variable_get :@buffer
|
90
|
+
assert_equal 0, buffer.pos
|
91
|
+
assert_equal 4, buffer.size
|
92
|
+
assert_equal 'test', buffer.string
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
data/steam-condenser.gemspec
CHANGED
@@ -11,13 +11,12 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = 'Steam Condenser - A Steam query library'
|
12
12
|
s.description = 'A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers'
|
13
13
|
|
14
|
-
s.add_dependency '
|
15
|
-
s.add_dependency 'multi_json', '~> 1.6.0'
|
14
|
+
s.add_dependency 'multi_json', '~> 1.7.2'
|
16
15
|
s.add_dependency 'multi_xml', '~> 0.5.2'
|
17
16
|
|
18
17
|
s.add_development_dependency 'mocha', '~> 0.13.0'
|
19
18
|
s.add_development_dependency 'rake', '~> 10.0.1'
|
20
|
-
s.add_development_dependency 'shoulda-context', '~> 1.
|
19
|
+
s.add_development_dependency 'shoulda-context', '~> 1.1.1'
|
21
20
|
s.add_development_dependency 'yard', '~> 0.8.0'
|
22
21
|
|
23
22
|
s.files = Dir.glob '**/*'
|
@@ -44,9 +44,11 @@ class TestCacheable < Test::Unit::TestCase
|
|
44
44
|
should 'automatically update its last update time' do
|
45
45
|
item = SingleCacheable.new false
|
46
46
|
now1 = Time.now
|
47
|
+
sleep 0.001
|
47
48
|
item.fetch
|
48
49
|
assert item.fetch_time > now1
|
49
50
|
now2 = Time.now
|
51
|
+
sleep 0.001
|
50
52
|
item.fetch
|
51
53
|
assert item.fetch_time > now2
|
52
54
|
end
|
@@ -59,6 +61,7 @@ class TestCacheable < Test::Unit::TestCase
|
|
59
61
|
|
60
62
|
should 'be able to bypass the cache if requested' do
|
61
63
|
item1 = SingleCacheable.new
|
64
|
+
sleep 0.001
|
62
65
|
item2 = SingleCacheable.new true, true
|
63
66
|
|
64
67
|
assert item2.fetch_time > item1.fetch_time
|
@@ -63,8 +63,8 @@ class TestWebApi < Test::Unit::TestCase
|
|
63
63
|
should 'load data from the Steam Community Web API' do
|
64
64
|
data = mock :read => 'data'
|
65
65
|
WebApi.expects(:open).with do |url, options|
|
66
|
-
options == { :proxy => true } &&
|
67
|
-
url.start_with?('
|
66
|
+
options == { :proxy => true, 'Content-Type' => 'application/x-www-form-urlencoded' } &&
|
67
|
+
url.start_with?('https://api.steampowered.com/interface/method/v0002/?') &&
|
68
68
|
(url.split('?').last.split('&') & %w{test=param format=json key=0123456789ABCDEF0123456789ABCDEF}).size == 3
|
69
69
|
end.returns data
|
70
70
|
|
@@ -93,6 +93,19 @@ class TestWebApi < Test::Unit::TestCase
|
|
93
93
|
assert_equal 'The Web API request has failed due to an HTTP error: Not found (status code: 404).', error.message
|
94
94
|
end
|
95
95
|
|
96
|
+
should 'use insecure HTTP if set' do
|
97
|
+
WebApi.secure = false
|
98
|
+
|
99
|
+
data = mock :read => 'data'
|
100
|
+
WebApi.expects(:open).with do |url, options|
|
101
|
+
options == { :proxy => true, 'Content-Type' => 'application/x-www-form-urlencoded' } &&
|
102
|
+
url.start_with?('http://api.steampowered.com/interface/method/v0002/?') &&
|
103
|
+
(url.split('?').last.split('&') & %w{test=param format=json key=0123456789ABCDEF0123456789ABCDEF}).size == 3
|
104
|
+
end.returns data
|
105
|
+
|
106
|
+
assert_equal 'data', WebApi.get(:json, 'interface', 'method', 2, { :test => 'param' })
|
107
|
+
end
|
108
|
+
|
96
109
|
end
|
97
110
|
|
98
111
|
end
|
@@ -44,7 +44,7 @@ class TestSourceSocket < Test::Unit::TestCase
|
|
44
44
|
buffer.expects(:get).twice.returns(data1).returns(data2)
|
45
45
|
|
46
46
|
packet = mock
|
47
|
-
SteamPacketFactory.expects(:reassemble_packet).with([data1, data2]).
|
47
|
+
SteamPacketFactory.expects(:reassemble_packet).with([data1, data2], false, 0).
|
48
48
|
returns packet
|
49
49
|
|
50
50
|
assert_equal packet, @socket.reply
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steam-condenser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Staudt
|
@@ -9,78 +9,68 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-23 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: multi_json
|
16
16
|
prerelease: false
|
17
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.7.2
|
22
22
|
type: :runtime
|
23
23
|
version_requirements: *id001
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: multi_json
|
26
|
-
prerelease: false
|
27
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
-
requirements:
|
29
|
-
- - ~>
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 1.6.0
|
32
|
-
type: :runtime
|
33
|
-
version_requirements: *id002
|
34
24
|
- !ruby/object:Gem::Dependency
|
35
25
|
name: multi_xml
|
36
26
|
prerelease: false
|
37
|
-
requirement: &
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
28
|
requirements:
|
39
29
|
- - ~>
|
40
30
|
- !ruby/object:Gem::Version
|
41
31
|
version: 0.5.2
|
42
32
|
type: :runtime
|
43
|
-
version_requirements: *
|
33
|
+
version_requirements: *id002
|
44
34
|
- !ruby/object:Gem::Dependency
|
45
35
|
name: mocha
|
46
36
|
prerelease: false
|
47
|
-
requirement: &
|
37
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
38
|
requirements:
|
49
39
|
- - ~>
|
50
40
|
- !ruby/object:Gem::Version
|
51
41
|
version: 0.13.0
|
52
42
|
type: :development
|
53
|
-
version_requirements: *
|
43
|
+
version_requirements: *id003
|
54
44
|
- !ruby/object:Gem::Dependency
|
55
45
|
name: rake
|
56
46
|
prerelease: false
|
57
|
-
requirement: &
|
47
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
58
48
|
requirements:
|
59
49
|
- - ~>
|
60
50
|
- !ruby/object:Gem::Version
|
61
51
|
version: 10.0.1
|
62
52
|
type: :development
|
63
|
-
version_requirements: *
|
53
|
+
version_requirements: *id004
|
64
54
|
- !ruby/object:Gem::Dependency
|
65
55
|
name: shoulda-context
|
66
56
|
prerelease: false
|
67
|
-
requirement: &
|
57
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
68
58
|
requirements:
|
69
59
|
- - ~>
|
70
60
|
- !ruby/object:Gem::Version
|
71
|
-
version: 1.
|
61
|
+
version: 1.1.1
|
72
62
|
type: :development
|
73
|
-
version_requirements: *
|
63
|
+
version_requirements: *id005
|
74
64
|
- !ruby/object:Gem::Dependency
|
75
65
|
name: yard
|
76
66
|
prerelease: false
|
77
|
-
requirement: &
|
67
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
78
68
|
requirements:
|
79
69
|
- - ~>
|
80
70
|
- !ruby/object:Gem::Version
|
81
71
|
version: 0.8.0
|
82
72
|
type: :development
|
83
|
-
version_requirements: *
|
73
|
+
version_requirements: *id006
|
84
74
|
description: A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
|
85
75
|
email:
|
86
76
|
- koraktor@gmail.com
|
@@ -91,6 +81,8 @@ extensions: []
|
|
91
81
|
extra_rdoc_files: []
|
92
82
|
|
93
83
|
files:
|
84
|
+
- CHANGELOG.md
|
85
|
+
- CONTRIBUTING.md
|
94
86
|
- Gemfile
|
95
87
|
- Gemfile.lock
|
96
88
|
- lib/core_ext/stringio.rb
|
@@ -197,6 +189,138 @@ files:
|
|
197
189
|
- lib/steam-condenser/version.rb
|
198
190
|
- lib/steam-condenser.rb
|
199
191
|
- LICENSE
|
192
|
+
- pkg/steam-condenser-1.3.5/Gemfile
|
193
|
+
- pkg/steam-condenser-1.3.5/Gemfile.lock
|
194
|
+
- pkg/steam-condenser-1.3.5/lib/core_ext/stringio.rb
|
195
|
+
- pkg/steam-condenser-1.3.5/lib/errors/packet_format_error.rb
|
196
|
+
- pkg/steam-condenser-1.3.5/lib/errors/rcon_ban_error.rb
|
197
|
+
- pkg/steam-condenser-1.3.5/lib/errors/rcon_no_auth_error.rb
|
198
|
+
- pkg/steam-condenser-1.3.5/lib/errors/steam_condenser_error.rb
|
199
|
+
- pkg/steam-condenser-1.3.5/lib/errors/timeout_error.rb
|
200
|
+
- pkg/steam-condenser-1.3.5/lib/errors/web_api_error.rb
|
201
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_mission.rb
|
202
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_stats.rb
|
203
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_weapon.rb
|
204
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/app_news.rb
|
205
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/cacheable.rb
|
206
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/css/css_map.rb
|
207
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/css/css_stats.rb
|
208
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/css/css_weapon.rb
|
209
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/defense_grid/defense_grid_stats.rb
|
210
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_class.rb
|
211
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_stats.rb
|
212
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_weapon.rb
|
213
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_beta_inventory.rb
|
214
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_inventory.rb
|
215
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_item.rb
|
216
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_achievement.rb
|
217
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_class.rb
|
218
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_inventory.rb
|
219
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_item.rb
|
220
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_item_schema.rb
|
221
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard.rb
|
222
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard_entry.rb
|
223
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_stats.rb
|
224
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/game_weapon.rb
|
225
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_stats.rb
|
226
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_weapon.rb
|
227
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_map.rb
|
228
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_stats.rb
|
229
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_weapon.rb
|
230
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_explosive.rb
|
231
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_map.rb
|
232
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_stats.rb
|
233
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_weapon.rb
|
234
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_inventory.rb
|
235
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_item.rb
|
236
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_stats.rb
|
237
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/steam_game.rb
|
238
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/steam_group.rb
|
239
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/steam_id.rb
|
240
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_beta_inventory.rb
|
241
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class.rb
|
242
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class_factory.rb
|
243
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_engineer.rb
|
244
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_golden_wrench.rb
|
245
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_inventory.rb
|
246
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_item.rb
|
247
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_medic.rb
|
248
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_sniper.rb
|
249
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_spy.rb
|
250
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_stats.rb
|
251
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/web_api.rb
|
252
|
+
- pkg/steam-condenser-1.3.5/lib/steam/community/xml_data.rb
|
253
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/a2m_get_servers_batch2_packet.rb
|
254
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_info_packet.rb
|
255
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_player_packet.rb
|
256
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_rules_packet.rb
|
257
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb
|
258
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/c2m_checkmd5_packet.rb
|
259
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/m2a_server_batch_packet.rb
|
260
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/m2c_isvalidmd5_packet.rb
|
261
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/m2s_requestrestart_packet.rb
|
262
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_request.rb
|
263
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_response.rb
|
264
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_request.rb
|
265
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_response.rb
|
266
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_request.rb
|
267
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_response.rb
|
268
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet.rb
|
269
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet_factory.rb
|
270
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_terminator.rb
|
271
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/request_with_challenge.rb
|
272
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info2_packet.rb
|
273
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_base_packet.rb
|
274
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_detailed_packet.rb
|
275
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_logstring_packet.rb
|
276
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_player_packet.rb
|
277
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_rules_packet.rb
|
278
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2c_challenge_packet.rb
|
279
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/s2m_heartbeat2_packet.rb
|
280
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet.rb
|
281
|
+
- pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet_factory.rb
|
282
|
+
- pkg/steam-condenser-1.3.5/lib/steam/servers/game_server.rb
|
283
|
+
- pkg/steam-condenser-1.3.5/lib/steam/servers/goldsrc_server.rb
|
284
|
+
- pkg/steam-condenser-1.3.5/lib/steam/servers/master_server.rb
|
285
|
+
- pkg/steam-condenser-1.3.5/lib/steam/servers/server.rb
|
286
|
+
- pkg/steam-condenser-1.3.5/lib/steam/servers/source_server.rb
|
287
|
+
- pkg/steam-condenser-1.3.5/lib/steam/sockets/goldsrc_socket.rb
|
288
|
+
- pkg/steam-condenser-1.3.5/lib/steam/sockets/master_server_socket.rb
|
289
|
+
- pkg/steam-condenser-1.3.5/lib/steam/sockets/rcon_socket.rb
|
290
|
+
- pkg/steam-condenser-1.3.5/lib/steam/sockets/source_socket.rb
|
291
|
+
- pkg/steam-condenser-1.3.5/lib/steam/sockets/steam_socket.rb
|
292
|
+
- pkg/steam-condenser-1.3.5/lib/steam/steam_player.rb
|
293
|
+
- pkg/steam-condenser-1.3.5/lib/steam-condenser/community.rb
|
294
|
+
- pkg/steam-condenser-1.3.5/lib/steam-condenser/servers.rb
|
295
|
+
- pkg/steam-condenser-1.3.5/lib/steam-condenser/version.rb
|
296
|
+
- pkg/steam-condenser-1.3.5/lib/steam-condenser.rb
|
297
|
+
- pkg/steam-condenser-1.3.5/LICENSE
|
298
|
+
- pkg/steam-condenser-1.3.5/Rakefile
|
299
|
+
- pkg/steam-condenser-1.3.5/README.md
|
300
|
+
- pkg/steam-condenser-1.3.5/steam-condenser.gemspec
|
301
|
+
- pkg/steam-condenser-1.3.5/test/core_ext/test_stringio.rb
|
302
|
+
- pkg/steam-condenser-1.3.5/test/fixtures/invalid.xml
|
303
|
+
- pkg/steam-condenser-1.3.5/test/fixtures/sonofthor.xml
|
304
|
+
- pkg/steam-condenser-1.3.5/test/fixtures/status_goldsrc
|
305
|
+
- pkg/steam-condenser-1.3.5/test/fixtures/status_source
|
306
|
+
- pkg/steam-condenser-1.3.5/test/fixtures/valve-members.xml
|
307
|
+
- pkg/steam-condenser-1.3.5/test/helper.rb
|
308
|
+
- pkg/steam-condenser-1.3.5/test/steam/community/test_cacheable.rb
|
309
|
+
- pkg/steam-condenser-1.3.5/test/steam/community/test_steam_group.rb
|
310
|
+
- pkg/steam-condenser-1.3.5/test/steam/community/test_steam_id.rb
|
311
|
+
- pkg/steam-condenser-1.3.5/test/steam/community/test_web_api.rb
|
312
|
+
- pkg/steam-condenser-1.3.5/test/steam/packets/test_steam_packet.rb
|
313
|
+
- pkg/steam-condenser-1.3.5/test/steam/servers/test_game_server.rb
|
314
|
+
- pkg/steam-condenser-1.3.5/test/steam/servers/test_goldsrc_server.rb
|
315
|
+
- pkg/steam-condenser-1.3.5/test/steam/servers/test_master_server.rb
|
316
|
+
- pkg/steam-condenser-1.3.5/test/steam/servers/test_server.rb
|
317
|
+
- pkg/steam-condenser-1.3.5/test/steam/servers/test_source_server.rb
|
318
|
+
- pkg/steam-condenser-1.3.5/test/steam/sockets/test_goldsrc_socket.rb
|
319
|
+
- pkg/steam-condenser-1.3.5/test/steam/sockets/test_master_server_socket.rb
|
320
|
+
- pkg/steam-condenser-1.3.5/test/steam/sockets/test_rcon_socket.rb
|
321
|
+
- pkg/steam-condenser-1.3.5/test/steam/sockets/test_source_socket.rb
|
322
|
+
- pkg/steam-condenser-1.3.5/test/steam/sockets/test_steam_socket.rb
|
323
|
+
- pkg/steam-condenser-1.3.5.gem
|
200
324
|
- Rakefile
|
201
325
|
- README.md
|
202
326
|
- steam-condenser.gemspec
|
@@ -234,13 +358,13 @@ require_paths:
|
|
234
358
|
- lib
|
235
359
|
required_ruby_version: !ruby/object:Gem::Requirement
|
236
360
|
requirements:
|
237
|
-
- &
|
361
|
+
- &id007
|
238
362
|
- ">="
|
239
363
|
- !ruby/object:Gem::Version
|
240
364
|
version: "0"
|
241
365
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
366
|
requirements:
|
243
|
-
- *
|
367
|
+
- *id007
|
244
368
|
requirements: []
|
245
369
|
|
246
370
|
rubyforge_project:
|