disrb 0.1.2 → 0.1.2.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -14
  3. data/lib/disrb.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a71630cce586da07c2c33b6a782b08021b519c47c81e291589f80812203dacfd
4
- data.tar.gz: ca079c9aa02046d884534807fd22262dea26638c3981da7100868a212b69b211
3
+ metadata.gz: 281bc6ea24c6df412e563a2b8961264240e058cbf895433c216964957beff5ae
4
+ data.tar.gz: 14d5149c99039845ee85e75c57f65cd9acc31242ed5c67600eb799b36e99c1cb
5
5
  SHA512:
6
- metadata.gz: 6dadbc64d9568ca3a67735e71bab510c91d42745fea7cfeb4269030ed87b5ad4020dea8614d43df6a168213972a10946465e175b43c33fd37b1e508ac273e919
7
- data.tar.gz: 003a2895459efead777585cb1beee52a3f082b3519cfa182df4d2766c3b1087e5364b93c6622283a9f5708e0f2e8008fdc16605c3eb89ed40df30e211e6eeffc
6
+ metadata.gz: d2ffcb0bd4ec5ae0be535b21f005587427106a8840d07cbbb518b1047919ccb5149d74d0b464bfb878d44bba1e648920ef00ca3018bcdf7be4206f68c2160322
7
+ data.tar.gz: 798506bfcd44025ee9be06976d6b3b4fad6d932207a4c0dc1e98c0ee80cb3e4f7fa8a4760170c1c6438cdb8825b87d11085c9985d1b3a70dca99d4b8b72e6a14
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # discord.rb indev
2
2
 
3
- [Changelog](CHANGELOG.md) | [Licensed under the MIT License](LICENSE)
3
+ [![Licensed under the MIT license](https://img.shields.io/github/license/hoovad/discord.rb)](LICENSE)
4
+ [![Gem Version](https://img.shields.io/gem/v/disrb?logo=ruby&color=green)](https://rubygems.org/gems/disrb)
5
+ ![project status: active](https://img.shields.io/badge/project_status-active-active)
6
+ [![main](https://github.com/hoovad/discord.rb/actions/workflows/main.yml/badge.svg)](https://github.com/hoovad/discord.rb/actions/workflows/main.yml)
4
7
 
5
- [![main](https://github.com/hoovad/discord.rb/actions/workflows/main.yml/badge.svg)](https://github.com/hoovad/discord.rb/actions/workflows/main.yml) [![Gem Version](https://badge.fury.io/rb/disrb.svg?icon=si%3Arubygems)](https://badge.fury.io/rb/disrb)
8
+ [Changelog](CHANGELOG.md) | [Documentation](https://www.rubydoc.info/gems/disrb/) (currently in development)
6
9
 
7
10
  W.I.P. Discord API wrapper written in Ruby for fun.
8
11
 
@@ -20,17 +23,17 @@ The test.rb file creates two commands "test" and "test2", that return "Hi" and "
20
23
  - [x] Basic gateway support
21
24
  - [x] RubyGem building and publishing
22
25
  - [ ] Alpha release (v0.2.0)
23
- - [ ] Add support for all Discord API endpoints
24
- - [ ] Add support for all Discord Gateway events and properly handle the connection
25
- - [ ] Documentation (v0.1.3)
26
- - [x] Transition to Faraday for HTTP requests (v0.1.1)
27
- - [x] Functions where all options are optional, check if atleast one is provided (v0.1.1.1)
28
- - [x] Prefer to use keyword arguments over positional arguments if there are more than 1 optional arguments (v0.1.1.1)
26
+ - [ ] Add support for all Discord API endpoints
27
+ - [ ] Add support for all Discord Gateway events and properly handle the connection
28
+ - [ ] Documentation (v0.1.3)
29
+ - [x] Transition to Faraday for HTTP requests (v0.1.1)
30
+ - [x] Functions where all options are optional, check if atleast one is provided (v0.1.1.1)
31
+ - [x] Prefer to use keyword arguments over positional arguments if there are more than 1 optional arguments (v0.1.1.1)
29
32
  - [ ] Beta release (v0.3.0)
30
- - [ ] Component support and builder
31
- - [ ] Sharding support
32
- - [ ] Rate limit handling
33
- - [ ] Voice support
34
- - [ ] Add parameter validation
33
+ - [ ] Component support and builder
34
+ - [ ] Sharding support
35
+ - [ ] Rate limit handling
36
+ - [ ] Voice support
37
+ - [ ] Add parameter validation
35
38
  - [ ] Stable release (v1.0.0)
36
- - [ ] Bugfixes, consistency and improvements
39
+ - [ ] Bugfixes, consistency and improvements
data/lib/disrb.rb CHANGED
@@ -429,7 +429,7 @@ class DiscordApi
429
429
  url = if rescue_connection.nil?
430
430
  response = DiscordApi.get("#{@base_url}/gateway")
431
431
  if response.status == 200
432
- "#{JSON.parse(response)['url']}/?v=#{@api_version}&encoding=json"
432
+ "#{JSON.parse(response.body)['url']}/?v=#{@api_version}&encoding=json"
433
433
  else
434
434
  @logger.fatal_error("Failed to get gateway URL. Response: #{response.body}")
435
435
  exit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - hoovad