riotapi 0.1.0.pre
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 +7 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +7 -0
- data/.travis.yml +36 -0
- data/Gemfile +4 -0
- data/README.md +39 -0
- data/Rakefile +39 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/riot_api.rb +31 -0
- data/lib/riot_api/client.rb +24 -0
- data/lib/riot_api/configuration.rb +12 -0
- data/lib/riot_api/error_code.rb +18 -0
- data/lib/riot_api/protocols_pb.rb +14 -0
- data/lib/riot_api/status.rb +28 -0
- data/lib/riot_api/status/incident_pb.rb +20 -0
- data/lib/riot_api/status/message_pb.rb +23 -0
- data/lib/riot_api/status/region_pb.rb +22 -0
- data/lib/riot_api/status/service_pb.rb +20 -0
- data/lib/riot_api/status/translation_pb.rb +19 -0
- data/lib/riot_api/utils/parser.rb +17 -0
- data/lib/riot_api/version.rb +3 -0
- data/proto/make_protos.sh +2 -0
- data/proto/riot_api/protocols.proto +8 -0
- data/proto/riot_api/status/incident.proto +12 -0
- data/proto/riot_api/status/message.proto +15 -0
- data/proto/riot_api/status/region.proto +14 -0
- data/proto/riot_api/status/service.proto +12 -0
- data/proto/riot_api/status/translation.proto +10 -0
- data/riotapi.gemspec +33 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0e7b97d9f13f43eb0ea3c7b96a769f28d54f50a5
|
4
|
+
data.tar.gz: e6c574aa5ef519c0c91b8f193b4cca393e67c0ca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f3a6451b7f8bf24268cb93816371aced1af182825054cff703fb7a97b6c383d0d25c96f93bd5b419dc8dd931536b83b1dc818db2788fb8f10cab3291346222ea
|
7
|
+
data.tar.gz: 040d42eb922d76f542dddcab9acab9969610869fa557e838e798c201ab612b8a95c6b0a3a16113786df5e64536a126e2ffe67da236352bf8a996c43c23930b62
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-09-08 17:50:10 -0700 using RuboCop version 0.42.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
data/.travis.yml
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
# Available ruby versions: http://rubies.travis-ci.org/
|
3
|
+
|
4
|
+
language: ruby
|
5
|
+
os:
|
6
|
+
- linux
|
7
|
+
- osx
|
8
|
+
rvm:
|
9
|
+
- "2.0"
|
10
|
+
- "2.1" # latest 2.1.x
|
11
|
+
- "2.2" # latest 2.2.x
|
12
|
+
- "2.3.1" # latest 2.3.x
|
13
|
+
- "ruby-head"
|
14
|
+
script:
|
15
|
+
bundle exec rake test
|
16
|
+
branches:
|
17
|
+
except:
|
18
|
+
- "readme-edits"
|
19
|
+
|
20
|
+
# Travis OS X support is pretty janky. These are some hacks to include tests
|
21
|
+
# only on versions that actually work.
|
22
|
+
# (last tested: 2016-04)
|
23
|
+
matrix:
|
24
|
+
# exclude:
|
25
|
+
# - os: osx
|
26
|
+
# rvm: '2.2'
|
27
|
+
# - os: osx
|
28
|
+
# rvm: '2.3.1' # No 2.3.x at all
|
29
|
+
# include:
|
30
|
+
# - os: osx
|
31
|
+
# rvm: '2.2' # Travis OS X doesn't have 2.2 aliases
|
32
|
+
allow_failures:
|
33
|
+
- rvm: 'ruby-head'
|
34
|
+
fast_finish: true
|
35
|
+
|
36
|
+
sudo: false
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# RiotApi
|
2
|
+
[](https://badge.fury.io/rb/riotapi)
|
3
|
+
[](https://travis-ci.org/andresperezl/riot_api)
|
4
|
+
|
5
|
+
Gem to easily interact with the Riot API
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'riotapi'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install riotapi
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
First set the enviroment variable `RIOT_API_KEY` with the key provided by [Riot](https://developer.riotgames.com), or
|
26
|
+
configure the gem with your key
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
RiotAPI.configure do |config|
|
30
|
+
config.api_key = 'YOU_API_KEY_HERE'
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
You could additionally set the endpoint region with `config.region=` to any of the slugs from `RiotAPI::Region.all`
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/riot_api.
|
39
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require_relative './lib/riot_api/version'
|
3
|
+
|
4
|
+
namespace :ruby do
|
5
|
+
Bundler::GemHelper.install_tasks(name: 'riotapi')
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'rspec/core/rake_task'
|
9
|
+
|
10
|
+
desc 'Run all specs'
|
11
|
+
RSpec::Core::RakeTask.new('spec')
|
12
|
+
|
13
|
+
desc 'Print specdocs'
|
14
|
+
RSpec::Core::RakeTask.new(:doc) do |t|
|
15
|
+
t.rspec_opts = ['--format', 'specdoc', '--dry-run']
|
16
|
+
t.pattern = 'spec/**/*_spec.rb'
|
17
|
+
end
|
18
|
+
|
19
|
+
task :default do
|
20
|
+
sh 'rake -T'
|
21
|
+
end
|
22
|
+
|
23
|
+
def alias_task(alias_task, original)
|
24
|
+
desc "Alias for rake #{original}"
|
25
|
+
task alias_task, Rake.application[original].arg_names => original
|
26
|
+
end
|
27
|
+
alias_task(:test, :spec)
|
28
|
+
|
29
|
+
require 'rdoc/task'
|
30
|
+
|
31
|
+
Rake::RDocTask.new do |t|
|
32
|
+
t.rdoc_dir = 'rdoc'
|
33
|
+
t.title = 'rest-client, fetch RESTful resources effortlessly'
|
34
|
+
t.options << '--line-numbers' << '--inline-source'
|
35
|
+
t.options << '-A cattr_accessor=object'
|
36
|
+
t.options << '--charset' << 'utf-8'
|
37
|
+
t.rdoc_files.include('README.md')
|
38
|
+
t.rdoc_files.include('lib/*.rb')
|
39
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'riot_api'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/riot_api.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'riot_api/client'
|
2
|
+
require 'riot_api/configuration'
|
3
|
+
require 'riot_api/protocols_pb'
|
4
|
+
require 'riot_api/status'
|
5
|
+
require 'riot_api/utils/parser'
|
6
|
+
require 'riot_api/version'
|
7
|
+
|
8
|
+
begin
|
9
|
+
require 'byebug'
|
10
|
+
rescue
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
# This module's static methods are the entry point for using the Riot API client.
|
15
|
+
module RiotAPI
|
16
|
+
class << self
|
17
|
+
attr_writer :configuration
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.configuration
|
21
|
+
@configuration ||= Configuration.new
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.reset
|
25
|
+
@configuration = Configuration.new
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.configure
|
29
|
+
yield(configuration)
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rest-client'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
require 'riot_api'
|
5
|
+
require 'riot_api/configuration'
|
6
|
+
|
7
|
+
module RiotAPI
|
8
|
+
class Client
|
9
|
+
|
10
|
+
attr_accessor :config
|
11
|
+
|
12
|
+
def initialize(config = RiotAPI.configuration)
|
13
|
+
@config = config
|
14
|
+
end
|
15
|
+
|
16
|
+
def api_key
|
17
|
+
config.api_key
|
18
|
+
end
|
19
|
+
|
20
|
+
def regions
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/protocols.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'riot_api/status/region_pb'
|
7
|
+
require 'riot_api/status/service_pb'
|
8
|
+
require 'riot_api/status/message_pb'
|
9
|
+
require 'riot_api/status/translation_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
end
|
12
|
+
|
13
|
+
module RiotAPI
|
14
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'riot_api'
|
2
|
+
|
3
|
+
module RiotAPI
|
4
|
+
module Status
|
5
|
+
SHARDS_URL = "http://status.leagueoflegends.com/shards"
|
6
|
+
|
7
|
+
def self.regions(regions = nil)
|
8
|
+
if regions.nil?
|
9
|
+
JSON.parse(RestClient.get(SHARDS_URL), symbolize_names: true).map{ |r| Region.new(r) }
|
10
|
+
elsif regions.is_a?(Array)
|
11
|
+
regions.map do |region|
|
12
|
+
Region.decode_json RestClient.get("#{SHARDS_URL}/#{region}")
|
13
|
+
end
|
14
|
+
else
|
15
|
+
case regions
|
16
|
+
when "all"
|
17
|
+
JSON.parse(
|
18
|
+
RestClient.get("http://status.leagueoflegends.com/shards"),
|
19
|
+
symbolize_names: true).map.each{ |r| r[:slug] }.map do |slug|
|
20
|
+
Region.decode_json RestClient.get("#{SHARDS_URL}/#{slug}")
|
21
|
+
end
|
22
|
+
else
|
23
|
+
Region.decode_json RestClient.get("#{SHARDS_URL}/#{regions}")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/status/incident.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'riot_api/status/message_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "riotAPI.status.Incident" do
|
9
|
+
optional :active, :bool, 1
|
10
|
+
optional :created_at, :string, 2
|
11
|
+
optional :id, :string, 4
|
12
|
+
repeated :updates, :message, 5, "riotAPI.status.Message"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module RiotAPI
|
17
|
+
module Status
|
18
|
+
Incident = Google::Protobuf::DescriptorPool.generated_pool.lookup("riotAPI.status.Incident").msgclass
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/status/message.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'riot_api/status/translation_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "riotAPI.status.Message" do
|
9
|
+
optional :author, :string, 1
|
10
|
+
optional :content, :string, 2
|
11
|
+
optional :created_at, :string, 3
|
12
|
+
optional :id, :string, 4
|
13
|
+
optional :severity, :string, 5
|
14
|
+
repeated :translations, :message, 6, "riotAPI.status.Translation"
|
15
|
+
optional :updated_at, :string, 7
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
module RiotAPI
|
20
|
+
module Status
|
21
|
+
Message = Google::Protobuf::DescriptorPool.generated_pool.lookup("riotAPI.status.Message").msgclass
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/status/region.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'riot_api/status/service_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "riotAPI.status.Region" do
|
9
|
+
optional :hostname, :string, 1
|
10
|
+
repeated :locales, :string, 2
|
11
|
+
optional :name, :string, 3
|
12
|
+
optional :slug, :string, 4
|
13
|
+
repeated :services, :message, 5, "riotAPI.status.Service"
|
14
|
+
optional :region_tag, :string, 6
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module RiotAPI
|
19
|
+
module Status
|
20
|
+
Region = Google::Protobuf::DescriptorPool.generated_pool.lookup("riotAPI.status.Region").msgclass
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/status/service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'riot_api/status/incident_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "riotAPI.status.Service" do
|
9
|
+
repeated :incidents, :message, 1, "riotAPI.status.Incident"
|
10
|
+
optional :name, :string, 2
|
11
|
+
optional :slug, :string, 3
|
12
|
+
optional :status, :string, 4
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module RiotAPI
|
17
|
+
module Status
|
18
|
+
Service = Google::Protobuf::DescriptorPool.generated_pool.lookup("riotAPI.status.Service").msgclass
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: riot_api/status/translation.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "riotAPI.status.Translation" do
|
8
|
+
optional :content, :string, 1
|
9
|
+
optional :locale, :string, 2
|
10
|
+
optional :updated_at, :string, 3
|
11
|
+
optional :heading, :string, 4
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module RiotAPI
|
16
|
+
module Status
|
17
|
+
Translation = Google::Protobuf::DescriptorPool.generated_pool.lookup("riotAPI.status.Translation").msgclass
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module RiotAPI
|
3
|
+
module Parser
|
4
|
+
def self.parse(data, &block)
|
5
|
+
if data.is_a? String
|
6
|
+
data = JSON.parse(data, object_class: OpenStruct)
|
7
|
+
elsif data.is_a? Hash
|
8
|
+
data = OpenStruct.new(data)
|
9
|
+
else
|
10
|
+
raise ArgumentError, 'Can only parse Hash and String in JSON format'
|
11
|
+
end
|
12
|
+
|
13
|
+
block.call(data)
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package riotAPI.status;
|
4
|
+
|
5
|
+
import "riot_api/status/translation.proto";
|
6
|
+
|
7
|
+
message Message{
|
8
|
+
string author = 1;
|
9
|
+
string content = 2;
|
10
|
+
string created_at= 3;
|
11
|
+
string id = 4;
|
12
|
+
string severity = 5;
|
13
|
+
repeated riotAPI.status.Translation translations = 6;
|
14
|
+
string updated_at = 7;
|
15
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package riotAPI.status;
|
4
|
+
|
5
|
+
import "riot_api/status/service.proto";
|
6
|
+
|
7
|
+
message Region{
|
8
|
+
string hostname = 1;
|
9
|
+
repeated string locales = 2;
|
10
|
+
string name = 3;
|
11
|
+
string slug = 4;
|
12
|
+
repeated riotAPI.status.Service services = 5;
|
13
|
+
string region_tag = 6;
|
14
|
+
}
|
data/riotapi.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: 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 |spec|
|
7
|
+
spec.name = 'riotapi'
|
8
|
+
spec.version = RiotAPI::VERSION
|
9
|
+
spec.authors = ['Andres Perez']
|
10
|
+
spec.email = ['andres.a.perezleon@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Gem to interacts with Riot Games API.'
|
13
|
+
spec.homepage = 'https://github.com/andresperezl/riot_api'
|
14
|
+
|
15
|
+
spec.license = 'GPL-3.0'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
|
21
|
+
spec.required_ruby_version = '>= 2.0.0'
|
22
|
+
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
28
|
+
spec.add_development_dependency 'rubocop', '~> 0.42'
|
29
|
+
spec.add_development_dependency 'byebug', '~> 9.0'
|
30
|
+
|
31
|
+
spec.add_runtime_dependency 'rest-client', '~> 2.0'
|
32
|
+
spec.add_runtime_dependency 'google-protobuf', "~> 3.0"
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: riotapi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.pre
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andres Perez
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.42'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.42'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '9.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '9.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rest-client
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :runtime
|
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: google-protobuf
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- andres.a.perezleon@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".idea/vcs.xml"
|
106
|
+
- ".rubocop.yml"
|
107
|
+
- ".rubocop_todo.yml"
|
108
|
+
- ".travis.yml"
|
109
|
+
- Gemfile
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- lib/riot_api.rb
|
115
|
+
- lib/riot_api/client.rb
|
116
|
+
- lib/riot_api/configuration.rb
|
117
|
+
- lib/riot_api/error_code.rb
|
118
|
+
- lib/riot_api/protocols_pb.rb
|
119
|
+
- lib/riot_api/status.rb
|
120
|
+
- lib/riot_api/status/incident_pb.rb
|
121
|
+
- lib/riot_api/status/message_pb.rb
|
122
|
+
- lib/riot_api/status/region_pb.rb
|
123
|
+
- lib/riot_api/status/service_pb.rb
|
124
|
+
- lib/riot_api/status/translation_pb.rb
|
125
|
+
- lib/riot_api/utils/parser.rb
|
126
|
+
- lib/riot_api/version.rb
|
127
|
+
- proto/make_protos.sh
|
128
|
+
- proto/riot_api/protocols.proto
|
129
|
+
- proto/riot_api/status/incident.proto
|
130
|
+
- proto/riot_api/status/message.proto
|
131
|
+
- proto/riot_api/status/region.proto
|
132
|
+
- proto/riot_api/status/service.proto
|
133
|
+
- proto/riot_api/status/translation.proto
|
134
|
+
- riotapi.gemspec
|
135
|
+
homepage: https://github.com/andresperezl/riot_api
|
136
|
+
licenses:
|
137
|
+
- GPL-3.0
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: 2.0.0
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.3.1
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.5.1
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: Gem to interacts with Riot Games API.
|
159
|
+
test_files: []
|