fixed exception for games without fellows
This commit is contained in:
@@ -37,9 +37,11 @@ class HistoryGame
|
||||
@createDate=data['createDate']
|
||||
@createDateString=data['createDateString']
|
||||
@fellowPlayers=[]
|
||||
if(data.has_key? "fellowPlayers")
|
||||
data['fellowPlayers'].each do |player|
|
||||
@fellowPlayers << Player.new(player)
|
||||
end
|
||||
end
|
||||
@gameId=data['gameId']
|
||||
@gameMode=data['gameMode']
|
||||
@gameType=data['gameType']
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'sightstone'
|
||||
s.version = '1.1.0'
|
||||
s.date = '2014-01-01'
|
||||
s.version = '1.1.1'
|
||||
s.date = '2014-01-05'
|
||||
s.summary = 'Ruby wrapper for riots league of legends api'
|
||||
s.description = s.summary
|
||||
s.authors = ["Daniel Bauer"]
|
||||
|
||||
Reference in New Issue
Block a user