Skip to content

Commit

Permalink
chore: bump to v1.1.0; add badges; add CHANGELOG (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer authored Mar 31, 2023
1 parent 54c827d commit b0f13c2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v1.1.0 - 2023-03-31
-------------------
- Expand requirements to allow using Rack 3.x
- Add `trust_xff_if_private` kwarg to both middlewares
- Add `on_fail_proc` to DenyOthers middleware
- Bump various build-time dependencies

v1.0.0 - 2023-03-31
-------------------
- Initial release
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rack-cloudflare_middleware (1.0.0)
rack-cloudflare_middleware (1.1.0)
faraday (>= 1.0, < 3)
rack (>= 2, < 4)

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This is a small Rack middleware for use with the [Cloudflare](https://www.cloudflare.com/) CDN.

[![CI](https://github.com/instrumentl/rack-cloudflare_middleware/actions/workflows/ci.yml/badge.svg)](https://github.com/instrumentl/rack-cloudflare_middleware/actions/workflows/ci.yml)
[![Gem Version](https://badge.fury.io/rb/rack-cloudflare_middleware.svg)](https://badge.fury.io/rb/rack-cloudflare_middleware)

We include two middlewares:

* `Rack::CloudflareMiddleware::RewriteRemoteAddr` swaps in `CF-Connecting-IP` for `REMOTE_ADDR` if and only if the "real" remote address is a trusted Cloudflare source IP address.
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/cloudflare_middleware/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Rack
module CloudflareMiddleware
VERSION = "1.0.0"
VERSION = "1.1.0"
end
end

0 comments on commit b0f13c2

Please sign in to comment.