lolbase 0.3.0 → 0.4.0
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/README.md +19 -3
- data/lib/lolbase.rb +1 -0
- data/lib/lolbase/connection.rb +6 -2
- data/lib/lolbase/data/champion.rb +62 -0
- data/lib/lolbase/data/stats.rb +6 -8
- data/lib/lolbase/version.rb +1 -1
- data/spec/champion_data_spec.rb +36 -0
- data/spec/json/champion/1.1/champions.json +1523 -0
- data/spec/spec_helper.rb +4 -0
- metadata +6 -1
data/spec/spec_helper.rb
CHANGED
@@ -15,6 +15,10 @@ RSpec.configure do |config|
|
|
15
15
|
{
|
16
16
|
file: File.read(File.expand_path("../json/stats/1.2/ranked_s3.json", __FILE__)),
|
17
17
|
url: "https://prod.api.pvp.net/api/lol/na/v1.2/stats/by-summoner/19578577/ranked?api_key=random-key&season=SEASON3"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
file: File.read(File.expand_path("../json/champion/1.1/champions.json", __FILE__)),
|
21
|
+
url: "https://prod.api.pvp.net/api/lol/na/v1.1/champion?api_key=random-key"
|
18
22
|
}
|
19
23
|
]
|
20
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Regan Chan
|
@@ -96,13 +96,16 @@ files:
|
|
96
96
|
- lib/lolbase.rb
|
97
97
|
- lib/lolbase/configuration.rb
|
98
98
|
- lib/lolbase/connection.rb
|
99
|
+
- lib/lolbase/data/champion.rb
|
99
100
|
- lib/lolbase/data/profile_icon.rb
|
100
101
|
- lib/lolbase/data/stats.rb
|
101
102
|
- lib/lolbase/data/summoner.rb
|
102
103
|
- lib/lolbase/error.rb
|
103
104
|
- lib/lolbase/version.rb
|
104
105
|
- lolbase.gemspec
|
106
|
+
- spec/champion_data_spec.rb
|
105
107
|
- spec/connection_spec.rb
|
108
|
+
- spec/json/champion/1.1/champions.json
|
106
109
|
- spec/json/stats/1.2/ranked_s3.json
|
107
110
|
- spec/json/stats/1.2/summary_s3.json
|
108
111
|
- spec/json/summoner/1.2/summoner.json
|
@@ -134,7 +137,9 @@ signing_key:
|
|
134
137
|
specification_version: 4
|
135
138
|
summary: A basic Ruby wrapper for the League of Legends API.
|
136
139
|
test_files:
|
140
|
+
- spec/champion_data_spec.rb
|
137
141
|
- spec/connection_spec.rb
|
142
|
+
- spec/json/champion/1.1/champions.json
|
138
143
|
- spec/json/stats/1.2/ranked_s3.json
|
139
144
|
- spec/json/stats/1.2/summary_s3.json
|
140
145
|
- spec/json/summoner/1.2/summoner.json
|