Skip to content

Commit fe9586c

Browse files
committed
Modernize gem.
1 parent 598bd82 commit fe9586c

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Layout/IndentationConsistency:
1616
Enabled: true
1717
EnforcedStyle: normal
1818

19+
Layout/BlockAlignment:
20+
Enabled: true
21+
1922
Layout/EndAlignment:
2023
Enabled: true
2124
EnforcedStyleAlignWith: start_of_line

lib/async/http/middleware/location_redirector.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2018-2023, by Samuel Williams.
5-
# Copyright, 2019-2020, by Brian Morearty.
4+
# Copyright, 2024, by Samuel Williams.
65

76
require_relative '../reference'
87

@@ -141,4 +140,4 @@ def call(request)
141140
end
142141
end
143142
end
144-
end
143+
end

lib/async/http/relative_location.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2018-2023, by Samuel Williams.
4+
# Copyright, 2018-2024, by Samuel Williams.
55
# Copyright, 2019-2020, by Brian Morearty.
66

77
require_relative 'middleware/location_redirector'

readme.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
1212

1313
- [Testing](https://socketry.github.io/async-http/guides/testing/index) - This guide explains how to use `Async::HTTP` clients and servers in your tests.
1414

15+
## See Also
16+
17+
- [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
18+
- [falcon](https://github.com/socketry/falcon) — A rack compatible server built on top of `async-http`.
19+
- [async-websocket](https://github.com/socketry/async-websocket) — Asynchronous client and server websockets.
20+
- [async-rest](https://github.com/socketry/async-rest) — A RESTful resource layer built on top of `async-http`.
21+
- [async-http-faraday](https://github.com/socketry/async-http-faraday) — A faraday adapter to use `async-http`.
22+
1523
## Contributing
1624

1725
We welcome contributions to this project.
@@ -22,14 +30,6 @@ We welcome contributions to this project.
2230
4. Push to the branch (`git push origin my-new-feature`).
2331
5. Create new Pull Request.
2432

25-
## See Also
26-
27-
- [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
28-
- [falcon](https://github.com/socketry/falcon) — A rack compatible server built on top of `async-http`.
29-
- [async-websocket](https://github.com/socketry/async-websocket) — Asynchronous client and server websockets.
30-
- [async-rest](https://github.com/socketry/async-rest) — A RESTful resource layer built on top of `async-http`.
31-
- [async-http-faraday](https://github.com/socketry/async-http-faraday) — A faraday adapter to use `async-http`.
32-
3333
### Developer Certificate of Origin
3434

3535
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.

test/async/http/middleware/location_redirector.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2018-2023, by Samuel Williams.
4+
# Copyright, 2018-2024, by Samuel Williams.
55
# Copyright, 2019-2020, by Brian Morearty.
66

77
require 'async/http/middleware/location_redirector'

0 commit comments

Comments
 (0)