wot_api 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +1 -1
  4. data/lib/wot_api/base.rb +16 -4
  5. data/lib/wot_api/version.rb +1 -1
  6. data/spec/base_spec.rb +16 -0
  7. data/spec/fixtures/account_achievements.json +5 -5
  8. data/spec/fixtures/account_info.json +5 -5
  9. data/spec/fixtures/account_list.json +5 -5
  10. data/spec/fixtures/account_tanks.json +5 -5
  11. data/spec/fixtures/clan_info.json +5 -5
  12. data/spec/fixtures/clan_list.json +5 -5
  13. data/spec/fixtures/clan_membersinfo.json +3 -3
  14. data/spec/fixtures/clan_provinces.json +3 -3
  15. data/spec/fixtures/clan_top.json +5 -6
  16. data/spec/fixtures/clanratings_clans.json +12 -0
  17. data/spec/fixtures/clanratings_dates.json +12 -0
  18. data/spec/fixtures/clanratings_neighbors.json +12 -0
  19. data/spec/fixtures/clanratings_top.json +13 -0
  20. data/spec/fixtures/clanratings_types.json +13 -0
  21. data/spec/fixtures/encyclopedia_achievements.json +5 -5
  22. data/spec/fixtures/encyclopedia_arenas.json +13 -0
  23. data/spec/fixtures/encyclopedia_info.json +13 -0
  24. data/spec/fixtures/encyclopedia_tankchassis.json +5 -5
  25. data/spec/fixtures/encyclopedia_tankengines.json +5 -5
  26. data/spec/fixtures/encyclopedia_tankguns.json +5 -5
  27. data/spec/fixtures/encyclopedia_tankinfo.json +5 -5
  28. data/spec/fixtures/encyclopedia_tankradios.json +5 -5
  29. data/spec/fixtures/encyclopedia_tanks.json +5 -5
  30. data/spec/fixtures/encyclopedia_tankturrets.json +5 -5
  31. data/spec/fixtures/endpoints.yml +24 -5
  32. data/spec/fixtures/globalwar_alleyoffame.json +12 -0
  33. data/spec/fixtures/{clan_battles.json → globalwar_battles.json} +3 -3
  34. data/spec/fixtures/globalwar_clans.json +5 -5
  35. data/spec/fixtures/globalwar_famepoints.json +3 -3
  36. data/spec/fixtures/globalwar_famepointshistory.json +11 -0
  37. data/spec/fixtures/globalwar_maps.json +5 -5
  38. data/spec/fixtures/globalwar_provinces.json +5 -5
  39. data/spec/fixtures/globalwar_top.json +5 -5
  40. data/spec/fixtures/globalwar_tournaments.json +3 -3
  41. data/spec/fixtures/{clan_victorypointshistory.json → globalwar_victorypointshistory.json} +3 -3
  42. data/spec/fixtures/ratings_accounts.json +4 -4
  43. data/spec/fixtures/ratings_dates.json +4 -4
  44. data/spec/fixtures/ratings_neighbors.json +4 -4
  45. data/spec/fixtures/ratings_top.json +5 -5
  46. data/spec/fixtures/ratings_types.json +5 -5
  47. data/spec/fixtures/tanks_achievements.json +5 -5
  48. data/spec/fixtures/tanks_stats.json +5 -5
  49. metadata +24 -6
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Thu, 20 Nov 2014 21:26:23 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Content-Length: 1070
6
+ Connection: keep-alive
7
+ Vary: Accept-Encoding
8
+ X-Api-Version: 2.15.2
9
+ Content-Language: en
10
+ Access-Control-Request-Method: GET, POST
11
+ Access-Control-Allow-Origin: *
12
+
13
+ {"status":"ok","count":8,"data":{"vehicle_crew_roles":{"loader":"Loader","radioman":"Radio Operator","driver":"Driver","gunner":"Gunner","commander":"Commander"},"tanks_updated_at":1415710179,"game_updated_at":1415710179,"languages":{"ru":"Русский","fr":"Français","en":"English","vi":"Tiếng Việt","de":"Deutsch","tr":"Türkçe","ko":"한국어","zh-cn":"简体中文","es":"Español","th":"ไทย","cs":"Čeština","pl":"Polski"},"clans_roles":{"diplomat":"Intelligence Officer","junior_officer":"Junior Officer","recruiter":"Recruitment Officer","recruit":"Recruit","private":"Private","commander":"Combat Officer","reservist":"Reservist","treasurer":"Quartermaster","vice_leader":"Executive Officer","personnel_officer":"Personnel Officer","leader":"Commander"},"vehicle_types":{"heavyTank":"Heavy Tank","AT-SPG":"Tank Destroyer","mediumTank":"Medium Tank","lightTank":"Light Tank","SPG":"SPG"},"vehicle_nations":{"usa":"U.S.A.","france":"France","ussr":"U.S.S.R.","china":"China","uk":"U.K.","japan":"Japan","germany":"Germany"},"game_version":"9.4"}}