Skip to content

Commit ff8efc0

Browse files
committedNov 26, 2024··
RuboCop.
1 parent 6ad0f83 commit ff8efc0

File tree

9 files changed

+22
-29
lines changed

9 files changed

+22
-29
lines changed
 

‎examples/ruby/gems.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source "https://rubygems.org"
24

35
gem "async-discord", path: "../.."

‎examples/ruby/server.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

3-
require 'async/discord/client'
4-
require 'async/ollama'
4+
require "async/discord/client"
5+
require "async/ollama"
56

67
TOKEN = ENV["DISCORD_BOT_TOKEN"]
78
MODEL = ENV.fetch("OLLAMA_MODEL", "llama3.1")

‎fixtures/async/discord/client_context.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "async/discord/client"
24
require "sus/fixtures/async/reactor_context"
35

‎lib/async/discord/channels.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative "representation"
24

35
module Async

‎lib/async/discord/client.rb

+4-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
1-
# frozen_string_literals: true
2-
#
3-
# Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
4-
#
5-
# Permission is hereby granted, free of charge, to any person obtaining a copy
6-
# of this software and associated documentation files (the "Software"), to deal
7-
# in the Software without restriction, including without limitation the rights
8-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
# copies of the Software, and to permit persons to whom the Software is
10-
# furnished to do so, subject to the following conditions:
11-
#
12-
# The above copyright notice and this permission notice shall be included in
13-
# all copies or substantial portions of the Software.
14-
#
15-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
# THE SOFTWARE.
1+
# frozen_string_literal: true
222

23-
require_relative 'representation'
3+
require_relative "representation"
244

25-
require_relative 'guilds'
26-
require_relative 'gateway'
5+
require_relative "guilds"
6+
require_relative "gateway"
277

288
module Async
299
module Discord

‎lib/async/discord/gateway.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative "representation"
24

35
require "async/websocket"

‎lib/async/discord/guilds.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative "representation"
24
require_relative "channels"
35

‎lib/async/discord/representation.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# frozen_string_literals: true
1+
# frozen_string_literal: true
22
#
33
# Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
44
#
@@ -20,8 +20,8 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23-
require 'async/rest/representation'
24-
require 'async/rest/wrapper/form'
23+
require "async/rest/representation"
24+
require "async/rest/wrapper/form"
2525

2626
module Async
2727
module Discord

‎test/async/discord/client.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "async/discord/client_context"
24

35
describe Async::Discord::Client do

0 commit comments

Comments
 (0)
Please sign in to comment.