riot_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -0
- data/Guardfile +11 -0
- data/LICENSE +20 -0
- data/README.md +68 -0
- data/Rakefile +14 -0
- data/lib/riot_api/api.rb +33 -0
- data/lib/riot_api/resource/base.rb +9 -0
- data/lib/riot_api/resource/summoner.rb +11 -0
- data/lib/riot_api/resource.rb +8 -0
- data/lib/riot_api/version.rb +3 -0
- data/lib/riot_api.rb +9 -0
- data/riot_api.gemspec +42 -0
- data/spec/api_spec.rb +39 -0
- data/spec/riot_api_spec.rb +7 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/vcr.rb +18 -0
- data/spec/vcr/cassettes/RiotApi_API/_summoner/_name/should_return_information_from_the_summoner_name.yml +47 -0
- metadata +238 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 17bde58de266bd8784b609710bb69ab284a1c57a
|
4
|
+
data.tar.gz: 83ce4b198561719b170da799fe167264eb4fb162
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d181ca19d237dc0deb4d490296ccc8128953874fc15f7036bdcad6ef4263a58557d63263777e7f0a7229177fc2584e0c7f785c73910c1cfb6cb4c9076e692cc0
|
7
|
+
data.tar.gz: 6dba356f080ef32437bedac026fd91f5049ad5a101af5c9db3739416786e8d9d3a0945c2281154db9de04d564fed11886977e57433f733fd89eea04a12470e44
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard 'rspec' do
|
5
|
+
watch(%r{^spec/.+_spec\.rb$})
|
6
|
+
watch(%r{^lib/(.+)/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}/#{m[2]}_spec.rb" }
|
7
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
8
|
+
|
9
|
+
watch('spec/spec_helper.rb') { "spec" }
|
10
|
+
end
|
11
|
+
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Peter Souter
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Riot API
|
2
|
+
|
3
|
+
A Ruby wrapper around connecting to the Riot API
|
4
|
+
|
5
|
+
Early days yet, but trying to make it as modular as possible :cat:
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'riot_api'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
```shell
|
18
|
+
$ bundle
|
19
|
+
```
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
```shell
|
24
|
+
$ gem install riot_api
|
25
|
+
```
|
26
|
+
|
27
|
+
## Usage:
|
28
|
+
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
require 'riot_api'
|
32
|
+
|
33
|
+
# Create Instace of the API
|
34
|
+
ra = RiotApi::API.new :api_key => 'API_KEY_HERE', :region => 'euw', :debug => true
|
35
|
+
|
36
|
+
# Search by Summoner name
|
37
|
+
summoner_details = ra.summoner.name('Best Lux EUW')
|
38
|
+
#<Hashie::Rash id=44600324 name="Best Lux EUW" profile_icon_id=7 revision_date=1375116256000 revision_date_str="07/29/2013 04:44 PM UTC" summoner_level=6>
|
39
|
+
|
40
|
+
summoner.name # => "Best Lux EUW"
|
41
|
+
```
|
42
|
+
|
43
|
+
## ChangeLog / History / Releases
|
44
|
+
|
45
|
+
see the [CHANGELOG.md](./CHANGELOG.md) file.
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
1. Fork it
|
50
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
51
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
52
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
53
|
+
5. Create new Pull Request
|
54
|
+
|
55
|
+
### Contributors
|
56
|
+
|
57
|
+
* None Yet :)
|
58
|
+
|
59
|
+
For more information and a complete list see [the contributor page on GitHub](https://github.com/petems/riot_api/contributors).
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
[MIT](./LICENSE)
|
64
|
+
|
65
|
+
## Thanks
|
66
|
+
|
67
|
+
* @rmoriz - For the excellent [digital_ocean](https://github.com/rmoriz/digital_ocean) gem, which I used as a framework to setup this gem! :+1:
|
68
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#encoding: utf-8
|
2
|
+
require 'rubygems'
|
3
|
+
require 'bundler'
|
4
|
+
Bundler.setup
|
5
|
+
Bundler::GemHelper.install_tasks
|
6
|
+
|
7
|
+
require 'rspec/core/rake_task'
|
8
|
+
desc 'Run RSpec'
|
9
|
+
RSpec::Core::RakeTask.new do |spec|
|
10
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
11
|
+
spec.rspec_opts = ['--color', '--format nested']
|
12
|
+
end
|
13
|
+
|
14
|
+
task :default => :spec
|
data/lib/riot_api/api.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
module RiotApi
|
2
|
+
class API
|
3
|
+
def initialize(params)
|
4
|
+
@api_key = params[:api_key]
|
5
|
+
@region = params[:region]
|
6
|
+
@debug = params[:debug]
|
7
|
+
@ssl = params[:ssl] || { :verify => true }
|
8
|
+
@base_url = params[:base_url] || "http://prod.api.pvp.net/api/lol/#{@region}/v1.1/"
|
9
|
+
@faraday_adapter = params[:faraday_adapter] || Faraday.default_adapter
|
10
|
+
@raise_status_errors = params[:raise_status_errors] || false
|
11
|
+
@faraday = params[:faraday] || default_faraday
|
12
|
+
raise ArgumentError, ':api_key missing' unless @api_key
|
13
|
+
raise ArgumentError, ':region missing' unless @region
|
14
|
+
end
|
15
|
+
|
16
|
+
def summoner
|
17
|
+
RiotApi::Resource::Summoner.new(@faraday)
|
18
|
+
end
|
19
|
+
|
20
|
+
def default_faraday
|
21
|
+
Faraday.new(:url => @base_url, :ssl => @ssl) do |faraday|
|
22
|
+
faraday.use Faraday::Response::RaiseError if @raise_status_errors
|
23
|
+
faraday.request :url_encoded
|
24
|
+
faraday.response :rashify
|
25
|
+
faraday.response :json
|
26
|
+
faraday.response(:logger) if @debug
|
27
|
+
faraday.adapter @faraday_adapter
|
28
|
+
faraday.params['api_key'] = @api_key
|
29
|
+
faraday.headers['User-Agent'] = "riot_api rubygem v#{RiotApi::VERSION}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/riot_api.rb
ADDED
data/riot_api.gemspec
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'riot_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'riot_api'
|
8
|
+
gem.version = RiotApi::VERSION
|
9
|
+
gem.authors = ['Peter Souter']
|
10
|
+
gem.email = ['p.morsou@gmail.com']
|
11
|
+
gem.description = %q{A Ruby gem for the Riot Games API}
|
12
|
+
gem.summary = %q{This gem wraps the Riot Games API documented at https://developer.riotgames.com/api/}
|
13
|
+
gem.homepage = 'https://github.com/petems/riot_api'
|
14
|
+
gem.license = 'MIT'
|
15
|
+
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ['lib']
|
20
|
+
|
21
|
+
if RUBY_PLATFORM == 'java'
|
22
|
+
gem.add_runtime_dependency 'jruby-openssl'
|
23
|
+
end
|
24
|
+
|
25
|
+
gem.add_dependency 'faraday', '~> 0.8.7'
|
26
|
+
gem.add_dependency 'faraday_middleware', '~> 0.9.0'
|
27
|
+
gem.add_dependency 'json', '~> 1.8.1'
|
28
|
+
gem.add_dependency 'rash', '~> 0.4.0'
|
29
|
+
|
30
|
+
gem.add_development_dependency 'rspec', '~> 2.0'
|
31
|
+
gem.add_development_dependency 'guard', '~> 2.1.0'
|
32
|
+
gem.add_development_dependency 'guard-rspec', '~> 4.0.1'
|
33
|
+
|
34
|
+
if RUBY_PLATFORM =~ /darwin/i
|
35
|
+
gem.add_development_dependency 'rb-fsevent', '~> 0.9.3'
|
36
|
+
end
|
37
|
+
|
38
|
+
gem.add_development_dependency 'vcr', '~> 2.4'
|
39
|
+
gem.add_development_dependency 'fakeweb', '~> 1.3.0'
|
40
|
+
gem.add_development_dependency 'rake', '~> 10.1.0'
|
41
|
+
gem.add_development_dependency 'coveralls', '~> 0.7.0'
|
42
|
+
end
|
data/spec/api_spec.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RiotApi::API, :vcr do
|
4
|
+
subject { ra = RiotApi::API.new :api_key => api_key, :region => 'euw' }
|
5
|
+
let(:api_key) { API_KEY }
|
6
|
+
|
7
|
+
describe '.new' do
|
8
|
+
it 'should return an instance when called with the essential parameters' do
|
9
|
+
client = RiotApi::API.new :api_key => api_key, :region => 'euw'
|
10
|
+
client.should be_instance_of(RiotApi::API)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'ssl settings' do
|
15
|
+
it 'should by default enforce ssl' do
|
16
|
+
subject.default_faraday.ssl.should == { :verify => true }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe '#summoner' do
|
21
|
+
let(:summoner_name) { 'BestLuxEUW' }
|
22
|
+
|
23
|
+
describe '#name' do
|
24
|
+
let(:response) {
|
25
|
+
subject.summoner.name summoner_name
|
26
|
+
}
|
27
|
+
|
28
|
+
it 'should return information from the summoner name' do
|
29
|
+
response.id.should eql(44600324)
|
30
|
+
response.name.should eql("Best Lux EUW")
|
31
|
+
response.profile_icon_id.should eql(7)
|
32
|
+
response.revision_date.should eql(1375116256000)
|
33
|
+
response.revision_date_str.should eql('07/29/2013 04:44 PM UTC')
|
34
|
+
response.summoner_level.should eql(6)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
2
|
+
require 'coveralls'
|
3
|
+
Coveralls.wear!
|
4
|
+
|
5
|
+
require 'rspec/autorun'
|
6
|
+
require 'riot_api'
|
7
|
+
|
8
|
+
if ENV['RECORDING']
|
9
|
+
API_KEY = ENV['RIOT_API_KEY']
|
10
|
+
else
|
11
|
+
API_KEY = 'api_key_YYYYYYYYYYYYYYYYYYYYY'
|
12
|
+
end
|
13
|
+
|
14
|
+
RSpec.configure do |c|
|
15
|
+
# VCR:
|
16
|
+
# so we can use :vcr rather than :vcr => true;
|
17
|
+
# in RSpec 3 this will no longer be necessary.
|
18
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
19
|
+
end
|
20
|
+
|
21
|
+
Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
|
22
|
+
|
data/spec/support/vcr.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'vcr'
|
2
|
+
require 'pp'
|
3
|
+
|
4
|
+
VCR.configure do |c|
|
5
|
+
c.cassette_library_dir = 'spec/vcr/cassettes'
|
6
|
+
c.hook_into :faraday
|
7
|
+
c.configure_rspec_metadata!
|
8
|
+
|
9
|
+
if ENV['RECORDING']
|
10
|
+
c.filter_sensitive_data('api_key_YYYYYYYYYYYYYYYYYYYYY') { ENV['RIOT_API_KEY'] }
|
11
|
+
end
|
12
|
+
|
13
|
+
c.filter_sensitive_data('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') do |http_interaction|
|
14
|
+
#Not sure if this needs removing, but better safe than sorry...
|
15
|
+
http_interaction.response.headers['x-newrelic-app-data'].first
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://prod.api.pvp.net/api/lol/euw/v1.1/summoner/by-name/BestLuxEUW/?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- riot_api rubygem 0.0.1
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
access-control-allow-headers:
|
18
|
+
- Content-Type
|
19
|
+
access-control-allow-methods:
|
20
|
+
- GET, POST, DELETE, PUT
|
21
|
+
access-control-allow-origin:
|
22
|
+
- '*'
|
23
|
+
content-type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
date:
|
26
|
+
- Tue, 10 Dec 2013 23:03:59 GMT
|
27
|
+
server:
|
28
|
+
- Jetty(9.1.0.v20131115)
|
29
|
+
x-newrelic-app-data:
|
30
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
31
|
+
content-length:
|
32
|
+
- '146'
|
33
|
+
x-cache:
|
34
|
+
- MISS from localhost
|
35
|
+
x-cache-lookup:
|
36
|
+
- MISS from localhost:3128
|
37
|
+
via:
|
38
|
+
- 1.1 localhost:3128 (squid/2.7.STABLE9)
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":44600324,"name":"Best Lux EUW","profileIconId":7,"summonerLevel":6,"revisionDate":1375116256000,"revisionDateStr":"07/29/2013
|
44
|
+
04:44 PM UTC"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 10 Dec 2013 23:04:00 GMT
|
47
|
+
recorded_with: VCR 2.6.0
|
metadata
ADDED
@@ -0,0 +1,238 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: riot_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Souter
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.7
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.7
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.9.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.8.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rash
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.4.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.1.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.1.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rb-fsevent
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.9.3
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.9.3
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: vcr
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.4'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.4'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: fakeweb
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.3.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.3.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rake
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 10.1.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 10.1.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: coveralls
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.7.0
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.7.0
|
181
|
+
description: A Ruby gem for the Riot Games API
|
182
|
+
email:
|
183
|
+
- p.morsou@gmail.com
|
184
|
+
executables: []
|
185
|
+
extensions: []
|
186
|
+
extra_rdoc_files: []
|
187
|
+
files:
|
188
|
+
- .gitignore
|
189
|
+
- .rspec
|
190
|
+
- .travis.yml
|
191
|
+
- CHANGELOG.md
|
192
|
+
- Gemfile
|
193
|
+
- Guardfile
|
194
|
+
- LICENSE
|
195
|
+
- README.md
|
196
|
+
- Rakefile
|
197
|
+
- lib/riot_api.rb
|
198
|
+
- lib/riot_api/api.rb
|
199
|
+
- lib/riot_api/resource.rb
|
200
|
+
- lib/riot_api/resource/base.rb
|
201
|
+
- lib/riot_api/resource/summoner.rb
|
202
|
+
- lib/riot_api/version.rb
|
203
|
+
- riot_api.gemspec
|
204
|
+
- spec/api_spec.rb
|
205
|
+
- spec/riot_api_spec.rb
|
206
|
+
- spec/spec_helper.rb
|
207
|
+
- spec/support/vcr.rb
|
208
|
+
- spec/vcr/cassettes/RiotApi_API/_summoner/_name/should_return_information_from_the_summoner_name.yml
|
209
|
+
homepage: https://github.com/petems/riot_api
|
210
|
+
licenses:
|
211
|
+
- MIT
|
212
|
+
metadata: {}
|
213
|
+
post_install_message:
|
214
|
+
rdoc_options: []
|
215
|
+
require_paths:
|
216
|
+
- lib
|
217
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - '>='
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '0'
|
227
|
+
requirements: []
|
228
|
+
rubyforge_project:
|
229
|
+
rubygems_version: 2.1.10
|
230
|
+
signing_key:
|
231
|
+
specification_version: 4
|
232
|
+
summary: This gem wraps the Riot Games API documented at https://developer.riotgames.com/api/
|
233
|
+
test_files:
|
234
|
+
- spec/api_spec.rb
|
235
|
+
- spec/riot_api_spec.rb
|
236
|
+
- spec/spec_helper.rb
|
237
|
+
- spec/support/vcr.rb
|
238
|
+
- spec/vcr/cassettes/RiotApi_API/_summoner/_name/should_return_information_from_the_summoner_name.yml
|