Skip to content

Commit eeda3e7

Browse files
committed
Apply RuboCop rules.
1 parent e505092 commit eeda3e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+342
-340
lines changed

bake.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
#
88
# @parameter version [String] The new version number.
99
def after_gem_release_version_increment(version)
10-
context['releases:update'].call(version)
11-
context['utopia:project:readme:update'].call
10+
context["releases:update"].call(version)
11+
context["utopia:project:readme:update"].call
1212
end

bake/falcon/supervisor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copyright, 2020-2023, by Samuel Williams.
55

66
def restart
7-
require_relative '../../lib/falcon/command/supervisor'
7+
require_relative "../../lib/falcon/command/supervisor"
88

99
Falcon::Command::Supervisor["restart"].call
1010
end

bin/falcon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
# THE SOFTWARE.
2323

24-
require_relative '../lib/falcon/command'
24+
require_relative "../lib/falcon/command"
2525

2626
begin
2727
Falcon::Command.call

bin/falcon-host

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
# THE SOFTWARE.
2323

24-
require_relative '../lib/falcon/command/host'
24+
require_relative "../lib/falcon/command/host"
2525

2626
begin
2727
Falcon::Command::Host.call

config/sus.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Released under the MIT License.
44
# Copyright, 2017-2024, by Samuel Williams.
55

6-
require 'covered/sus'
6+
require "covered/sus"
77
include Covered::Sus
88

9-
require 'openssl'
9+
require "openssl"
1010
$stderr.puts "OpenSSL::OPENSSL_LIBRARY_VERSION: #{OpenSSL::OPENSSL_LIBRARY_VERSION}"

examples/async-service/hello.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Released under the MIT License.
55
# Copyright, 2019-2024, by Samuel Williams.
66

7-
require 'falcon/environment/server'
7+
require "falcon/environment/server"
88

99
service "hello-server" do
1010
include Falcon::Environment::Server

examples/beer/config.ru

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env falcon --verbose serve -c
22
# frozen_string_literal: true
33

4-
require 'rack'
5-
require 'cgi'
4+
require "rack"
5+
require "cgi"
66

77
def bottles(n)
88
n == 1 ? "#{n} bottle" : "#{n} bottles"
@@ -19,7 +19,7 @@ run lambda {|env|
1919
body = Async::HTTP::Body::Writable.new
2020

2121
request = Rack::Request.new(env)
22-
count = (request.params['count'] || 99).to_i
22+
count = (request.params["count"] || 99).to_i
2323

2424
body.write("<!DOCTYPE html><html><head><title>#{count} Bottles of Beer</title></head><body>")
2525

@@ -53,5 +53,5 @@ run lambda {|env|
5353
end
5454
end
5555

56-
[200, {'content-type' => 'text/html; charset=utf-8'}, body]
56+
[200, {"content-type" => "text/html; charset=utf-8"}, body]
5757
}

examples/beer/falcon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
load :rack, :self_signed_tls, :supervisor
88

9-
rack 'beer.localhost', :self_signed_tls
9+
rack "beer.localhost", :self_signed_tls
1010

1111
supervisor

examples/benchmark/bake.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# Released under the MIT License.
44
# Copyright, 2018-2024, by Samuel Williams.
55

6-
require 'etc'
6+
require "etc"
77

8-
require 'async'
9-
require 'async/process'
10-
require 'async/clock'
11-
require 'async/http/endpoint'
8+
require "async"
9+
require "async/process"
10+
require "async/clock"
11+
require "async/http/endpoint"
1212

1313
def hello
1414
@config_path = File.expand_path("../hello/config.ru", __dir__)

examples/benchmark/config.ru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ class Benchmark
77
end
88

99
def hello(env)
10-
[200, {'content-length' => 12}, ["Hello World\n"]]
10+
[200, {"content-length" => 12}, ["Hello World\n"]]
1111
end
1212

13-
PATH_INFO = 'PATH_INFO'.freeze
13+
PATH_INFO = "PATH_INFO".freeze
1414

1515
SMALL = [200, {}, ["Hello World\n" * 10] * 10].freeze
1616

0 commit comments

Comments
 (0)