ruby-lol 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d75f0fb485dab7a2d3a470defd488b77c74072b
4
- data.tar.gz: e0a5ffc51ed377c3f703e727d17fc3008e0afbee
3
+ metadata.gz: f52ca22e44a0c4453577276a5ed991007b54492f
4
+ data.tar.gz: 65e46662442d175dde5fe3f71ec0fe63fc31a6a2
5
5
  SHA512:
6
- metadata.gz: e3e13fde1d60a6dda503d731d9174e728def81d92096f71a08c24922452fdeba26b55ec52c922d8ebf19946adfb29303d1bd4c2ab01e457b2df9cc9d191499f0
7
- data.tar.gz: 5a013dc8d2150ce1b571cac10d323d62e6997a77b830a826becdf96bf669f29c7f18cca949cd4e0ff60433b886b719e6cce090ada7fb6333a41ac163eb0f529b
6
+ metadata.gz: 9f776f69fcc596d1332903648cdb19359fe48e97796511108ccbccf147f9a1222b91317fcb7fa265352d49de1d54078ebdf68e71fc242c6b5be49fabed60ae94
7
+ data.tar.gz: 35daf8ea359b1eb2214cf25d9fec0eda6f01a2f95a3bcfbbcce80bcbb5608948dccb54b28dc33795ebe6ee7a983bf5c638bdfa8cf9830001ae1cda3d1a9d1084
@@ -6,5 +6,10 @@ module Lol
6
6
  "v2.2"
7
7
  end
8
8
 
9
+ # Returns match history for a summoner
10
+ # @return []
11
+ def get summoner_id
12
+ perform_request(api_url("matchhistory/#{summoner_id}"))
13
+ end
9
14
  end
10
15
  end
