wot_api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/lib/wot_api/base.rb +16 -4
- data/lib/wot_api/version.rb +1 -1
- data/spec/base_spec.rb +16 -0
- data/spec/fixtures/account_achievements.json +5 -5
- data/spec/fixtures/account_info.json +5 -5
- data/spec/fixtures/account_list.json +5 -5
- data/spec/fixtures/account_tanks.json +5 -5
- data/spec/fixtures/clan_info.json +5 -5
- data/spec/fixtures/clan_list.json +5 -5
- data/spec/fixtures/clan_membersinfo.json +3 -3
- data/spec/fixtures/clan_provinces.json +3 -3
- data/spec/fixtures/clan_top.json +5 -6
- data/spec/fixtures/clanratings_clans.json +12 -0
- data/spec/fixtures/clanratings_dates.json +12 -0
- data/spec/fixtures/clanratings_neighbors.json +12 -0
- data/spec/fixtures/clanratings_top.json +13 -0
- data/spec/fixtures/clanratings_types.json +13 -0
- data/spec/fixtures/encyclopedia_achievements.json +5 -5
- data/spec/fixtures/encyclopedia_arenas.json +13 -0
- data/spec/fixtures/encyclopedia_info.json +13 -0
- data/spec/fixtures/encyclopedia_tankchassis.json +5 -5
- data/spec/fixtures/encyclopedia_tankengines.json +5 -5
- data/spec/fixtures/encyclopedia_tankguns.json +5 -5
- data/spec/fixtures/encyclopedia_tankinfo.json +5 -5
- data/spec/fixtures/encyclopedia_tankradios.json +5 -5
- data/spec/fixtures/encyclopedia_tanks.json +5 -5
- data/spec/fixtures/encyclopedia_tankturrets.json +5 -5
- data/spec/fixtures/endpoints.yml +24 -5
- data/spec/fixtures/globalwar_alleyoffame.json +12 -0
- data/spec/fixtures/{clan_battles.json → globalwar_battles.json} +3 -3
- data/spec/fixtures/globalwar_clans.json +5 -5
- data/spec/fixtures/globalwar_famepoints.json +3 -3
- data/spec/fixtures/globalwar_famepointshistory.json +11 -0
- data/spec/fixtures/globalwar_maps.json +5 -5
- data/spec/fixtures/globalwar_provinces.json +5 -5
- data/spec/fixtures/globalwar_top.json +5 -5
- data/spec/fixtures/globalwar_tournaments.json +3 -3
- data/spec/fixtures/{clan_victorypointshistory.json → globalwar_victorypointshistory.json} +3 -3
- data/spec/fixtures/ratings_accounts.json +4 -4
- data/spec/fixtures/ratings_dates.json +4 -4
- data/spec/fixtures/ratings_neighbors.json +4 -4
- data/spec/fixtures/ratings_top.json +5 -5
- data/spec/fixtures/ratings_types.json +5 -5
- data/spec/fixtures/tanks_achievements.json +5 -5
- data/spec/fixtures/tanks_stats.json +5 -5
- metadata +24 -6
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:25 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Content-Length: 974
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1001407449":{"survived_ratio":{"rank_delta":null,"value":0.0
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":{"survived_ratio":{"rank_delta":null,"rank":null,"value":0.0},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":null,"rank":null,"value":51.74},"account_id":1001407449,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":null,"rank":null,"value":30.72},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":null,"rank":null,"value":230},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":null,"rank":null,"value":167.75},"damage_dealt":{"rank_delta":null,"rank":null,"value":53840},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":null,"rank":null,"value":772},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":683,"battles_count":{"rank_delta":null,"rank":null,"value":317},"global_rating":{"rank_delta":null,"rank":null,"value":0}}}}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:24 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Content-Length: 129
|
6
6
|
Connection: keep-alive
|
7
|
-
X-Api-Version: 2.
|
7
|
+
X-Api-Version: 2.15.2
|
8
8
|
Content-Language: en
|
9
|
-
Access-Control-Request-Method: GET, POST
|
9
|
+
Access-Control-Request-Method: GET, POST
|
10
10
|
Access-Control-Allow-Origin: *
|
11
11
|
|
12
|
-
{"status":"ok","count":1,"data":{"all":{"dates":[
|
12
|
+
{"status":"ok","count":1,"data":{"all":{"dates":[1416355200,1416268800,1416182400,1416096000,1416009600,1415923200,1415836800]}}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:26 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Content-Length: 961
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":[{"survived_ratio":{"rank_delta":null,"value":0.0
|
13
|
+
{"status":"ok","count":1,"data":[{"survived_ratio":{"rank_delta":null,"rank":null,"value":0.0},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":null,"rank":null,"value":51.74},"account_id":1001407449,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":null,"rank":null,"value":30.72},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":null,"rank":null,"value":230},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":null,"rank":null,"value":167.75},"damage_dealt":{"rank_delta":null,"rank":null,"value":53840},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":null,"rank":null,"value":772},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":683,"battles_count":{"rank_delta":null,"rank":null,"value":317},"global_rating":{"rank_delta":null,"rank":null,"value":0}}]}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:27 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 9256
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":10,"data":[{"survived_ratio":{"rank_delta":-
|
13
|
+
{"status":"ok","count":10,"data":[{"survived_ratio":{"rank_delta":-99,"rank":120915,"value":27.38},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":558,"rank":68748,"value":51.46},"account_id":1001842279,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":54,"rank":81503,"value":64.05},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":23,"rank":12552,"value":19641},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":28,"rank":34688,"value":564.94},"damage_dealt":{"rank_delta":16,"rank":10298,"value":22277646},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":1,"value":5851},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":18,"rank":11147,"value":21832},"global_rating":{"rank_delta":94,"rank":38836,"value":5990}},{"survived_ratio":{"rank_delta":-13,"rank":4214,"value":41.74},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":0,"rank":578,"value":63.74},"account_id":1000385447,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-10,"rank":6851,"value":73.71},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-1,"rank":114,"value":58014},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-1,"rank":292,"value":891.14},"damage_dealt":{"rank_delta":1,"rank":115,"value":67744888},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":2,"value":4926},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":2,"rank":1193,"value":36132},"global_rating":{"rank_delta":-1,"rank":62,"value":10612}},{"survived_ratio":{"rank_delta":-2,"rank":1356,"value":45.67},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":-9,"rank":7026,"value":56.77},"account_id":1001922908,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-12,"rank":5333,"value":74.31},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-12,"rank":8147,"value":22883},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-3,"rank":1513,"value":794.99},"damage_dealt":{"rank_delta":-18,"rank":4139,"value":30762595},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":3,"value":4824},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-54,"rank":29918,"value":15532},"global_rating":{"rank_delta":0,"rank":482,"value":9786}},{"survived_ratio":{"rank_delta":-10,"rank":13773,"value":37.5},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":4,"rank":4854,"value":57.69},"account_id":1001051582,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-20,"rank":11864,"value":72.21},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-53,"rank":46208,"value":10639},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-12,"rank":4388,"value":729.04},"damage_dealt":{"rank_delta":-44,"rank":34815,"value":12047360},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":4,"value":4776},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-70,"rank":90312,"value":8750},"global_rating":{"rank_delta":-30,"rank":38405,"value":6005}},{"survived_ratio":{"rank_delta":-2,"rank":4333,"value":41.65},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":-10,"rank":11632,"value":55.53},"account_id":1000482987,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-12,"rank":13180,"value":71.89},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-56,"rank":50571,"value":10061},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-29,"rank":32487,"value":571.61},"damage_dealt":{"rank_delta":-63,"rank":64097,"value":7692588},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":5,"value":4659},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-85,"rank":101632,"value":8050},"global_rating":{"rank_delta":-16,"rank":12238,"value":7357}},{"survived_ratio":{"rank_delta":-4,"rank":2014,"value":44.35},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":0,"rank":931,"value":62.2},"account_id":1000353593,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-95,"rank":25746,"value":69.62},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-3,"rank":5509,"value":25823},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-5,"rank":1966,"value":779.22},"damage_dealt":{"rank_delta":-6,"rank":5357,"value":28292725},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":6,"value":4249},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-9,"rank":19691,"value":18161},"global_rating":{"rank_delta":-3,"rank":606,"value":9679}},{"survived_ratio":{"rank_delta":-7,"rank":10272,"value":38.58},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":0,"rank":1969,"value":60.1},"account_id":1001646022,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-83,"rank":108983,"value":62.05},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-22,"rank":9529,"value":21713},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-2,"rank":1805,"value":784.81},"damage_dealt":{"rank_delta":-17,"rank":6959,"value":25860394},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":7,"value":4246},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-43,"rank":23320,"value":17116},"global_rating":{"rank_delta":-2,"rank":780,"value":9532}},{"survived_ratio":{"rank_delta":-173,"rank":197639,"value":23.77},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":-93,"rank":169721,"value":49.17},"account_id":1002253823,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-124,"rank":139104,"value":60.05},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-41,"rank":24945,"value":14760},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-34,"rank":39260,"value":552.24},"damage_dealt":{"rank_delta":-31,"rank":14277,"value":19450616},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":8,"value":4153},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-41,"rank":15653,"value":19666},"global_rating":{"rank_delta":-51,"rank":60733,"value":5361}},{"survived_ratio":{"rank_delta":2,"rank":8417,"value":39.29},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":-2,"rank":2624,"value":59.35},"account_id":1000509952,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-18,"rank":13870,"value":71.73},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-4,"rank":501,"value":45231},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-1,"rank":490,"value":862.64},"damage_dealt":{"rank_delta":-2,"rank":305,"value":57431526},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":9,"value":4150},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-11,"rank":3718,"value":28829},"global_rating":{"rank_delta":-1,"rank":157,"value":10290}},{"survived_ratio":{"rank_delta":-7,"rank":28772,"value":34.54},"capture_points":{"rank_delta":null,"rank":null,"value":null},"wins_ratio":{"rank_delta":-11,"rank":9597,"value":55.99},"account_id":1000115683,"frags_avg":{"rank_delta":null,"rank":null,"value":null},"hits_ratio":{"rank_delta":-35,"rank":28330,"value":69.25},"xp_amount":{"rank_delta":null,"rank":null,"value":null},"frags_count":{"rank_delta":-5,"rank":1566,"value":35755},"spotted_avg":{"rank_delta":null,"rank":null,"value":null},"xp_avg":{"rank_delta":-8,"rank":6428,"value":702.17},"damage_dealt":{"rank_delta":-4,"rank":1301,"value":42090888},"spotted_count":{"rank_delta":null,"rank":null,"value":null},"xp_max":{"rank_delta":0,"rank":10,"value":4062},"damage_avg":{"rank_delta":null,"rank":null,"value":null},"battles_to_play":0,"battles_count":{"rank_delta":-14,"rank":4608,"value":27470},"global_rating":{"rank_delta":-4,"rank":2360,"value":8830}}]}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:24 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 701
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":4,"data":{"1":{"threshold":5,"type":"1","rank_fields":["
|
13
|
+
{"status":"ok","count":4,"data":{"1":{"threshold":5,"type":"1","rank_fields":["frags_count","xp_amount","battles_count","spotted_count","damage_dealt","capture_points","hits_ratio"]},"all":{"threshold":1000,"type":"all","rank_fields":["battles_count","xp_max","xp_avg","wins_ratio","frags_count","hits_ratio","damage_dealt","global_rating","survived_ratio"]},"28":{"threshold":100,"type":"28","rank_fields":["frags_count","xp_avg","wins_ratio","frags_avg","hits_ratio","damage_avg","survived_ratio","spotted_avg","capture_points"]},"7":{"threshold":20,"type":"7","rank_fields":["frags_count","xp_amount","xp_avg","battles_count","frags_avg","hits_ratio","damage_dealt","damage_avg","spotted_count"]}}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:31 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 2877
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1001407449":[{"achievements":{"medalCarius":4,"medalAbrams":4,"
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":[{"achievements":{"medalCarius":4,"medalAbrams":4,"medalPoppel":4,"medalKay":4,"markOfMastery":4,"invader":1,"medalLeClerc":4,"medalKnispel":4},"series":{"armorPiercer":5,"titleSniper":7,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":1,"handOfDeath":0},"max_series":{"armorPiercer":7,"titleSniper":12,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":5,"handOfDeath":2},"account_id":1001407449,"tank_id":6401},{"achievements":{"medalCarius":4,"medalAbrams":4,"medalPoppel":4,"markOfMastery":2,"medalLeClerc":4,"medalKnispel":4},"series":{"armorPiercer":1,"titleSniper":1,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":0},"max_series":{"armorPiercer":8,"titleSniper":8,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":2},"account_id":1001407449,"tank_id":6913},{"achievements":{"medalCarius":4,"medalAbrams":4,"medalKnispel":4,"medalKay":4,"markOfMastery":3,"medalLeClerc":4,"supporter":1},"series":{"armorPiercer":10,"titleSniper":10,"deathTrack":0,"invincible":0,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":2},"max_series":{"armorPiercer":10,"titleSniper":15,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":2},"account_id":1001407449,"tank_id":5121},{"achievements":{"medalCarius":4,"medalLeClerc":4,"medalAbrams":4,"markOfMastery":2,"armorPiercer":5},"series":{"armorPiercer":1,"titleSniper":4,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":1,"handOfDeath":1},"max_series":{"armorPiercer":5,"titleSniper":5,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":3,"handOfDeath":1},"account_id":1001407449,"tank_id":3089},{"achievements":{"armorPiercer":5},"series":{"armorPiercer":3,"titleSniper":3,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":1},"max_series":{"armorPiercer":5,"titleSniper":5,"deathTrack":0,"invincible":1,"tacticalBreakthrough":0,"diehard":2,"handOfDeath":1},"account_id":1001407449,"tank_id":545},{"achievements":{"medalCarius":4,"medalLeClerc":4,"medalAbrams":4,"medalLavrinenko":4,"markOfMastery":3},"series":{"armorPiercer":2,"titleSniper":2,"deathTrack":0,"invincible":0,"tacticalBreakthrough":0,"diehard":1,"handOfDeath":1},"max_series":{"armorPiercer":7,"titleSniper":13,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":5,"handOfDeath":1},"account_id":1001407449,"tank_id":3329},{"achievements":{"titleSniper":12,"medalCarius":4,"medalAbrams":4,"markOfMastery":1,"armorPiercer":10},"series":{"armorPiercer":0,"titleSniper":0,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":4,"handOfDeath":0},"max_series":{"armorPiercer":10,"titleSniper":12,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":5,"handOfDeath":1},"account_id":1001407449,"tank_id":2065}]}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:31 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 6069
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1001407449":[{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":33,"hits":
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":[{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":33,"hits":303,"battle_avg_xp":166,"draws":0,"wins":45,"losses":46,"capture_points":265,"battles":91,"damage_dealt":16926,"hits_percents":49,"damage_received":10896,"shots":613,"xp":15076,"frags":55,"survived_battles":26,"dropped_capture_points":77},"account_id":1001407449,"max_xp":772,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":4,"frags":null,"mark_of_mastery":4,"in_garage":null,"tank_id":6401},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":23,"hits":145,"battle_avg_xp":183,"draws":2,"wins":23,"losses":22,"capture_points":98,"battles":47,"damage_dealt":11084,"hits_percents":52,"damage_received":9770,"shots":280,"xp":8605,"frags":26,"survived_battles":11,"dropped_capture_points":0},"account_id":1001407449,"max_xp":620,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":3,"frags":null,"mark_of_mastery":2,"in_garage":null,"tank_id":6913},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":14,"hits":272,"battle_avg_xp":146,"draws":3,"wins":33,"losses":36,"capture_points":101,"battles":72,"damage_dealt":12740,"hits_percents":45,"damage_received":7089,"shots":598,"xp":10518,"frags":54,"survived_battles":18,"dropped_capture_points":37},"account_id":1001407449,"max_xp":535,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":5,"frags":null,"mark_of_mastery":3,"in_garage":null,"tank_id":5121},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":7,"hits":126,"battle_avg_xp":184,"draws":0,"wins":15,"losses":6,"capture_points":119,"battles":21,"damage_dealt":2624,"hits_percents":38,"damage_received":1258,"shots":333,"xp":3854,"frags":22,"survived_battles":11,"dropped_capture_points":0},"account_id":1001407449,"max_xp":383,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":3,"frags":null,"mark_of_mastery":2,"in_garage":null,"tank_id":3089},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":5,"hits":27,"battle_avg_xp":209,"draws":0,"wins":4,"losses":1,"capture_points":0,"battles":5,"damage_dealt":629,"hits_percents":45,"damage_received":263,"shots":60,"xp":1046,"frags":6,"survived_battles":3,"dropped_capture_points":0},"account_id":1001407449,"max_xp":300,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":2,"frags":null,"mark_of_mastery":0,"in_garage":null,"tank_id":545},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":19,"hits":190,"battle_avg_xp":196,"draws":1,"wins":27,"losses":17,"capture_points":137,"battles":45,"damage_dealt":5740,"hits_percents":36,"damage_received":2642,"shots":526,"xp":8819,"frags":43,"survived_battles":24,"dropped_capture_points":37},"account_id":1001407449,"max_xp":652,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":5,"frags":null,"mark_of_mastery":3,"in_garage":null,"tank_id":3329},{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":16,"hits":692,"battle_avg_xp":146,"draws":0,"wins":17,"losses":19,"capture_points":14,"battles":36,"damage_dealt":4097,"hits_percents":21,"damage_received":3367,"shots":3302,"xp":5259,"frags":24,"survived_battles":14,"dropped_capture_points":5},"account_id":1001407449,"max_xp":288,"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_frags":3,"frags":null,"mark_of_mastery":1,"in_garage":null,"tank_id":2065}]}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wot_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Cantara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -117,14 +117,19 @@ files:
|
|
117
117
|
- spec/fixtures/account_info.json
|
118
118
|
- spec/fixtures/account_list.json
|
119
119
|
- spec/fixtures/account_tanks.json
|
120
|
-
- spec/fixtures/clan_battles.json
|
121
120
|
- spec/fixtures/clan_info.json
|
122
121
|
- spec/fixtures/clan_list.json
|
123
122
|
- spec/fixtures/clan_membersinfo.json
|
124
123
|
- spec/fixtures/clan_provinces.json
|
125
124
|
- spec/fixtures/clan_top.json
|
126
|
-
- spec/fixtures/
|
125
|
+
- spec/fixtures/clanratings_clans.json
|
126
|
+
- spec/fixtures/clanratings_dates.json
|
127
|
+
- spec/fixtures/clanratings_neighbors.json
|
128
|
+
- spec/fixtures/clanratings_top.json
|
129
|
+
- spec/fixtures/clanratings_types.json
|
127
130
|
- spec/fixtures/encyclopedia_achievements.json
|
131
|
+
- spec/fixtures/encyclopedia_arenas.json
|
132
|
+
- spec/fixtures/encyclopedia_info.json
|
128
133
|
- spec/fixtures/encyclopedia_tankchassis.json
|
129
134
|
- spec/fixtures/encyclopedia_tankengines.json
|
130
135
|
- spec/fixtures/encyclopedia_tankguns.json
|
@@ -134,12 +139,16 @@ files:
|
|
134
139
|
- spec/fixtures/encyclopedia_tankturrets.json
|
135
140
|
- spec/fixtures/endpoints.yml
|
136
141
|
- spec/fixtures/error.json
|
142
|
+
- spec/fixtures/globalwar_alleyoffame.json
|
143
|
+
- spec/fixtures/globalwar_battles.json
|
137
144
|
- spec/fixtures/globalwar_clans.json
|
138
145
|
- spec/fixtures/globalwar_famepoints.json
|
146
|
+
- spec/fixtures/globalwar_famepointshistory.json
|
139
147
|
- spec/fixtures/globalwar_maps.json
|
140
148
|
- spec/fixtures/globalwar_provinces.json
|
141
149
|
- spec/fixtures/globalwar_top.json
|
142
150
|
- spec/fixtures/globalwar_tournaments.json
|
151
|
+
- spec/fixtures/globalwar_victorypointshistory.json
|
143
152
|
- spec/fixtures/ratings_accounts.json
|
144
153
|
- spec/fixtures/ratings_dates.json
|
145
154
|
- spec/fixtures/ratings_neighbors.json
|
@@ -180,14 +189,19 @@ test_files:
|
|
180
189
|
- spec/fixtures/account_info.json
|
181
190
|
- spec/fixtures/account_list.json
|
182
191
|
- spec/fixtures/account_tanks.json
|
183
|
-
- spec/fixtures/clan_battles.json
|
184
192
|
- spec/fixtures/clan_info.json
|
185
193
|
- spec/fixtures/clan_list.json
|
186
194
|
- spec/fixtures/clan_membersinfo.json
|
187
195
|
- spec/fixtures/clan_provinces.json
|
188
196
|
- spec/fixtures/clan_top.json
|
189
|
-
- spec/fixtures/
|
197
|
+
- spec/fixtures/clanratings_clans.json
|
198
|
+
- spec/fixtures/clanratings_dates.json
|
199
|
+
- spec/fixtures/clanratings_neighbors.json
|
200
|
+
- spec/fixtures/clanratings_top.json
|
201
|
+
- spec/fixtures/clanratings_types.json
|
190
202
|
- spec/fixtures/encyclopedia_achievements.json
|
203
|
+
- spec/fixtures/encyclopedia_arenas.json
|
204
|
+
- spec/fixtures/encyclopedia_info.json
|
191
205
|
- spec/fixtures/encyclopedia_tankchassis.json
|
192
206
|
- spec/fixtures/encyclopedia_tankengines.json
|
193
207
|
- spec/fixtures/encyclopedia_tankguns.json
|
@@ -197,12 +211,16 @@ test_files:
|
|
197
211
|
- spec/fixtures/encyclopedia_tankturrets.json
|
198
212
|
- spec/fixtures/endpoints.yml
|
199
213
|
- spec/fixtures/error.json
|
214
|
+
- spec/fixtures/globalwar_alleyoffame.json
|
215
|
+
- spec/fixtures/globalwar_battles.json
|
200
216
|
- spec/fixtures/globalwar_clans.json
|
201
217
|
- spec/fixtures/globalwar_famepoints.json
|
218
|
+
- spec/fixtures/globalwar_famepointshistory.json
|
202
219
|
- spec/fixtures/globalwar_maps.json
|
203
220
|
- spec/fixtures/globalwar_provinces.json
|
204
221
|
- spec/fixtures/globalwar_top.json
|
205
222
|
- spec/fixtures/globalwar_tournaments.json
|
223
|
+
- spec/fixtures/globalwar_victorypointshistory.json
|
206
224
|
- spec/fixtures/ratings_accounts.json
|
207
225
|
- spec/fixtures/ratings_dates.json
|
208
226
|
- spec/fixtures/ratings_neighbors.json
|