From d08682d917978f77bdff2b2bbc9223949518894e Mon Sep 17 00:00:00 2001 From: danijoo Date: Sun, 15 Dec 2013 16:10:11 +0100 Subject: [PATCH] fixed commit --- lib/sightstone.rb | 1 + lib/sightstone/modules/champion_module.rb | 2 +- lib/sightstone/modules/stats_module.rb | 4 ++-- sightstone.gemspec | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/sightstone.rb b/lib/sightstone.rb index a3201c3..105f4e4 100644 --- a/lib/sightstone.rb +++ b/lib/sightstone.rb @@ -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 diff --git a/lib/sightstone/modules/champion_module.rb b/lib/sightstone/modules/champion_module.rb index d1dc53e..2f3ce40 100644 --- a/lib/sightstone/modules/champion_module.rb +++ b/lib/sightstone/modules/champion_module.rb @@ -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" diff --git a/lib/sightstone/modules/stats_module.rb b/lib/sightstone/modules/stats_module.rb index f2000a9..80b0c47 100644 --- a/lib/sightstone/modules/stats_module.rb +++ b/lib/sightstone/modules/stats_module.rb @@ -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 diff --git a/sightstone.gemspec b/sightstone.gemspec index dbb95d3..0877f5f 100644 --- a/sightstone.gemspec +++ b/sightstone.gemspec @@ -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