data/lib/lol/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lol
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
@@ -0,0 +1 @@
1
+ {"matches":[{"matchId":2173849064,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435354692565,"matchDuration":1301,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":102,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.7,"tenToTwenty":2.1},"xpPerMinDeltas":{"zeroToTen":378.6,"tenToTwenty":473.79999999999995},"goldPerMinDeltas":{"zeroToTen":273.20000000000005,"tenToTwenty":407.29999999999995},"damageTakenPerMinDeltas":{"zeroToTen":509.9,"tenToTwenty":829.4},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":true,"champLevel":13,"item0":3717,"item1":3153,"item2":2003,"item3":0,"item4":3111,"item5":0,"item6":3340,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":0,"assists":4,"totalDamageDealt":125772,"totalDamageDealtToChampions":2716,"totalDamageTaken":14956,"largestCriticalStrike":0,"totalHeal":1552,"minionsKilled":51,"neutralMinionsKilled":78,"neutralMinionsKilledTeamJungle":63,"neutralMinionsKilledEnemyJungle":15,"goldEarned":8439,"goldSpent":7285,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":1550,"physicalDamageDealtToChampions":990,"trueDamageDealtToChampions":176,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":2,"magicDamageDealt":80031,"physicalDamageDealt":37300,"trueDamageDealt":8441,"magicDamageTaken":1038,"physicalDamageTaken":13260,"trueDamageTaken":657,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":9,"wardsKilled":1,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":493},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":3},{"runeId":5295,"rank":6},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2176278636,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435505379827,"matchDuration":2426,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6,"tenToTwenty":1.4,"twentyToThirty":1.2999999999999998,"thirtyToEnd":1.7},"xpPerMinDeltas":{"zeroToTen":283.0,"tenToTwenty":348.4,"twentyToThirty":276.7,"thirtyToEnd":594.2},"goldPerMinDeltas":{"zeroToTen":159.5,"tenToTwenty":308.4,"twentyToThirty":221.9,"thirtyToEnd":394.8},"csDiffPerMinDeltas":{"zeroToTen":-0.9499999999999997,"tenToTwenty":0.30000000000000004,"twentyToThirty":-0.6500000000000004,"thirtyToEnd":0.5500000000000003},"xpDiffPerMinDeltas":{"zeroToTen":-6.949999999999989,"tenToTwenty":-26.25,"twentyToThirty":-208.29999999999995,"thirtyToEnd":307.30000000000007},"damageTakenPerMinDeltas":{"zeroToTen":253.0,"tenToTwenty":569.2,"twentyToThirty":580.6,"thirtyToEnd":594.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-99.05000000000001,"tenToTwenty":-241.75000000000006,"twentyToThirty":15.800000000000011,"thirtyToEnd":-373.5500000000001},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3028,"item1":3092,"item2":3157,"item3":2049,"item4":0,"item5":3275,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":7,"assists":16,"totalDamageDealt":62839,"totalDamageDealtToChampions":21093,"totalDamageTaken":20172,"largestCriticalStrike":0,"totalHeal":1127,"minionsKilled":52,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":11794,"goldSpent":9885,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":19457,"physicalDamageDealtToChampions":1635,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":4,"sightWardsBoughtInGame":0,"magicDamageDealt":55819,"physicalDamageDealt":7020,"trueDamageDealt":0,"magicDamageTaken":6118,"physicalDamageTaken":13110,"trueDamageTaken":943,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":24,"wardsKilled":3,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":193},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177024488,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435521657303,"matchDuration":2896,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":7,"spell2Id":4,"championId":18,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":4.699999999999999,"tenToTwenty":5.6,"twentyToThirty":4.9,"thirtyToEnd":2.8666666666666667},"xpPerMinDeltas":{"zeroToTen":254.9,"tenToTwenty":360.4,"twentyToThirty":479.0,"thirtyToEnd":399.5333333333333},"goldPerMinDeltas":{"zeroToTen":191.89999999999998,"tenToTwenty":275.6,"twentyToThirty":415.9,"thirtyToEnd":305.6666666666667},"csDiffPerMinDeltas":{"zeroToTen":-0.9000000000000001,"tenToTwenty":-0.9000000000000001,"twentyToThirty":-0.7,"thirtyToEnd":-3.1666666666666665},"xpDiffPerMinDeltas":{"zeroToTen":-58.0,"tenToTwenty":47.50000000000006,"twentyToThirty":67.75,"thirtyToEnd":-124.59999999999998},"damageTakenPerMinDeltas":{"zeroToTen":305.29999999999995,"tenToTwenty":546.8,"twentyToThirty":667.8,"thirtyToEnd":920.4},"damageTakenDiffPerMinDeltas":{"zeroToTen":89.39999999999998,"tenToTwenty":-146.7,"twentyToThirty":58.34999999999991,"thirtyToEnd":-25.333333333333332},"role":"DUO_CARRY","lane":"BOTTOM"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4132,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4142,"rank":2},{"masteryId":4144,"rank":1},{"masteryId":4151,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3072,"item1":3031,"item2":3087,"item3":1031,"item4":3035,"item5":3006,"item6":3363,"kills":6,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":3,"deaths":10,"assists":16,"totalDamageDealt":289124,"totalDamageDealtToChampions":27484,"totalDamageTaken":32079,"largestCriticalStrike":1026,"totalHeal":5586,"minionsKilled":242,"neutralMinionsKilled":34,"neutralMinionsKilledTeamJungle":31,"neutralMinionsKilledEnemyJungle":3,"goldEarned":17609,"goldSpent":15330,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":6138,"physicalDamageDealtToChampions":21345,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":5,"magicDamageDealt":62202,"physicalDamageDealt":226106,"trueDamageDealt":816,"magicDamageTaken":8728,"physicalDamageTaken":23147,"trueDamageTaken":204,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":5,"wardsPlaced":15,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":391},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":9},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177985555,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435597843012,"matchDuration":2575,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":1.7000000000000002,"twentyToThirty":0.7,"thirtyToEnd":1.1},"xpPerMinDeltas":{"zeroToTen":251.5,"tenToTwenty":403.0,"twentyToThirty":381.8,"thirtyToEnd":262.0},"goldPerMinDeltas":{"zeroToTen":210.6,"tenToTwenty":322.0,"twentyToThirty":236.0,"thirtyToEnd":189.7},"csDiffPerMinDeltas":{"zeroToTen":0.1,"tenToTwenty":0.7,"twentyToThirty":5.551115123125783E-17,"thirtyToEnd":-0.7},"xpDiffPerMinDeltas":{"zeroToTen":-0.09999999999999432,"tenToTwenty":-62.5,"twentyToThirty":-58.69999999999999,"thirtyToEnd":-131.8},"damageTakenPerMinDeltas":{"zeroToTen":544.9,"tenToTwenty":814.5,"twentyToThirty":1003.2,"thirtyToEnd":766.6},"damageTakenDiffPerMinDeltas":{"zeroToTen":171.79999999999998,"tenToTwenty":242.00000000000003,"twentyToThirty":520.7,"thirtyToEnd":361.1},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4111,"rank":1},{"masteryId":4113,"rank":4},{"masteryId":4122,"rank":3},{"masteryId":4123,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":false,"champLevel":15,"item0":3725,"item1":3110,"item2":3190,"item3":2049,"item4":3047,"item5":0,"item6":3364,"kills":0,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":7,"assists":7,"totalDamageDealt":152520,"totalDamageDealtToChampions":9218,"totalDamageTaken":35296,"largestCriticalStrike":412,"totalHeal":6182,"minionsKilled":38,"neutralMinionsKilled":92,"neutralMinionsKilledTeamJungle":89,"neutralMinionsKilledEnemyJungle":3,"goldEarned":10640,"goldSpent":10400,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":7852,"physicalDamageDealtToChampions":1193,"trueDamageDealtToChampions":172,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":4,"magicDamageDealt":95503,"physicalDamageDealt":30432,"trueDamageDealt":26584,"magicDamageTaken":8718,"physicalDamageTaken":26231,"trueDamageTaken":346,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":23,"wardsKilled":6,"largestMultiKill":0,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2187542528,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436119345411,"matchDuration":2334,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":3,"spell2Id":4,"championId":53,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":1.2,"tenToTwenty":1.3,"twentyToThirty":2.5,"thirtyToEnd":1.0},"xpPerMinDeltas":{"zeroToTen":320.29999999999995,"tenToTwenty":246.2,"twentyToThirty":436.79999999999995,"thirtyToEnd":218.6},"goldPerMinDeltas":{"zeroToTen":161.2,"tenToTwenty":160.4,"twentyToThirty":312.79999999999995,"thirtyToEnd":206.8},"damageTakenPerMinDeltas":{"zeroToTen":317.6,"tenToTwenty":1002.5,"twentyToThirty":747.7,"thirtyToEnd":1744.6},"role":"SOLO","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":false,"champLevel":14,"item0":1033,"item1":3401,"item2":1028,"item3":2049,"item4":3110,"item5":3270,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":11,"assists":11,"totalDamageDealt":59273,"totalDamageDealtToChampions":11262,"totalDamageTaken":35205,"largestCriticalStrike":0,"totalHeal":3786,"minionsKilled":62,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":9022,"goldSpent":8670,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8292,"physicalDamageDealtToChampions":2970,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":45425,"physicalDamageDealt":10698,"trueDamageDealt":3148,"magicDamageTaken":12917,"physicalDamageTaken":19796,"trueDamageTaken":2492,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":31,"wardsKilled":4,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":1028},"participantId":0,"runes":[{"runeId":5257,"rank":9},{"runeId":5289,"rank":9},{"runeId":5315,"rank":6},{"runeId":5317,"rank":3},{"runeId":5345,"rank":2},{"runeId":5347,"rank":1}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2188951682,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436201953506,"matchDuration":2454,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":412,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6000000000000001,"tenToTwenty":1.0,"twentyToThirty":1.0,"thirtyToEnd":0.6},"xpPerMinDeltas":{"zeroToTen":253.6,"tenToTwenty":228.60000000000002,"twentyToThirty":426.59999999999997,"thirtyToEnd":564.1},"goldPerMinDeltas":{"zeroToTen":167.10000000000002,"tenToTwenty":230.7,"twentyToThirty":247.7,"thirtyToEnd":358.6},"damageTakenPerMinDeltas":{"zeroToTen":253.60000000000002,"tenToTwenty":541.5,"twentyToThirty":1474.2,"thirtyToEnd":1170.6},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3270,"item1":3401,"item2":3190,"item3":2049,"item4":3024,"item5":3082,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":8,"assists":24,"totalDamageDealt":38435,"totalDamageDealtToChampions":14327,"totalDamageTaken":34416,"largestCriticalStrike":0,"totalHeal":7562,"minionsKilled":32,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":10968,"goldSpent":9800,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":11251,"physicalDamageDealtToChampions":1945,"trueDamageDealtToChampions":1130,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":0,"magicDamageDealt":23917,"physicalDamageDealt":13388,"trueDamageDealt":1130,"magicDamageTaken":15976,"physicalDamageTaken":15399,"trueDamageTaken":3041,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":true,"inhibitorKills":0,"towerKills":1,"wardsPlaced":30,"wardsKilled":2,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":217},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":6},{"runeId":5301,"rank":3},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2190847923,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436306450891,"matchDuration":2120,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":200,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":3.0,"twentyToThirty":2.7,"thirtyToEnd":4.2},"xpPerMinDeltas":{"zeroToTen":251.8,"tenToTwenty":427.0,"twentyToThirty":473.6,"thirtyToEnd":555.0},"goldPerMinDeltas":{"zeroToTen":234.7,"tenToTwenty":350.8,"twentyToThirty":328.4,"thirtyToEnd":300.8},"csDiffPerMinDeltas":{"zeroToTen":-0.2,"tenToTwenty":1.3000000000000003,"twentyToThirty":0.8999999999999999,"thirtyToEnd":1.0},"xpDiffPerMinDeltas":{"zeroToTen":-45.499999999999986,"tenToTwenty":83.99999999999997,"twentyToThirty":-34.79999999999998,"thirtyToEnd":50.0},"damageTakenPerMinDeltas":{"zeroToTen":638.6,"tenToTwenty":860.6999999999999,"twentyToThirty":1265.0,"thirtyToEnd":1877.2},"damageTakenDiffPerMinDeltas":{"zeroToTen":-20.999999999999943,"tenToTwenty":159.59999999999997,"twentyToThirty":7.7999999999999545,"thirtyToEnd":434.20000000000005},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":2},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":3110,"item1":3065,"item2":3270,"item3":2043,"item4":1031,"item5":3725,"item6":3340,"kills":3,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":9,"assists":13,"totalDamageDealt":144651,"totalDamageDealtToChampions":12983,"totalDamageTaken":37029,"largestCriticalStrike":437,"totalHeal":10748,"minionsKilled":80,"neutralMinionsKilled":54,"neutralMinionsKilledTeamJungle":52,"neutralMinionsKilledEnemyJungle":2,"goldEarned":11303,"goldSpent":10540,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":10988,"physicalDamageDealtToChampions":1674,"trueDamageDealtToChampions":321,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":2,"magicDamageDealt":93140,"physicalDamageDealt":21911,"trueDamageDealt":29600,"magicDamageTaken":9543,"physicalDamageTaken":27092,"trueDamageTaken":394,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":10,"wardsKilled":0,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2193192246,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436424468361,"matchDuration":2706,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.3,"tenToTwenty":9.7,"twentyToThirty":7.4,"thirtyToEnd":4.733333333333333},"xpPerMinDeltas":{"zeroToTen":425.70000000000005,"tenToTwenty":597.4000000000001,"twentyToThirty":481.90000000000003,"thirtyToEnd":494.13333333333327},"goldPerMinDeltas":{"zeroToTen":244.0,"tenToTwenty":348.9,"twentyToThirty":358.20000000000005,"thirtyToEnd":452.26666666666665},"csDiffPerMinDeltas":{"zeroToTen":4.1,"tenToTwenty":4.7,"twentyToThirty":2.2,"thirtyToEnd":0.9333333333333335},"xpDiffPerMinDeltas":{"zeroToTen":51.5,"tenToTwenty":225.60000000000002,"twentyToThirty":37.50000000000006,"thirtyToEnd":202.99999999999997},"damageTakenPerMinDeltas":{"zeroToTen":238.7,"tenToTwenty":367.4,"twentyToThirty":1120.6,"thirtyToEnd":999.8666666666667},"damageTakenDiffPerMinDeltas":{"zeroToTen":-8.400000000000006,"tenToTwenty":-48.09999999999998,"twentyToThirty":603.3000000000001,"thirtyToEnd":413.59999999999997},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3116,"item1":3027,"item2":3157,"item3":3151,"item4":3020,"item5":1058,"item6":3340,"kills":7,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":5,"deaths":1,"assists":15,"totalDamageDealt":234018,"totalDamageDealtToChampions":31814,"totalDamageTaken":32265,"largestCriticalStrike":0,"totalHeal":4426,"minionsKilled":325,"neutralMinionsKilled":14,"neutralMinionsKilledTeamJungle":13,"neutralMinionsKilledEnemyJungle":1,"goldEarned":16781,"goldSpent":14805,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":28972,"physicalDamageDealtToChampions":1327,"trueDamageDealtToChampions":1515,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":200651,"physicalDamageDealt":31497,"trueDamageDealt":1869,"magicDamageTaken":16628,"physicalDamageTaken":14541,"trueDamageTaken":1095,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":true,"firstInhibitorAssist":false,"inhibitorKills":1,"towerKills":3,"wardsPlaced":11,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":419},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2192897448,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436428473676,"matchDuration":2098,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.1,"tenToTwenty":7.7,"twentyToThirty":3.4},"xpPerMinDeltas":{"zeroToTen":504.7,"tenToTwenty":497.1,"twentyToThirty":464.5},"goldPerMinDeltas":{"zeroToTen":296.20000000000005,"tenToTwenty":403.4,"twentyToThirty":401.5},"csDiffPerMinDeltas":{"zeroToTen":1.4,"tenToTwenty":3.5,"twentyToThirty":-3.1999999999999997},"xpDiffPerMinDeltas":{"zeroToTen":107.49999999999997,"tenToTwenty":147.5,"twentyToThirty":-159.29999999999998},"damageTakenPerMinDeltas":{"zeroToTen":162.4,"tenToTwenty":678.6,"twentyToThirty":1278.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-209.59999999999997,"tenToTwenty":188.6,"twentyToThirty":412.7},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":1026,"item1":3020,"item2":3157,"item3":1058,"item4":3027,"item5":3001,"item6":3340,"kills":8,"doubleKills":1,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":4,"deaths":5,"assists":11,"totalDamageDealt":147161,"totalDamageDealtToChampions":33031,"totalDamageTaken":28530,"largestCriticalStrike":0,"totalHeal":824,"minionsKilled":200,"neutralMinionsKilled":16,"neutralMinionsKilledTeamJungle":15,"neutralMinionsKilledEnemyJungle":1,"goldEarned":12878,"goldSpent":12050,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":30436,"physicalDamageDealtToChampions":1842,"trueDamageDealtToChampions":752,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":129533,"physicalDamageDealt":16875,"trueDamageDealt":752,"magicDamageTaken":14146,"physicalDamageTaken":14032,"trueDamageTaken":350,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":1,"wardsPlaced":5,"wardsKilled":0,"largestMultiKill":2,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":195},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2203066686,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436985924307,"matchDuration":1995,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.4,"tenToTwenty":1.1,"twentyToThirty":0.8},"xpPerMinDeltas":{"zeroToTen":276.5,"tenToTwenty":312.1,"twentyToThirty":317.4},"goldPerMinDeltas":{"zeroToTen":145.0,"tenToTwenty":308.7,"twentyToThirty":279.6},"csDiffPerMinDeltas":{"zeroToTen":0.8,"tenToTwenty":-0.7999999999999999,"twentyToThirty":-1.7000000000000006},"xpDiffPerMinDeltas":{"zeroToTen":31.90000000000002,"tenToTwenty":-12.050000000000011,"twentyToThirty":-53.49999999999997},"damageTakenPerMinDeltas":{"zeroToTen":113.0,"tenToTwenty":383.5,"twentyToThirty":379.29999999999995},"damageTakenDiffPerMinDeltas":{"zeroToTen":-144.9,"tenToTwenty":-230.89999999999998,"twentyToThirty":-403.75},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":14,"item0":2004,"item1":3092,"item2":3157,"item3":2049,"item4":3117,"item5":3028,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":2,"assists":20,"totalDamageDealt":29245,"totalDamageDealtToChampions":10165,"totalDamageTaken":12563,"largestCriticalStrike":0,"totalHeal":40,"minionsKilled":28,"neutralMinionsKilled":1,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":1,"goldEarned":10171,"goldSpent":8570,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8849,"physicalDamageDealtToChampions":1316,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":23205,"physicalDamageDealt":6040,"trueDamageDealt":0,"magicDamageTaken":5076,"physicalDamageTaken":7247,"trueDamageTaken":239,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":true,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":27,"wardsKilled":5,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":122},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]}]}
@@ -4,4 +4,25 @@ require "lol"
4
4
  include Lol
