brawlstars 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -3
- data/lib/brawlstars.rb +1 -1
- data/lib/brawlstars/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e4fd68424b45a68ba0da13d7caca942493243e9294007e8798a49bdc99ee42
|
4
|
+
data.tar.gz: 4ac55e57b65c62457706971271e6c34370ae8ffc5a639206c5b3c49a04ba7d39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428ab691b168139440339aa582b3a410f400c0f98cb7e89d17fb682598da6f00bc53ba792511872ad1b53be92a58f37d7a6edbb7704591dbb76b5fb47eeb6eb0
|
7
|
+
data.tar.gz: 07e1210cebb2cacb5a8dbd6f6bd441f35954fbf26ba1f0e5d9b667124d22e2f7a3dd3ec753b01385ab0d2aee43d6e9b99aaa91753b709e752117b95fa971f26a
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# Changelog
|
2
|
+
## [1.3.1]
|
3
|
+
### Changed
|
4
|
+
- Base url of api (api.brawlapi.cf -> api.starlist.pro)
|
5
|
+
|
2
6
|
## [1.3.0]
|
3
7
|
### Added
|
4
8
|
- `Player` class
|
@@ -32,6 +36,7 @@
|
|
32
36
|
## [1.0.0]
|
33
37
|
Initial version
|
34
38
|
|
39
|
+
[1.3.1]: https://github.com/Karthik99999/brawlstarsrb/tree/v1.3.1
|
35
40
|
[1.3.0]: https://github.com/Karthik99999/brawlstarsrb/tree/v1.3.0
|
36
41
|
[1.2.1]: https://github.com/Karthik99999/brawlstarsrb/tree/v1.2.1
|
37
42
|
[1.2.0]: https://github.com/Karthik99999/brawlstarsrb/tree/v1.2.0
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# brawlstarsrb
|
2
2
|
[![Gem Version](https://img.shields.io/gem/v/brawlstars.svg?color=red&label=brawlstars&logo=rubygems&style=flat-square)](https://rubygems.org/gems/brawlstars)
|
3
3
|
[![License](https://img.shields.io/github/license/Karthik99999/brawlstarsrb.svg?style=flat-square)](../master/LICENSE)
|
4
|
-
[![Discord Server Invite](https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat-square)](https://discord.
|
4
|
+
[![Discord Server Invite](https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat-square)](https://discord.gg/vbbHXNf)
|
5
5
|
|
6
|
-
brawlstarsrb is a Ruby implementation of [BrawlAPI](https://docs.
|
6
|
+
brawlstarsrb is a Ruby implementation of [BrawlAPI](https://api-docs.starlist.pro/), the unofficial Brawl Stars API.
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -27,12 +27,17 @@ Example usage:
|
|
27
27
|
```ruby
|
28
28
|
require 'brawlstars'
|
29
29
|
|
30
|
-
client = Brawlstars::Client.new(token: "token") #
|
30
|
+
client = Brawlstars::Client.new(token: "token") # check below to get token
|
31
31
|
player = client.getPlayer("LQL")
|
32
32
|
puts player["name"]
|
33
33
|
```
|
34
34
|
More documentation can be found at [rubydoc](https://www.rubydoc.info/github/Karthik99999/brawlstarsrb)
|
35
35
|
|
36
|
+
## Getting API Token
|
37
|
+
|
38
|
+
1. Join the [Discord server](https://discord.gg/vbbHXNf)
|
39
|
+
2. Go to the [dashboard](https://api.starlist.pro/dashboard) and generate a token
|
40
|
+
|
36
41
|
## Development
|
37
42
|
|
38
43
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/brawlstars.rb
CHANGED
@@ -160,7 +160,7 @@ module Brawlstars
|
|
160
160
|
# @return [Hash] the response returned by the endpoint.
|
161
161
|
|
162
162
|
def get(ep)
|
163
|
-
url = "https://api.
|
163
|
+
url = "https://api.starlist.pro/v1#{ep}"
|
164
164
|
begin
|
165
165
|
res = HTTParty.get(url, {headers: {"Authorization" => @token}})
|
166
166
|
rescue HTTParty::Error => e
|
data/lib/brawlstars/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brawlstars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karthik99999
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -95,7 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.7.6
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: BrawlAPI for Ruby
|