Skip to content

Commit

Permalink
Bump version to 3.74.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Nov 13, 2023
1 parent a0b8d4f commit 855f84c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= master
= 3.74.0 (2023-11-13)

* Add redirect_http_to_https plugin, helping to ensure future requests from the browser are submitted via HTTPS (jeremyevans)

Expand Down
28 changes: 28 additions & 0 deletions doc/release_notes/3.74.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= New Features

* A redirect_http_to_https plugin has been added, redirecting HTTP
requests to the same path on an HTTPS site. Using the routing tree,
you can control where to do the redirection, which allows you to
easily have part of your site accessible via HTTP, with sensitive
sections requiring HTTPS:

plugin :redirect_http_to_https

route do |r|
# routes available via both HTTP and HTTPS
r.redirect_http_to_https
# routes available only via HTTPS
end

If you want to redirect to HTTPS for all routes in the routing tree, you
can have r.redirect_http_to_https as the very first method call in the
routing tree. Note that in Roda it is possible to handle routing before
the normal routing tree using before hooks. The static_routing and
heartbeat plugins use this feature. If you would like to handle routes
before the normal routing tree, you can setup a before hook:

plugin :hooks

before do
request.redirect_http_to_https
end
2 changes: 1 addition & 1 deletion lib/roda/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Roda
RodaMajorVersion = 3

# The minor version of Roda, updated for new feature releases of Roda.
RodaMinorVersion = 73
RodaMinorVersion = 74

# The patch version of Roda, updated only for bug fixes from the last
# feature release.
Expand Down

0 comments on commit 855f84c

Please sign in to comment.