5
5
 
6
6
  describe MatchHistoryRequest do
7
+ it "inherits from Request" do
8
+ expect(MatchHistoryRequest.ancestors[1]).to eq(Request)
9
+ end
10
+
11
+ let(:request) { MatchHistoryRequest.new("api_key", "euw") }
12
+
13
+ describe "#get" do
14
+ subject { request.get(1) }
15
+
16
+ before { stub_request(request, 'match_history', 'matchhistory/1') }
17
+
18
+ it 'returns an hash' do
19
+ expect(subject).to be_a(Hash)
20
+ end
21
+
22
+ it 'fetches matches from the API' do
23
+ fixture = load_fixture('match_history', MatchHistoryRequest.api_version)
24
+ expect(subject.keys).to match_array fixture.keys
25
+ end
26
+ end
27
+
7
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Intini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -341,6 +341,7 @@ files:
341
341
  - spec/fixtures/v1.4/get-summoner-runes.json
342
342
  - spec/fixtures/v1.4/get-summoner.json
343
343
  - spec/fixtures/v2.2/get-match.json
344
+ - spec/fixtures/v2.2/get-match_history.json
344
345
  - spec/fixtures/v2.4/get-by-summoner.json
345
346
  - spec/fixtures/v2.4/get-team.json
346
347
  - spec/fixtures/v2.5/get-league-by-team.json
@@ -441,6 +442,7 @@ test_files:
441
442
  - spec/fixtures/v1.4/get-summoner-runes.json
442
443
  - spec/fixtures/v1.4/get-summoner.json
443
444
  - spec/fixtures/v2.2/get-match.json
445
+ - spec/fixtures/v2.2/get-match_history.json
444
446
  - spec/fixtures/v2.4/get-by-summoner.json
445
447
  - spec/fixtures/v2.4/get-team.json
446
448
  - spec/fixtures/v2.5/get-league-by-team.json