discorb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae7ec3df7c6da178e1ce924879cbda686fa17b1a3ad3858419ef2bf6f4bc9ada
4
- data.tar.gz: f23eb8f8bc6acceacb33b555f38283297ff04140051c273a2ee26cf4c0fc50d4
3
+ metadata.gz: 0a32a002d33210039aacb1a4802bb42be46e0fb7f9c6319d264084f8f1d0c1be
4
+ data.tar.gz: 71b155ead20f62222ee16476b3cb67158e99552a9ca03217d9490635b872a0d1
5
5
  SHA512:
6
- metadata.gz: f43d25457a75adadc96f6d3d3304ea38956006888a03ef1159f6b1ce2e956167e283e540cf1e64dcb43c40774b6a8fcc63b0b1f76b2d2da1ebf574a16869153c
7
- data.tar.gz: a6726842c6049171b02113947d430e96364021fbdcc5057d97feecb1d2a3f7866540c8327c2ad82e425a82cb8539ed7e2aa0a54ac4c1013593d2196630761fbb
6
+ metadata.gz: 6ee838569580649c919d85870323f3012a262ab6c3b44898a1210eb1a2d01b9535e04145e41ebd68a7c3c80bfa3c4ad1271faa583ace11523b5d9de1f0b82300
7
+ data.tar.gz: 85456ebe7cf6d02850791c69898dbfb868a19291b0abb7a6a86a8786221ac64af0d403021cf096c06e4cf4a94b60c4e7063e2503209c81cc549af5da9427ed6c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- discorb (0.0.1)
4
+ discorb (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -25,7 +25,6 @@ GEM
25
25
  async-http (~> 0.54)
26
26
  async-io (~> 1.23)
27
27
  protocol-websocket (~> 0.7.0)
28
- colorize (0.8.1)
29
28
  console (1.13.1)
30
29
  fiber-local
31
30
  fiber-local (1.0.0)
@@ -45,7 +44,6 @@ GEM
45
44
  protocol-http1 (~> 0.2)
46
45
  rake (13.0.6)
47
46
  redcarpet (3.5.1)
48
- ricecream (0.2.0)
49
47
  rufo (0.13.0)
50
48
  timers (4.3.3)
51
49
  yard (0.9.26)
@@ -57,12 +55,10 @@ DEPENDENCIES
57
55
  async
58
56
  async-http
59
57
  async-websocket
60
- colorize (~> 0.8.1)
61
58
  discorb!
62
59
  mime-types (~> 3.3)
63
60
  rake (~> 13.0)
64
61
  redcarpet
65
- ricecream (~> 0.2.0)
66
62
  rufo (~> 0.13.0)
67
63
  yard (~> 0.9.26)
68
64
 
data/discorb.gemspec CHANGED
@@ -9,7 +9,6 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["sevenc-nanashi@sevenbot.jp"]
10
10
 
11
11
  spec.summary = "discorb is a Discord API wrapper for Ruby."
12
- spec.description = File.read(File.join(__dir__, "README.md"))
13
12
  spec.homepage = "https://github.com/sevenc-nanashi/discorb"
14
13
  spec.license = "MIT"
15
14
  spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
@@ -1,8 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Discorb
4
+ # @return [String] The API base URL.
4
5
  API_BASE_URL = "https://discord.com/api/v9"
5
- VERSION = "0.0.1"
6
+ # @return [String] The version of discorb.
7
+ VERSION = "0.0.2"
8
+ # @return [String] The user agent for the bot.
6
9
  USER_AGENT = "DiscordBot (https://github.com/discorb-lib/discorb #{VERSION}) Ruby/#{RUBY_VERSION}"
7
10
 
8
11
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sevenc-nanashi
@@ -10,16 +10,7 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-08-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "# discorb\n[![rubydoc](https://img.shields.io/badge/Document-rubydoc.info-blue.svg)](https://rubydoc.info/gems/discorb)\n[![Gem](https://img.shields.io/gem/dt/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb)\n[![Gem](https://img.shields.io/gem/v/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb)
14
- \ \n\ndiscorb is a Discord API wrapper for Ruby.\n\n## Installation\n\nAdd this
15
- line to your application's Gemfile:\n\n```ruby\ngem 'discorb'\n```\n\nAnd then execute:\n\n
16
- \ $ bundle install\n\nOr install it yourself as:\n\n $ gem install discorb\n\n##
17
- Usage\n\n### Simple ping-pong\n\n```ruby\nrequire \"discorb\"\n\nclient = Discorb::Client.new\n\nclient.once
18
- :ready do\n puts \"Logged in as #{client.user}\"\nend\n\nclient.on :message do
19
- |_task, message|\n next if message.author.bot?\n next unless message.content ==
20
- \"ping\"\n\n message.channel.post(\"Pong!\")\nend\n\nclient.run(ENV[\"DISCORD_BOT_TOKEN\"])\n```\n\n##
21
- Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/sevenc-nanashi/discorb.\n\n##
22
- License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n"
13
+ description:
23
14
  email:
24
15
  - sevenc-nanashi@sevenbot.jp
25
16
  executables: []