lib_discord 1.0.0 → 1.0.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: c1a0beb8d0144d659fc3dbfc1f33edb87d7fdfc771e36980b42e43c78ed4de32
4
- data.tar.gz: fefe8a73bf5e0dac39f00fa071f4dfb6e68b465cdf4c51d009483de458b646b3
3
+ metadata.gz: 6c677b5a4584d13d77314c8c92f7edbeef2a1d95d09e0aa5e3b575d94a0c05c1
4
+ data.tar.gz: aec4498155ca2ee500e209d4110f3ee3082b86340f079e9e9ec9db606bb72c85
5
5
  SHA512:
6
- metadata.gz: a0a767f10119c2a8b0904fc9ae4e1323ac336de28f5d7b2cfb37adc01bf5770f860152fcfd24677ed476a9d4e1dec77a17978a7bd62f7196d95b0e752fc30e5f
7
- data.tar.gz: 94ef92b3286e644d5e5f810968fe1c2a31a8c1a9c6dd99e24edcdacd1928c5ca519134fd231a2dda337a285966a284d63b3149e4fbf89a71d456ba4588c39c43
6
+ metadata.gz: 12e1ce987f5151afc5361a23be89fa56fb53f83409cab4fd2d1b39635eedecc573c89b41351caf13a477c22375d32b38f36d99f29d15f3ade3b7363641801997
7
+ data.tar.gz: 1d7ced417a81d559a71f14ba8295e025a760b449e5810fb352063dfcc8ed3df7690eecd29349ab3c62cbc24c8a3d28933825b5eec0838406362bcb4f99f09619
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [mailing lists]: https://sr.ht/~komidore64/lib_discord/lists
6
6
  [bug tracker]: https://todo.sr.ht/~komidore64/lib_discord
7
7
 
8
- Straightforward Ruby-bindings to interact with Discord's Web API.
8
+ Straightforward Ruby-bindings for Discord's Web API
9
9
 
10
10
  [project] -- [sources] -- [mailing lists] -- [bug tracker]
11
11
 
@@ -18,14 +18,13 @@ Straightforward Ruby-bindings to interact with Discord's Web API.
18
18
  `lib_discord` requires an installed [Ruby runtime](https://www.ruby-lang.org/)
19
19
  `>= 3.3`.
20
20
 
21
- Install the gem and add it to your application's Gemfile by executing:
21
+ Install the gem and add it to your application's Gemfile:
22
22
 
23
23
  ```sh
24
24
  bundle add lib_discord
25
25
  ```
26
26
 
27
- If bundler is not being used to manage dependencies, install the gem by
28
- executing:
27
+ If bundler is not being used to manage dependencies, install the gem with:
29
28
 
30
29
  ```sh
31
30
  gem install lib_discord
@@ -71,7 +70,7 @@ fmt = LibDiscord.formatter
71
70
  fmt.user(12345678) # => "<@12345678>"
72
71
  ```
73
72
 
74
- See [documentation](https://rubydoc.info/gems/lib_discord) for more details.
73
+ See [documentation](https://rdoc.info/gems/lib_discord) for more details.
75
74
 
76
75
  ## Getting help
77
76
 
@@ -8,11 +8,13 @@ require "lib_discord/version"
8
8
 
9
9
  module LibDiscord
10
10
  ##
11
+ # @!method self.client(auth = nil, user_agent: "LibDiscord (#{LibDiscord::PROJECT_URL}, #{LibDiscord.version})", logger: nil)
12
+ #
11
13
  # @param (see Client#initialize)
12
14
  # @return [Client]
13
15
  #
14
16
  # @see Client#initialize
15
- def self.client(*) = Client.new(*)
17
+ def self.client(*, **) = Client.new(*, **)
16
18
 
17
19
  ##
18
20
  # You will mainly be interacting with instances of this class when using
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibDiscord
4
- # @api private
5
4
  MAPS = {
6
5
  Application: {
7
6
  # https://discord.com/developers/docs/resources/application#application-object-application-event-webhook-status
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibDiscord
4
- # @api private
5
4
  PERMISSIONS = {
6
5
  CREATE_INSTANT_INVITE: 1 << 0,
7
6
  KICK_MEMBERS: 1 << 1,
@@ -60,7 +59,7 @@ module LibDiscord
60
59
  # numbers in your code when making requests to Discord and parsing Discord
61
60
  # responses.
62
61
  #
63
- # @return [Hash{Symbol => Integer}]
62
+ # @return [Hash]
64
63
  #
65
64
  # @example
66
65
  # p = LibDiscord.permissions
@@ -1,18 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibDiscord
4
+ # @api private
5
+ BUG_TRACKER_URL = "https://todo.sr.ht/~komidore64/lib_discord"
6
+
4
7
  # @api private
5
8
  DISCORD_BASE_URL = "https://discord.com"
6
9
 
7
10
  # @api private
8
- PROJECT_URL = "https://sr.ht/~komidore64/lib_discord"
11
+ DOCUMENTATION_URL = "https://rdoc.info/gems/lib_discord"
9
12
 
10
13
  # @api private
11
- SOURCE_URL = "https://git.sr.ht/~komidore64/lib_discord"
14
+ MAILING_LIST_URL = "https://sr.ht/~komidore64/lib_discord/lists"
12
15
 
13
16
  # @api private
14
- BUG_TRACKER_URL = "https://todo.sr.ht/~komidore64/lib_discord"
17
+ PROJECT_URL = "https://sr.ht/~komidore64/lib_discord"
15
18
 
16
19
  # @api private
17
- MAILING_LIST_URL = "https://sr.ht/~komidore64/lib_discord/lists"
20
+ SOURCE_URL = "https://git.sr.ht/~komidore64/lib_discord"
18
21
  end
@@ -3,6 +3,6 @@
3
3
  module LibDiscord
4
4
  # @api private
5
5
  def self.version
6
- @version ||= Gem::Version.new("1.0.0")
6
+ @version ||= Gem::Version.new("1.0.1")
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lib_discord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-05 00:00:00.000000000 Z
10
+ date: 2025-06-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logger
@@ -43,10 +43,11 @@ files:
43
43
  licenses:
44
44
  - AGPL-3.0-only
45
45
  metadata:
46
- rubygems_mfa_required: 'true'
47
46
  bug_tracker_uri: https://todo.sr.ht/~komidore64/lib_discord
47
+ documentation_uri: https://rdoc.info/gems/lib_discord
48
48
  homepage_uri: https://sr.ht/~komidore64/lib_discord
49
49
  mailing_list_uri: https://sr.ht/~komidore64/lib_discord/lists
50
+ rubygems_mfa_required: 'true'
50
51
  source_code_uri: https://git.sr.ht/~komidore64/lib_discord
51
52
  rdoc_options: []
52
53
  require_paths:
@@ -64,5 +65,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
65
  requirements: []
65
66
  rubygems_version: 3.6.2
66
67
  specification_version: 4
67
- summary: Straightforward Discord Web API bindings
68
+ summary: Straightforward Ruby-bindings for Discord's Web API
68
69
  test_files: []