fixed commit
This commit is contained in:
@@ -6,6 +6,7 @@ require 'sightstone/modules/game_module'
|
||||
require 'sightstone/modules/league_module'
|
||||
require 'sightstone/modules/stats_module'
|
||||
require 'sightstone/modules/team_module'
|
||||
#require 'sightstone/modules/datadragon_module'
|
||||
|
||||
# This is the main class of the Sightstone gem. All calls should be perfomrmed through this class.
|
||||
# @attr [String] region The default region
|
||||
|
||||
@@ -7,7 +7,7 @@ class ChampionModule < SightstoneBaseModule
|
||||
@sightstone = sightstone
|
||||
end
|
||||
|
||||
def champions(, optional={})
|
||||
def champions(optional={})
|
||||
region = optional[:region] || @sightstone.region
|
||||
free_to_play = optional[:free_to_play]
|
||||
uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.1/champion"
|
||||
|
||||
@@ -8,8 +8,8 @@ class StatsModule < SightstoneBaseModule
|
||||
@sightstone = sightstone
|
||||
end
|
||||
|
||||
def summary(summoner, , optional={})
|
||||
region = optional[:region] || @sightstone.region)
|
||||
def summary(summoner, optional={})
|
||||
region = optional[:region] || @sightstone.region
|
||||
season = optional[:season]
|
||||
|
||||
id = if summoner.is_a? Summoner
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'sightstone'
|
||||
s.version = '0.2.0'
|
||||
s.version = '0.2.1'
|
||||
s.date = '2012-12-15'
|
||||
s.summary = 'Ruby wrapper for riots league of legends api'
|
||||
s.description = s.summary
|
||||
|
||||
Reference in New Issue
Block a user