From fe9586cd111755475c26bb7eb53dc6f84473fe72 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 26 Aug 2024 20:02:08 +1200 Subject: [PATCH] Modernize gem. --- .rubocop.yml | 3 +++ lib/async/http/middleware/location_redirector.rb | 5 ++--- lib/async/http/relative_location.rb | 2 +- readme.md | 16 ++++++++-------- .../async/http/middleware/location_redirector.rb | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 442c667..a2447c2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,6 +16,9 @@ Layout/IndentationConsistency: Enabled: true EnforcedStyle: normal +Layout/BlockAlignment: + Enabled: true + Layout/EndAlignment: Enabled: true EnforcedStyleAlignWith: start_of_line diff --git a/lib/async/http/middleware/location_redirector.rb b/lib/async/http/middleware/location_redirector.rb index 932f24e..41a7281 100644 --- a/lib/async/http/middleware/location_redirector.rb +++ b/lib/async/http/middleware/location_redirector.rb @@ -1,8 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2023, by Samuel Williams. -# Copyright, 2019-2020, by Brian Morearty. +# Copyright, 2024, by Samuel Williams. require_relative '../reference' @@ -141,4 +140,4 @@ def call(request) end end end -end \ No newline at end of file +end diff --git a/lib/async/http/relative_location.rb b/lib/async/http/relative_location.rb index 884e297..e99d383 100644 --- a/lib/async/http/relative_location.rb +++ b/lib/async/http/relative_location.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2023, by Samuel Williams. +# Copyright, 2018-2024, by Samuel Williams. # Copyright, 2019-2020, by Brian Morearty. require_relative 'middleware/location_redirector' diff --git a/readme.md b/readme.md index 076e223..a636dff 100644 --- a/readme.md +++ b/readme.md @@ -12,6 +12,14 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f - [Testing](https://socketry.github.io/async-http/guides/testing/index) - This guide explains how to use `Async::HTTP` clients and servers in your tests. +## See Also + + - [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency. + - [falcon](https://github.com/socketry/falcon) — A rack compatible server built on top of `async-http`. + - [async-websocket](https://github.com/socketry/async-websocket) — Asynchronous client and server websockets. + - [async-rest](https://github.com/socketry/async-rest) — A RESTful resource layer built on top of `async-http`. + - [async-http-faraday](https://github.com/socketry/async-http-faraday) — A faraday adapter to use `async-http`. + ## Contributing We welcome contributions to this project. @@ -22,14 +30,6 @@ We welcome contributions to this project. 4. Push to the branch (`git push origin my-new-feature`). 5. Create new Pull Request. -## See Also - - - [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency. - - [falcon](https://github.com/socketry/falcon) — A rack compatible server built on top of `async-http`. - - [async-websocket](https://github.com/socketry/async-websocket) — Asynchronous client and server websockets. - - [async-rest](https://github.com/socketry/async-rest) — A RESTful resource layer built on top of `async-http`. - - [async-http-faraday](https://github.com/socketry/async-http-faraday) — A faraday adapter to use `async-http`. - ### Developer Certificate of Origin In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed. diff --git a/test/async/http/middleware/location_redirector.rb b/test/async/http/middleware/location_redirector.rb index c738d74..1efb8ee 100644 --- a/test/async/http/middleware/location_redirector.rb +++ b/test/async/http/middleware/location_redirector.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2023, by Samuel Williams. +# Copyright, 2018-2024, by Samuel Williams. # Copyright, 2019-2020, by Brian Morearty. require 'async/http/middleware/location_redirector'