Commit b3a45742 authored by Francis's avatar Francis
Browse files

Merge branch 'DockerCI' into 'master'

Update README and change CI config

See merge request !11
parents 45a7f99a 9dbee909
Pipeline #79052415 passed with stage
in 5 minutes and 20 seconds
cache:
paths:
- .env
image: ruby:2.6
stages:
- prepare
- codecheck
- test
environment-setup:
stage: prepare
test:
stage: test
script:
- gem install bundler -v 1.17.3
- rvm use 2.5.3 --install
- bundle install
- cat /dev/null > .env
- echo "BNET_APPLICATION_ID=$BNET_APP_ID" >> .env
- echo "BNET_APPLICATION_SECRET=$BNET_APP_SECRET" >> .env
- echo "USE_CACHE=$USE_CACHE" >> .env
rubocop:
stage: codecheck
script:
- rubocop
minitest:
stage: test
script:
- rake
\ No newline at end of file
Please view this file on the master branch, otherwise it may be outdated
**Version 0.2.7**
* Changed CI process to use docker ruby images.
**Version 0.2.6**
* Added namespace `static-classic` for wow classic support.
* Some WoW endpoints now support the `classic: true` option.
......
PATH
remote: .
specs:
blizzard_api (0.2.6)
blizzard_api (0.2.7)
redis (~> 4.1, >= 4.1.0)
GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
dotenv (2.7.4)
jaro_winkler (1.5.3)
minitest (5.11.3)
parallel (1.17.0)
......@@ -17,7 +16,7 @@ GEM
rainbow (3.0.0)
rake (10.5.0)
redis (4.1.2)
rubocop (0.72.0)
rubocop (0.74.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.6)
......@@ -32,8 +31,6 @@ PLATFORMS
DEPENDENCIES
blizzard_api!
bundler (~> 1.17.3)
dotenv (~> 2.5)
minitest (~> 5.0)
rake (~> 10.0)
rubocop (~> 0.61)
......
......@@ -81,6 +81,10 @@ Most **data** endpoints will have always 3 methods available `index`, `get` and
* **ignore_cache**: true - Ignores the cache and forces an api request (Only works if you have redis enabled)
* **locale**: < locale id > - Changes the default locale (if any)
**World of Warcraft** supports two additional options:
* **use_community_endpoint**: Some methods in game data still have an odl community version available.
* **classic**: Set to true to query WoW Classic data, only works for some game data endpoints.
### 4.1. World of Warcraft endpoints
* Blizzard::Wow::Achievement
......
......@@ -34,8 +34,6 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'redis', '~> 4.1', '>= 4.1.0'
spec.add_development_dependency 'bundler', '~> 1.17.3'
spec.add_development_dependency 'dotenv', '~> 2.5'
spec.add_development_dependency 'minitest', '~> 5.0'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rubocop', '~> 0.61'
......
......@@ -2,5 +2,5 @@
module BlizzardApi
# Gem version
VERSION = '0.2.6'
VERSION = '0.2.7'
end
......@@ -2,7 +2,6 @@
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'minitest/autorun'
require 'dotenv/load'
require 'blizzard_api'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment