Skip to content

Commit

Permalink
Modernize code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 4, 2025
1 parent 9c3b877 commit 45570c1
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

gemfile:
- gems/rack-v1.rb
Expand Down
2 changes: 1 addition & 1 deletion bake/falcon/supervisor.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2023, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.

def restart
require_relative "../../lib/falcon/command/supervisor"
Expand Down
2 changes: 1 addition & 1 deletion examples/beer/falcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

load :rack, :self_signed_tls, :supervisor

Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark/falcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

load :rack, :self_signed_tls, :supervisor

Expand Down
2 changes: 1 addition & 1 deletion examples/google/falcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2023, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.

load :proxy, :self_signed_tls, :supervisor

Expand Down
2 changes: 1 addition & 1 deletion examples/proxy/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.
# Copyright, 2024-2025, by Samuel Williams.

require "async/http/client"

Expand Down
2 changes: 1 addition & 1 deletion examples/push/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

require "async"
require "async/http/endpoint"
Expand Down
3 changes: 3 additions & 0 deletions examples/sinatra/app.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.

# To run this example, you need to install the `sinatra` gem:
# $ bundle install
# $ bundle exec ./app.rb
Expand Down
2 changes: 1 addition & 1 deletion examples/streaming/gems.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2022-2023, by Samuel Williams.
# Copyright, 2022-2025, by Samuel Williams.

source "https://rubygems.org"

Expand Down
2 changes: 1 addition & 1 deletion examples/trailer/falcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2023, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.

load :rack, :self_signed_tls, :supervisor

Expand Down
2 changes: 1 addition & 1 deletion gems/async-head.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2021-2023, by Samuel Williams.
# Copyright, 2021-2025, by Samuel Williams.

source "https://rubygems.org"

Expand Down
2 changes: 1 addition & 1 deletion gems/async-v1.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2021-2023, by Samuel Williams.
# Copyright, 2021-2025, by Samuel Williams.

source "https://rubygems.org"

Expand Down
2 changes: 1 addition & 1 deletion gems/rack-head.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

source "https://rubygems.org"

Expand Down
2 changes: 1 addition & 1 deletion lib/falcon/command.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2017-2025, by Samuel Williams.
# Copyright, 2018, by Mitsutaka Mimura.

require_relative "command/top"
Expand Down
2 changes: 1 addition & 1 deletion lib/falcon/endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2023, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require "async/http/endpoint"
require "localhost/authority"
Expand Down
2 changes: 1 addition & 1 deletion lib/falcon/middleware/verbose.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2023, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require "console"
require "async/http/statistics"
Expand Down
2 changes: 1 addition & 1 deletion lib/falcon/rackup/handler.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.
# Copyright, 2024-2025, by Samuel Williams.

require_relative "../../falcon"

Expand Down
2 changes: 1 addition & 1 deletion lib/falcon/server.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2017-2025, by Samuel Williams.

require "async/http/server"

Expand Down
2 changes: 1 addition & 1 deletion lib/rack/handler/falcon.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2024, by Samuel Williams.
# Copyright, 2017-2025, by Samuel Williams.
# Copyright, 2019, by Bryan Powell.

require "rack/handler"
Expand Down
2 changes: 1 addition & 1 deletion lib/rackup/handler/falcon.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023-2024, by Samuel Williams.
# Copyright, 2023-2025, by Samuel Williams.

require "rackup/handler"

Expand Down
2 changes: 1 addition & 1 deletion license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright, 2017-2024, by Samuel Williams.
Copyright, 2017-2025, by Samuel Williams.
Copyright, 2018, by Kent Gruber.
Copyright, 2018, by Janko Marohnić.
Copyright, 2018, by Tad Thorley.
Expand Down

0 comments on commit 45570c1

Please sign in to comment.