sightstone 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sightstone.rb +1 -0
- data/lib/sightstone/modules/champion_module.rb +1 -1
- data/lib/sightstone/modules/stats_module.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99183bf85100d46a45520091b1051982463a588d
|
4
|
+
data.tar.gz: 5d00fdc61114ddac8017d9e83390124bc72ced7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e54d154007fd08f640cd597d03d73ea2b20d17b878bd39e39d6309935817ac35bc63a7be23c833aa1b74d47987c504a0c9bcb1e50400e9a6fdf12f2ad7a4e97
|
7
|
+
data.tar.gz: 043e21dd8bd65b02baef3d5c3554afebcfc74ca9e07d07a7b13f09a42733ec2e2a049732c0904f8690b009500c5512f82e5b64ba2cdc7720c9412ee7ac421d09
|
data/lib/sightstone.rb
CHANGED
@@ -6,6 +6,7 @@ require 'sightstone/modules/game_module'
|
|
6
6
|
require 'sightstone/modules/league_module'
|
7
7
|
require 'sightstone/modules/stats_module'
|
8
8
|
require 'sightstone/modules/team_module'
|
9
|
+
#require 'sightstone/modules/datadragon_module'
|
9
10
|
|
10
11
|
# This is the main class of the Sightstone gem. All calls should be perfomrmed through this class.
|
11
12
|
# @attr [String] region The default region
|
@@ -7,7 +7,7 @@ class ChampionModule < SightstoneBaseModule
|
|
7
7
|
@sightstone = sightstone
|
8
8
|
end
|
9
9
|
|
10
|
-
def champions(
|
10
|
+
def champions(optional={})
|
11
11
|
region = optional[:region] || @sightstone.region
|
12
12
|
free_to_play = optional[:free_to_play]
|
13
13
|
uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.1/champion"
|
@@ -8,8 +8,8 @@ class StatsModule < SightstoneBaseModule
|
|
8
8
|
@sightstone = sightstone
|
9
9
|
end
|
10
10
|
|
11
|
-
def summary(summoner,
|
12
|
-
region = optional[:region] || @sightstone.region
|
11
|
+
def summary(summoner, optional={})
|
12
|
+
region = optional[:region] || @sightstone.region
|
13
13
|
season = optional[:season]
|
14
14
|
|
15
15
|
id = if summoner.is_a? Summoner
|