brawlstars 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e014fba4cb97cf0e7469fdd6e38e510060b8dbdc9bf5d13060b46d348f1c7f45
4
- data.tar.gz: dc5157bbcfed8868af7d81dfac164902381bee9cfbdacf84d8959080bdbafb37
3
+ metadata.gz: 50e4fd68424b45a68ba0da13d7caca942493243e9294007e8798a49bdc99ee42
4
+ data.tar.gz: 4ac55e57b65c62457706971271e6c34370ae8ffc5a639206c5b3c49a04ba7d39
5
5
  SHA512:
6
- metadata.gz: 07b7169bdeba67241bb5ba75408e1254b28a0376f95e39f1c98057291f8013b0609607e10755b7d90143907d187d597ec0cc694db704e778d0aff4a97740f5a3
7
- data.tar.gz: d25fc5a83c01fc732a1de31bfd809b7754dc8a6f7dea563f1fce7303db5abbe03e820701ca9071a52d23cea3b912ed4e39b82b135d0c1b5dc9f96962de99ff45
6
+ metadata.gz: 428ab691b168139440339aa582b3a410f400c0f98cb7e89d17fb682598da6f00bc53ba792511872ad1b53be92a58f37d7a6edbb7704591dbb76b5fb47eeb6eb0
7
+ data.tar.gz: 07e1210cebb2cacb5a8dbd6f6bd441f35954fbf26ba1f0e5d9b667124d22e2f7a3dd3ec753b01385ab0d2aee43d6e9b99aaa91753b709e752117b95fa971f26a
@@ -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.me/brawlapi)
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.brawlapi.cf), the unofficial Brawl Stars API.
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") # get this from discord.me/BrawlAPI
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.
@@ -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.brawlapi.cf/v1#{ep}"
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
@@ -1,3 +1,3 @@
1
1
  module Brawlstars
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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-07-10 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
98
+ rubyforge_project:
99
+ rubygems_version: 2.7.6
99
100
  signing_key:
100
101
  specification_version: 4
101
102
  summary: BrawlAPI for Ruby