Sha256: 68406e5bbde0f143ad06f4671510182f1e0f77fdab785a73f66ae2ce68c27ae5

Contents?: true

Size: 1.32 KB

Versions: 46

Compression:

Stored size: 1.32 KB

Contents

= New Features

* A symbol_status plugin has been added for using symbolic status names
  in response.status=:

    class App < Roda
      plugin :symbol_status

      route do |r|
        r.is "needs_authorization"
          response.status = :unauthorized
        end
      end

= Other Improvements

* The middleware plugin will now also run the application's middleware
  when the application is used as middleware.  For example, if you
  have the following code in your config.ru file:

    class App < Roda
      plugin :csrf
      plugin :middleware
      route{}
    end

    use App
  
  previously, the csrf protection would not be enforced, as it uses a
  middleware instead of being part of the application. Now, csrf
  protection will be enforced.  This change makes it so the Roda
  application operates the same way regardless of whether it is run
  as the rack application or used as rack middleware.

  Because of this change, if you are nesting roda applications using
  the middleware plugin, you may need to use the middleware plugin's
  :env_var option to specify the environment variable used to
  indicate to the Roda application that it is being run as middleware.

= Backwards Compatibility

* See above changes to the middleware plugin if you are using
  middleware inside a Roda application that uses the middleware
  plugin.

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
roda-3.28.0 doc/release_notes/2.14.0.txt
roda-3.27.0 doc/release_notes/2.14.0.txt
roda-3.26.0 doc/release_notes/2.14.0.txt
roda-3.25.0 doc/release_notes/2.14.0.txt
roda-3.24.0 doc/release_notes/2.14.0.txt
roda-3.23.0 doc/release_notes/2.14.0.txt
roda-3.22.0 doc/release_notes/2.14.0.txt
roda-3.21.0 doc/release_notes/2.14.0.txt
roda-3.20.0 doc/release_notes/2.14.0.txt
roda-3.19.0 doc/release_notes/2.14.0.txt
roda-3.18.0 doc/release_notes/2.14.0.txt
roda-3.17.0 doc/release_notes/2.14.0.txt
roda-3.16.0 doc/release_notes/2.14.0.txt
roda-3.15.0 doc/release_notes/2.14.0.txt
roda-3.14.1 doc/release_notes/2.14.0.txt
roda-3.14.0 doc/release_notes/2.14.0.txt
roda-3.13.0 doc/release_notes/2.14.0.txt
roda-3.12.0 doc/release_notes/2.14.0.txt
roda-3.11.0 doc/release_notes/2.14.0.txt
roda-3.10.0 doc/release_notes/2.14.0.txt