steam-condenser 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -1
- data/Gemfile.lock +1 -1
- data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
- data/doc/A2S_INFO_Packet.html +260 -0
- data/doc/A2S_PLAYER_Packet.html +295 -0
- data/doc/A2S_RULES_Packet.html +296 -0
- data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/doc/AbstractL4DStats.html +1023 -0
- data/doc/AbstractL4DWeapon.html +749 -0
- data/doc/AlienSwarmMission.html +1555 -0
- data/doc/AlienSwarmStats.html +1012 -0
- data/doc/AlienSwarmWeapon.html +640 -0
- data/doc/AppNews.html +1441 -0
- data/doc/C2M_CHECKMD5_Packet.html +342 -0
- data/doc/CSSMap.html +805 -0
- data/doc/CSSStats.html +866 -0
- data/doc/CSSWeapon.html +888 -0
- data/doc/Cacheable/ClassMethods.html +697 -0
- data/doc/Cacheable.html +911 -0
- data/doc/DefenseGridStats.html +2592 -0
- data/doc/DoDSClass.html +1263 -0
- data/doc/DoDSStats.html +519 -0
- data/doc/DoDSWeapon.html +803 -0
- data/doc/Dota2BetaInventory.html +354 -0
- data/doc/Dota2Inventory.html +354 -0
- data/doc/Dota2Item.html +388 -0
- data/doc/GameAchievement.html +1255 -0
- data/doc/GameClass.html +321 -0
- data/doc/GameInventory.html +1469 -0
- data/doc/GameItem.html +1900 -0
- data/doc/GameItemSchema.html +1444 -0
- data/doc/GameLeaderboard.html +1706 -0
- data/doc/GameLeaderboardEntry.html +629 -0
- data/doc/GameServer.html +2419 -0
- data/doc/GameStats.html +1459 -0
- data/doc/GameWeapon.html +607 -0
- data/doc/GoldSrcServer.html +738 -0
- data/doc/GoldSrcSocket.html +849 -0
- data/doc/L4D2Map.html +737 -0
- data/doc/L4D2Stats.html +986 -0
- data/doc/L4D2Weapon.html +486 -0
- data/doc/L4DExplosive.html +374 -0
- data/doc/L4DMap.html +775 -0
- data/doc/L4DStats.html +563 -0
- data/doc/L4DWeapon.html +296 -0
- data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
- data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
- data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
- data/doc/MasterServer.html +1069 -0
- data/doc/MasterServerSocket.html +295 -0
- data/doc/PacketFormatError.html +173 -0
- data/doc/Portal2Inventory.html +354 -0
- data/doc/Portal2Item.html +602 -0
- data/doc/Portal2Stats.html +400 -0
- data/doc/RCONAuthRequest.html +317 -0
- data/doc/RCONAuthResponse.html +305 -0
- data/doc/RCONBanError.html +252 -0
- data/doc/RCONExecRequest.html +317 -0
- data/doc/RCONExecResponse.html +406 -0
- data/doc/RCONGoldSrcRequest.html +363 -0
- data/doc/RCONGoldSrcResponse.html +367 -0
- data/doc/RCONNoAuthError.html +252 -0
- data/doc/RCONPacket.html +564 -0
- data/doc/RCONPacketFactory.html +300 -0
- data/doc/RCONSocket.html +696 -0
- data/doc/RCONTerminator.html +304 -0
- data/doc/RequestWithChallenge.html +233 -0
- data/doc/S2A_INFO2_Packet.html +416 -0
- data/doc/S2A_INFO_BasePacket.html +266 -0
- data/doc/S2A_INFO_DETAILED_Packet.html +371 -0
- data/doc/S2A_LOGSTRING_Packet.html +373 -0
- data/doc/S2A_PLAYER_Packet.html +417 -0
- data/doc/S2A_RULES_Packet.html +411 -0
- data/doc/S2C_CHALLENGE_Packet.html +370 -0
- data/doc/S2M_HEARTBEAT2_Packet.html +445 -0
- data/doc/Server.html +874 -0
- data/doc/SourceServer.html +893 -0
- data/doc/SourceSocket.html +350 -0
- data/doc/SteamCondenser/Community/AbstractL4DStats.html +1026 -0
- data/doc/SteamCondenser/Community/AbstractL4DWeapon.html +749 -0
- data/doc/SteamCondenser/Community/AlienSwarmMission.html +1557 -0
- data/doc/SteamCondenser/Community/AlienSwarmStats.html +1013 -0
- data/doc/SteamCondenser/Community/AlienSwarmWeapon.html +641 -0
- data/doc/SteamCondenser/Community/AppNews.html +1441 -0
- data/doc/SteamCondenser/Community/CSSMap.html +805 -0
- data/doc/SteamCondenser/Community/CSSStats.html +866 -0
- data/doc/SteamCondenser/Community/CSSWeapon.html +889 -0
- data/doc/SteamCondenser/Community/Cacheable/ClassMethods.html +695 -0
- data/doc/SteamCondenser/Community/Cacheable.html +911 -0
- data/doc/SteamCondenser/Community/DefenseGridStats.html +2593 -0
- data/doc/SteamCondenser/Community/DoDSClass.html +1263 -0
- data/doc/SteamCondenser/Community/DoDSStats.html +520 -0
- data/doc/SteamCondenser/Community/DoDSWeapon.html +803 -0
- data/doc/SteamCondenser/Community/Dota2BetaInventory.html +354 -0
- data/doc/SteamCondenser/Community/Dota2Inventory.html +354 -0
- data/doc/SteamCondenser/Community/Dota2Item.html +388 -0
- data/doc/SteamCondenser/Community/Dota2Match.html +505 -0
- data/doc/SteamCondenser/Community/GameAchievement.html +1100 -0
- data/doc/SteamCondenser/Community/GameClass.html +321 -0
- data/doc/SteamCondenser/Community/GameInventory.html +1469 -0
- data/doc/SteamCondenser/Community/GameItem.html +1900 -0
- data/doc/SteamCondenser/Community/GameItemSchema.html +1444 -0
- data/doc/SteamCondenser/Community/GameLeaderboard.html +1707 -0
- data/doc/SteamCondenser/Community/GameLeaderboardEntry.html +630 -0
- data/doc/SteamCondenser/Community/GameStats.html +1461 -0
- data/doc/SteamCondenser/Community/GameStatsSchema.html +771 -0
- data/doc/SteamCondenser/Community/GameStatsValue/Instance.html +262 -0
- data/doc/SteamCondenser/Community/GameStatsValue.html +596 -0
- data/doc/SteamCondenser/Community/GameWeapon.html +608 -0
- data/doc/SteamCondenser/Community/L4D2Map.html +737 -0
- data/doc/SteamCondenser/Community/L4D2Stats.html +989 -0
- data/doc/SteamCondenser/Community/L4D2Weapon.html +486 -0
- data/doc/SteamCondenser/Community/L4DExplosive.html +375 -0
- data/doc/SteamCondenser/Community/L4DMap.html +775 -0
- data/doc/SteamCondenser/Community/L4DStats.html +564 -0
- data/doc/SteamCondenser/Community/L4DWeapon.html +296 -0
- data/doc/SteamCondenser/Community/Portal2Inventory.html +354 -0
- data/doc/SteamCondenser/Community/Portal2Item.html +603 -0
- data/doc/SteamCondenser/Community/Portal2Stats.html +400 -0
- data/doc/SteamCondenser/Community/SteamGame.html +1862 -0
- data/doc/SteamCondenser/Community/SteamGroup.html +1018 -0
- data/doc/SteamCondenser/Community/SteamId.html +4430 -0
- data/doc/SteamCondenser/Community/TF2BetaInventory.html +345 -0
- data/doc/SteamCondenser/Community/TF2Class.html +1186 -0
- data/doc/SteamCondenser/Community/TF2ClassFactory.html +273 -0
- data/doc/SteamCondenser/Community/TF2Engineer.html +555 -0
- data/doc/SteamCondenser/Community/TF2GoldenWrench.html +760 -0
- data/doc/SteamCondenser/Community/TF2Inventory.html +354 -0
- data/doc/SteamCondenser/Community/TF2Item.html +602 -0
- data/doc/SteamCondenser/Community/TF2Medic.html +463 -0
- data/doc/SteamCondenser/Community/TF2Sniper.html +372 -0
- data/doc/SteamCondenser/Community/TF2Spy.html +553 -0
- data/doc/SteamCondenser/Community/TF2Stats.html +728 -0
- data/doc/SteamCondenser/Community/UserStats.html +760 -0
- data/doc/SteamCondenser/Community/WebApi.html +1116 -0
- data/doc/SteamCondenser/Community/XMLData.html +274 -0
- data/doc/SteamCondenser/Community.html +134 -0
- data/doc/SteamCondenser/Error/PacketFormat.html +173 -0
- data/doc/SteamCondenser/Error/RCONBan.html +253 -0
- data/doc/SteamCondenser/Error/RCONNoAuth.html +252 -0
- data/doc/SteamCondenser/Error/Timeout.html +254 -0
- data/doc/SteamCondenser/Error/WebApi.html +354 -0
- data/doc/SteamCondenser/Error.html +380 -0
- data/doc/SteamCondenser/Logging.html +616 -0
- data/doc/SteamCondenser/Servers/BaseServer.html +870 -0
- data/doc/SteamCondenser/Servers/GameServer.html +2428 -0
- data/doc/SteamCondenser/Servers/GoldSrcServer.html +738 -0
- data/doc/SteamCondenser/Servers/MasterServer.html +819 -0
- data/doc/SteamCondenser/Servers/Packets/A2M_GET_SERVERS_BATCH2_Packet.html +427 -0
- data/doc/SteamCondenser/Servers/Packets/A2S_INFO_Packet.html +260 -0
- data/doc/SteamCondenser/Servers/Packets/A2S_PLAYER_Packet.html +295 -0
- data/doc/SteamCondenser/Servers/Packets/A2S_RULES_Packet.html +296 -0
- data/doc/SteamCondenser/Servers/Packets/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/doc/SteamCondenser/Servers/Packets/BasePacket.html +462 -0
- data/doc/SteamCondenser/Servers/Packets/M2A_SERVER_BATCH_Packet.html +430 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/BasePacket.html +564 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthRequest.html +317 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthResponse.html +305 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecRequest.html +317 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecResponse.html +406 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcRequest.html +363 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcResponse.html +368 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONPacketFactory.html +302 -0
- data/doc/SteamCondenser/Servers/Packets/RCON/RCONTerminator.html +304 -0
- data/doc/SteamCondenser/Servers/Packets/RCON.html +119 -0
- data/doc/SteamCondenser/Servers/Packets/RequestWithChallenge.html +233 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_INFO2_Packet.html +416 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_INFO_BasePacket.html +266 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_INFO_DETAILED_Packet.html +371 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_LOGSTRING_Packet.html +373 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_PLAYER_Packet.html +417 -0
- data/doc/SteamCondenser/Servers/Packets/S2A_RULES_Packet.html +411 -0
- data/doc/SteamCondenser/Servers/Packets/S2C_CHALLENGE_Packet.html +370 -0
- data/doc/SteamCondenser/Servers/Packets/SteamPacketFactory.html +532 -0
- data/doc/SteamCondenser/Servers/Packets.html +132 -0
- data/doc/SteamCondenser/Servers/Sockets/BaseSocket.html +733 -0
- data/doc/SteamCondenser/Servers/Sockets/GoldSrcSocket.html +862 -0
- data/doc/SteamCondenser/Servers/Sockets/MasterServerSocket.html +306 -0
- data/doc/SteamCondenser/Servers/Sockets/RCONSocket.html +709 -0
- data/doc/SteamCondenser/Servers/Sockets/SourceSocket.html +367 -0
- data/doc/SteamCondenser/Servers/Sockets.html +119 -0
- data/doc/SteamCondenser/Servers/SourceServer.html +892 -0
- data/doc/SteamCondenser/Servers/SteamPlayer.html +1764 -0
- data/doc/SteamCondenser/Servers.html +133 -0
- data/doc/SteamCondenser/TimeoutError.html +254 -0
- data/doc/SteamCondenser.html +155 -0
- data/doc/SteamCondenserError.html +370 -0
- data/doc/SteamGame.html +1950 -0
- data/doc/SteamGroup.html +1023 -0
- data/doc/SteamId.html +4299 -0
- data/doc/SteamPacket.html +486 -0
- data/doc/SteamPacketFactory.html +556 -0
- data/doc/SteamPlayer.html +1764 -0
- data/doc/SteamSocket.html +725 -0
- data/doc/StringIO.html +939 -0
- data/doc/TF2BetaInventory.html +330 -0
- data/doc/TF2Class.html +1185 -0
- data/doc/TF2ClassFactory.html +273 -0
- data/doc/TF2Engineer.html +555 -0
- data/doc/TF2GoldenWrench.html +760 -0
- data/doc/TF2Inventory.html +354 -0
- data/doc/TF2Item.html +602 -0
- data/doc/TF2Medic.html +463 -0
- data/doc/TF2Sniper.html +372 -0
- data/doc/TF2Spy.html +553 -0
- data/doc/TF2Stats.html +728 -0
- data/doc/WebApi.html +1108 -0
- data/doc/WebApiError.html +351 -0
- data/doc/XMLData.html +274 -0
- data/doc/_index.html +728 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.CHANGELOG.html +368 -0
- data/doc/file.CONTRIBUTING.html +140 -0
- data/doc/file.LICENSE.html +100 -0
- data/doc/file.README.html +152 -0
- data/doc/file_list.html +65 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +152 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +3155 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/steam/community/web_api.rb +6 -2
- data/lib/steam/servers/source_server.rb +8 -2
- data/lib/steam-condenser/version.rb +1 -1
- data/pkg/steam-condenser-1.3.5/Gemfile.lock +1 -1
- data/pkg/steam-condenser-1.3.6/CHANGELOG.md +228 -0
- data/pkg/steam-condenser-1.3.6/CONTRIBUTING.md +59 -0
- data/pkg/steam-condenser-1.3.6/Gemfile +7 -0
- data/pkg/steam-condenser-1.3.6/Gemfile.lock +45 -0
- data/pkg/steam-condenser-1.3.6/LICENSE +25 -0
- data/pkg/steam-condenser-1.3.6/README.md +75 -0
- data/pkg/steam-condenser-1.3.6/Rakefile +46 -0
- data/pkg/steam-condenser-1.3.6/lib/core_ext/stringio.rb +91 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/packet_format_error.rb +13 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/steam_condenser_error.rb +26 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.3.6/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_mission.rb +120 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/cacheable.rb +199 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_stats.rb +140 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_stats.rb +62 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_inventory.rb +171 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item.rb +155 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item_schema.rb +131 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard.rb +212 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_stats.rb +179 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_stats.rb +73 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_stats.rb +33 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_game.rb +193 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_group.rb +129 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_id.rb +495 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_stats.rb +77 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/web_api.rb +135 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/community/xml_data.rb +27 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info2_packet.rb +76 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_base_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_detailed_packet.rb +64 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet_factory.rb +113 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/servers/game_server.rb +393 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/servers/master_server.rb +188 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/servers/server.rb +115 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/servers/source_server.rb +117 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/sockets/master_server_socket.rb +34 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/sockets/rcon_socket.rb +103 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/sockets/source_socket.rb +73 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/sockets/steam_socket.rb +91 -0
- data/pkg/steam-condenser-1.3.6/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.3.6/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.3.6/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.3.6/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.3.6/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile +7 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile.lock +45 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/LICENSE +25 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/README.md +70 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Rakefile +46 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/core_ext/stringio.rb +91 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/packet_format_error.rb +13 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/steam_condenser_error.rb +26 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_stats.rb +186 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/cacheable.rb +199 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_stats.rb +142 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_stats.rb +62 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_inventory.rb +171 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item.rb +156 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item_schema.rb +131 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard.rb +205 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_stats.rb +185 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_stats.rb +174 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_stats.rb +73 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_stats.rb +33 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_game.rb +193 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_group.rb +129 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_id.rb +498 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_stats.rb +77 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/web_api.rb +130 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/xml_data.rb +27 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info2_packet.rb +74 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_base_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_detailed_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet_factory.rb +108 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/game_server.rb +392 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/master_server.rb +188 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/server.rb +115 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/source_server.rb +117 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/master_server_socket.rb +34 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/rcon_socket.rb +103 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/source_socket.rb +78 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/steam_socket.rb +91 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/steam-condenser.gemspec +26 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/valve-members.xml +231 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/helper.rb +48 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_cacheable.rb +100 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_group.rb +83 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_id.rb +144 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_web_api.rb +98 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_source_server.rb +134 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_rcon_socket.rb +118 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_steam_socket.rb +97 -0
- data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5.gem +0 -0
- data/pkg/steam-condenser-1.3.6/steam-condenser.gemspec +25 -0
- data/pkg/steam-condenser-1.3.6/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.3.6/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.3.6/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.3.6/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.3.6/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.3.6/test/fixtures/valve-members.xml +231 -0
- data/pkg/steam-condenser-1.3.6/test/helper.rb +48 -0
- data/pkg/steam-condenser-1.3.6/test/steam/community/test_cacheable.rb +103 -0
- data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_group.rb +83 -0
- data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_id.rb +144 -0
- data/pkg/steam-condenser-1.3.6/test/steam/community/test_web_api.rb +111 -0
- data/pkg/steam-condenser-1.3.6/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.3.6/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.3.6/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.3.6/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.3.6/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.3.6/test/steam/servers/test_source_server.rb +134 -0
- data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_rcon_socket.rb +118 -0
- data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_steam_socket.rb +97 -0
- data/pkg/steam-condenser-1.3.6.gem +0 -0
- data/test/steam/community/test_web_api.rb +13 -0
- data/test/steam/servers/test_source_server.rb +18 -7
- metadata +493 -3
@@ -0,0 +1,199 @@
|
|
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) 2009-2012, Sebastian Staudt
|
5
|
+
|
6
|
+
# @macro [new] cacheable
|
7
|
+
# @overload $0(${1--1}, fetch = true, bypass_cache = false)
|
8
|
+
# @param [Boolean] fetch if `true` the object's data is fetched after
|
9
|
+
# creation
|
10
|
+
# @param [Boolean] bypass_cache if `true` the object's data is fetched again
|
11
|
+
# even if it has been cached already
|
12
|
+
|
13
|
+
# This module implements caching functionality to be used in any object class
|
14
|
+
# having one or more unique object identifier (i.e. ID) and using a `fetch`
|
15
|
+
# method to fetch data, e.g. using a HTTP download.
|
16
|
+
#
|
17
|
+
# @author Sebastian Staudt
|
18
|
+
module Cacheable
|
19
|
+
|
20
|
+
# When this module is included in another class it is initialized to make use
|
21
|
+
# of caching
|
22
|
+
#
|
23
|
+
# The original `initialize` method of the including class will be wrapped,
|
24
|
+
# relaying all instantiations to the `new` method defined in {ClassMethods}.
|
25
|
+
# Additionally the class variable to save the attributes to cache (i.e. cache
|
26
|
+
# IDs) and the cache class variable itself are initialized.
|
27
|
+
#
|
28
|
+
# @param [Class] base The class to extend with caching functionality
|
29
|
+
# @see ClassMethods
|
30
|
+
def self.included(base)
|
31
|
+
base.extend ClassMethods
|
32
|
+
base.send :class_variable_set, :@@cache, {}
|
33
|
+
base.send :class_variable_set, :@@cache_ids, []
|
34
|
+
|
35
|
+
class << base
|
36
|
+
def method_added(name)
|
37
|
+
if name == :fetch && !(@@in_method_added ||= false)
|
38
|
+
@@in_method_added = true
|
39
|
+
alias_method :original_fetch, :fetch
|
40
|
+
|
41
|
+
define_method :fetch do
|
42
|
+
original_fetch
|
43
|
+
@fetch_time = Time.now
|
44
|
+
end
|
45
|
+
@@in_method_added = false
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# This module implements functionality to access the cache of a class that
|
52
|
+
# includes the {Cacheable} module as class methods
|
53
|
+
#
|
54
|
+
# @author Sebastian Staudt
|
55
|
+
module ClassMethods
|
56
|
+
|
57
|
+
# Defines wich instance variables which should be used to index the cached
|
58
|
+
# objects
|
59
|
+
#
|
60
|
+
# @note A call to this method is needed if you want a class including this
|
61
|
+
# module to really use the cache.
|
62
|
+
# @param [Array<Symbol, Array<Symbol>>] ids The symbolic names of the
|
63
|
+
# instance variables representing a unique identifier for this
|
64
|
+
# object class. Arrays of symbols are also allowed and are used as
|
65
|
+
# compound IDs.
|
66
|
+
def cacheable_with_ids(*ids)
|
67
|
+
class_variable_set :@@cache_ids, ids
|
68
|
+
end
|
69
|
+
|
70
|
+
# Returns whether an object with the given ID is already cached
|
71
|
+
#
|
72
|
+
# @param [Object] id The ID of the desired object
|
73
|
+
# @return [Boolean] `true` if the object with the given ID is already
|
74
|
+
# cached
|
75
|
+
def cached?(id)
|
76
|
+
id.downcase! if id.is_a? String
|
77
|
+
cache.key?(id)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Clears the object cache for the class this method is called on
|
81
|
+
def clear_cache
|
82
|
+
class_variable_set :@@cache, {}
|
83
|
+
end
|
84
|
+
|
85
|
+
# This checks the cache for an existing object. If it exists it is
|
86
|
+
# returned, otherwise a new object is created.
|
87
|
+
# Overrides the default `new` method of the cacheable object class.
|
88
|
+
#
|
89
|
+
# @param [Array<Object>] args The parameters of the object that should be
|
90
|
+
# created and if possible loaded from cache
|
91
|
+
# @see #cached?
|
92
|
+
# @see #fetch
|
93
|
+
def new(*args)
|
94
|
+
arity = self.instance_method(:initialize).arity.abs
|
95
|
+
args += [nil] * (arity - args.size) if args.size < arity
|
96
|
+
bypass_cache = args.size > arity + 1 ? !!args.pop : false
|
97
|
+
fetch = args.size > arity ? !!args.pop : true
|
98
|
+
|
99
|
+
object = self.allocate
|
100
|
+
object.send :initialize, *args
|
101
|
+
cached_object = object.send :cached_instance
|
102
|
+
object = cached_object unless cached_object.nil? || bypass_cache
|
103
|
+
|
104
|
+
if fetch && (bypass_cache || !object.fetched?)
|
105
|
+
object.fetch
|
106
|
+
object.cache
|
107
|
+
end
|
108
|
+
|
109
|
+
object
|
110
|
+
end
|
111
|
+
|
112
|
+
private
|
113
|
+
|
114
|
+
# Returns the current cache for the cacheable class
|
115
|
+
#
|
116
|
+
# @return [Hash<Object, Cacheable>] The cache for cacheable class
|
117
|
+
def cache
|
118
|
+
class_variable_get :@@cache
|
119
|
+
end
|
120
|
+
|
121
|
+
# Returns the list of IDs used for caching objects
|
122
|
+
#
|
123
|
+
# @return [Array<Symbol, Array<Symbol>>] The IDs used for caching objects
|
124
|
+
def cache_ids
|
125
|
+
class_variable_get :@@cache_ids
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
|
130
|
+
# Returns the time the object's data has been fetched the last time
|
131
|
+
#
|
132
|
+
# @return [Time] The time the object has been updated the last time
|
133
|
+
attr_reader :fetch_time
|
134
|
+
|
135
|
+
# Saves this object in the cache
|
136
|
+
#
|
137
|
+
# This will use the ID attributes selected for caching
|
138
|
+
def cache
|
139
|
+
cache = self.class.send :cache
|
140
|
+
cache_ids.each do |cache_id|
|
141
|
+
cache[cache_id] = self if cache_id
|
142
|
+
end
|
143
|
+
|
144
|
+
true
|
145
|
+
end
|
146
|
+
|
147
|
+
# Fetches the object from some data source
|
148
|
+
#
|
149
|
+
# @note This method should be overridden in cacheable object classes and
|
150
|
+
# should implement the logic to retrieve the object's data. Updating
|
151
|
+
# the time is handled dynamically and does not need to be implemented
|
152
|
+
# separately.
|
153
|
+
def fetch
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns whether the data for this object has already been fetched
|
157
|
+
#
|
158
|
+
# @return [Boolean] `true` if this object's data is available
|
159
|
+
def fetched?
|
160
|
+
!@fetch_time.nil?
|
161
|
+
end
|
162
|
+
|
163
|
+
private
|
164
|
+
|
165
|
+
# If available, returns the cached instance for the object it is called on
|
166
|
+
#
|
167
|
+
# This may be used to either replace an initial object with a completely
|
168
|
+
# cached instance of the same ID or to compare a modified object with the
|
169
|
+
# copy that was cached before.
|
170
|
+
#
|
171
|
+
# @see #cache_ids
|
172
|
+
def cached_instance
|
173
|
+
ids = cache_ids
|
174
|
+
cached = self.class.send(:cache).find { |id, object| ids.include? id}
|
175
|
+
cached.nil? ? nil : cached.last
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns a complete list of all values for the cache IDs of the cachable
|
179
|
+
# object
|
180
|
+
#
|
181
|
+
# @return [Array<Object, Array<Object>>] The values for the cache IDs
|
182
|
+
# @see #cache_id_value
|
183
|
+
def cache_ids
|
184
|
+
values = lambda do |id|
|
185
|
+
id.is_a?(Array) ? id.map(&values) : cache_id_value(id)
|
186
|
+
end
|
187
|
+
|
188
|
+
self.class.send(:cache_ids).map &values
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the value for the ID
|
192
|
+
#
|
193
|
+
# @param [Symbol] id The name of an instance variable
|
194
|
+
# @return [Object] The value of the given instance variable
|
195
|
+
def cache_id_value(id)
|
196
|
+
instance_variable_get "@#{id}".to_sym
|
197
|
+
end
|
198
|
+
|
199
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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) 2010-2013, Sebastian Staudt
|
5
|
+
|
6
|
+
# Represents the stats for a Counter-Strike: Source map for a specific user
|
7
|
+
#
|
8
|
+
# @author Sebastian Staudt
|
9
|
+
class CSSMap
|
10
|
+
|
11
|
+
# Returns the name of this map
|
12
|
+
#
|
13
|
+
# @return [String] The name of this map
|
14
|
+
attr_reader :name
|
15
|
+
|
16
|
+
# Returns the number of rounds the player has lost on this map
|
17
|
+
#
|
18
|
+
# @return [Fixnum] The number of rounds lost
|
19
|
+
attr_reader :rounds_lost
|
20
|
+
|
21
|
+
# Returns the number of rounds the player has played on this map
|
22
|
+
#
|
23
|
+
# @return [Fixnum] The number of rounds played
|
24
|
+
attr_reader :rounds_played
|
25
|
+
|
26
|
+
# Returns the number of rounds the player has won on this map
|
27
|
+
#
|
28
|
+
# @return [Fixnum] The number of rounds won
|
29
|
+
attr_reader :rounds_won
|
30
|
+
|
31
|
+
# Creates a new instance of a Counter-Strike: Source class based on the
|
32
|
+
# given XML data
|
33
|
+
#
|
34
|
+
# @param [String] map_name The name of the map
|
35
|
+
# @param [Hash<String, Object>] maps_data The XML data of all maps
|
36
|
+
def initialize(map_name, maps_data)
|
37
|
+
@name = map_name
|
38
|
+
|
39
|
+
@favorite = (maps_data['favorite'] == @name)
|
40
|
+
@rounds_played = maps_data["#{@name}_rounds"].to_i
|
41
|
+
@rounds_won = maps_data["#{@name}_wins"].to_i
|
42
|
+
|
43
|
+
@rounds_lost = @rounds_played - @rounds_won
|
44
|
+
@rounds_won_percentage = (@rounds_played > 0) ? @rounds_won.to_f / @rounds_played : 0
|
45
|
+
end
|
46
|
+
|
47
|
+
# Returns whether this map is the favorite map of this player
|
48
|
+
#
|
49
|
+
# @return [Boolean] `true` if this is the favorite map
|
50
|
+
def favorite?
|
51
|
+
@favorite
|
52
|
+
end
|
53
|
+
|
54
|
+
# Returns the percentage of rounds the player has won on this map
|
55
|
+
#
|
56
|
+
# @return [Float] The percentage of rounds won
|
57
|
+
def rounds_won_percentage
|
58
|
+
(@rounds_played > 0) ? @rounds_won.to_f / @rounds_played : 0
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
@@ -0,0 +1,140 @@
|
|
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) 2010-2013, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'steam/community/css/css_map'
|
7
|
+
require 'steam/community/css/css_weapon'
|
8
|
+
|
9
|
+
# The is class represents the game statistics for a single user in
|
10
|
+
# Counter-Strike: Source
|
11
|
+
#
|
12
|
+
# @author Sebastian Staudt
|
13
|
+
class CSSStats < GameStats
|
14
|
+
|
15
|
+
# The names of the maps in Counter-Strike: Source
|
16
|
+
MAPS = %w(cs_assault cs_compound cs_havana cs_italy cs_militia cs_office
|
17
|
+
de_aztec de_cbble de_chateau de_dust de_dust2 de_inferno de_nuke
|
18
|
+
de_piranesi de_port de_prodigy de_tides de_train)
|
19
|
+
|
20
|
+
# The names of the weapons in Counter-Strike: Source
|
21
|
+
WEAPONS = %w(deagle usp glock p228 elite fiveseven awp ak47 m4a1 aug sg552
|
22
|
+
sg550 galil famas scout g3sg1 p90 mp5navy tmp mac10 ump45 m3
|
23
|
+
xm1014 m249 knife grenade)
|
24
|
+
|
25
|
+
# Returns statistics about the last match the player played
|
26
|
+
#
|
27
|
+
# @return [Hash<Symbol, Object>] The stats of the last match
|
28
|
+
attr_reader :last_match_stats
|
29
|
+
|
30
|
+
# Returns overall statistics of this player
|
31
|
+
#
|
32
|
+
# @return [Hash<Symbol, Object>] The overall statistics
|
33
|
+
attr_reader :total_stats
|
34
|
+
|
35
|
+
# Creates a `CSSStats` instance by calling the super constructor
|
36
|
+
# with the game name `'cs:s'`
|
37
|
+
#
|
38
|
+
# @param [String, Fixnum] steam_id The custom URL or 64bit Steam ID of the
|
39
|
+
# user
|
40
|
+
# @macro cacheable
|
41
|
+
def initialize(steam_id)
|
42
|
+
super steam_id, 'cs:s'
|
43
|
+
|
44
|
+
if public?
|
45
|
+
last_match_data = @xml_data['stats']['lastmatch']
|
46
|
+
lifetime_data = @xml_data['stats']['lifetime']
|
47
|
+
summary_data = @xml_data['stats']['summary']
|
48
|
+
|
49
|
+
@last_match_stats = {
|
50
|
+
:cost_per_kill => last_match_data['costkill'].to_f,
|
51
|
+
:ct_wins => last_match_data['ct_wins'].to_i,
|
52
|
+
:damage => last_match_data['dmg'].to_i,
|
53
|
+
:deaths => last_match_data['deaths'].to_i,
|
54
|
+
:dominations => last_match_data['dominations'].to_i,
|
55
|
+
:favorite_weapon_id => last_match_data['favwpnid'].to_i,
|
56
|
+
:kills => last_match_data['kills'].to_i,
|
57
|
+
:max_players => last_match_data['max_players'].to_i,
|
58
|
+
:money => last_match_data['money'].to_i,
|
59
|
+
:revenges => last_match_data['revenges'].to_i,
|
60
|
+
:stars => last_match_data['stars'].to_i,
|
61
|
+
:t_wins => last_match_data['t_wins'].to_i,
|
62
|
+
:wins => last_match_data['wins'].to_i,
|
63
|
+
}
|
64
|
+
|
65
|
+
@total_stats = {
|
66
|
+
:blind_kills => lifetime_data['blindkills'].to_i,
|
67
|
+
:bombs_defused => lifetime_data['bombsdefused'].to_i,
|
68
|
+
:bombs_planted => lifetime_data['bombsplanted'].to_i,
|
69
|
+
:damage => lifetime_data['dmg'].to_i,
|
70
|
+
:deaths => summary_data['deaths'].to_i,
|
71
|
+
:domination_overkills => lifetime_data['dominationoverkills'].to_i,
|
72
|
+
:dominations => lifetime_data['dominations'].to_i,
|
73
|
+
:earned_money => lifetime_data['money'].to_i,
|
74
|
+
:enemy_weapon_kills => lifetime_data['enemywpnkills'].to_i,
|
75
|
+
:headshots => lifetime_data['headshots'].to_i,
|
76
|
+
:hits => summary_data['shotshit'].to_i,
|
77
|
+
:hostages_rescued => lifetime_data['hostagesrescued'].to_i,
|
78
|
+
:kills => summary_data['kills'].to_i,
|
79
|
+
:knife_kills => lifetime_data['knifekills'].to_i,
|
80
|
+
:logos_sprayed => lifetime_data['decals'].to_i,
|
81
|
+
:nightvision_damage => lifetime_data['nvgdmg'].to_i,
|
82
|
+
:pistol_rounds_won => lifetime_data['pistolrounds'].to_i,
|
83
|
+
:revenges => lifetime_data['revenges'].to_i,
|
84
|
+
:rounds_played => summary_data['rounds'].to_i,
|
85
|
+
:rounds_won => summary_data['wins'].to_i,
|
86
|
+
:seconds_played => summary_data['timeplayed'].to_i,
|
87
|
+
:shots => summary_data['shots'].to_i,
|
88
|
+
:stars => summary_data['stars'].to_i,
|
89
|
+
:weapons_donated => lifetime_data['wpndonated'].to_i,
|
90
|
+
:windows_broken => lifetime_data['winbroken'].to_i,
|
91
|
+
:zoomed_sniper_kills => lifetime_data['zsniperkills'].to_i,
|
92
|
+
:kdratio => (@total_stats[:deaths] > 0) ? @last_match_stats[:kills].to_f / @last_match_stats[:deaths] : 0,
|
93
|
+
:accuracy => (@total_stats[:shots] > 0) ? @total_stats[:hits].to_f / @total_stats[:shots] : 0,
|
94
|
+
:kdratio => (@total_stats[:deaths] > 0) ? @total_stats[:kills].to_f / @total_stats[:deaths] : 0,
|
95
|
+
:rounds_lost => @total_stats[:rounds_played] - @total_stats[:rounds_won]
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Returns a map of `CSSMap` for this user containing all CS:S maps.
|
101
|
+
#
|
102
|
+
# If the maps haven't been parsed already, parsing is done now.
|
103
|
+
#
|
104
|
+
# @return [Hash<String, Object>] The map statistics for this user
|
105
|
+
def map_stats
|
106
|
+
return unless public?
|
107
|
+
|
108
|
+
if @map_stats.nil?
|
109
|
+
@map_stats = {}
|
110
|
+
maps_data = @xml_data['stats']['maps']
|
111
|
+
|
112
|
+
MAPS.each do |map_name|
|
113
|
+
@map_stats[map_name] = CSSMap.new(map_name, maps_data)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
@map_stats
|
118
|
+
end
|
119
|
+
|
120
|
+
# Returns a map of `CSSWeapon` for this user containing all CS:S weapons.
|
121
|
+
#
|
122
|
+
# If the weapons haven't been parsed already, parsing is done now.
|
123
|
+
#
|
124
|
+
# @return [Hash<String, Object>] The weapon statistics for this user
|
125
|
+
def weapon_stats
|
126
|
+
return unless public?
|
127
|
+
|
128
|
+
if @weapon_stats.nil?
|
129
|
+
@weapon_stats = {}
|
130
|
+
weapons_data = @xml_data['stats']['weapons']
|
131
|
+
|
132
|
+
WEAPONS.each do |weapon_name|
|
133
|
+
@weapon_stats[weapon_name] = CSSWeapon.new(weapon_name, weapons_data)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
@weapon_stats
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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) 2010-2013, Sebastian Staudt
|
5
|
+
|
6
|
+
# Represents the stats for a Counter-Strike: Source weapon for a specific user
|
7
|
+
#
|
8
|
+
# @author Sebastian Staudt
|
9
|
+
class CSSWeapon
|
10
|
+
|
11
|
+
# Returns the number of hits achieved with this weapon
|
12
|
+
#
|
13
|
+
# @return [Fixnum] The number of hits achieved
|
14
|
+
attr_reader :hits
|
15
|
+
|
16
|
+
# Returns the name of this weapon
|
17
|
+
#
|
18
|
+
# @return [String] The name of this weapon
|
19
|
+
attr_reader :name
|
20
|
+
|
21
|
+
# Returns the number of kills achieved with this weapon
|
22
|
+
#
|
23
|
+
# @return [Fixnum] The number of kills achieved
|
24
|
+
attr_reader :kills
|
25
|
+
|
26
|
+
# Returns the number of shots fired with this weapon
|
27
|
+
#
|
28
|
+
# @return [Fixnum] The number of shots fired
|
29
|
+
attr_reader :shots
|
30
|
+
|
31
|
+
# Creates a new instance of a Counter-Strike: Source weapon based on the
|
32
|
+
# given XML data
|
33
|
+
#
|
34
|
+
# @param [String] weapon_name The name of the weapon
|
35
|
+
# @param [Hash<String, Object>] weapons_data The XML data of all weapons
|
36
|
+
def initialize(weapon_name, weapons_data)
|
37
|
+
@name = weapon_name
|
38
|
+
|
39
|
+
@favorite = (weapons_data['favorite'] == @name)
|
40
|
+
@kills = weapons_data["#{@name}_kills"].to_i
|
41
|
+
|
42
|
+
if @name != 'grenade' && @name != 'knife'
|
43
|
+
@hits = weapons_data["#{@name}_hits"].to_i
|
44
|
+
@shots = weapons_data["#{@name}_shots"].to_i
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns the accuracy of this player with this weapon
|
49
|
+
#
|
50
|
+
# @return [Float] The accuracy with this weapon
|
51
|
+
def accuracy
|
52
|
+
(@shots > 0) ? @hits.to_f / @shots : 0
|
53
|
+
end
|
54
|
+
|
55
|
+
# Returns whether this weapon is the favorite weapon of this player
|
56
|
+
#
|
57
|
+
# @return [Boolean] `true` if this is the favorite weapon
|
58
|
+
def favorite?
|
59
|
+
@favorite
|
60
|
+
end
|
61
|
+
|
62
|
+
# Returns the kill-shot-ratio of this player with this weapon
|
63
|
+
#
|
64
|
+
# @return [Float] The kill-shot-ratio
|
65
|
+
def ksratio
|
66
|
+
(@shots > 0) ? @kills.to_f / @shots : 0
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|