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