Sha256: 5999e24bd8f5e0c67100e2e0f8029f56405d116419334e1f4d96d95dfc8368da

Contents?: true

Size: 1.48 KB

Versions: 38

Compression:

Stored size: 1.48 KB

Contents

= New Features

* An :unsupported_block_result => :raise option is now supported
  for Roda applications.  This will raise a RodaError if an
  unsupported value is returned from a match block or the
  route block.  This can make it easier to discover potential
  problems in the routing tree.  This option may become the
  default behavior in Roda 3.

* An :unsupported_matcher => :raise option is now supported for
  Roda applications.  This will raise a RodaError if you use an
  unsupported value as a matcher.  This can make it easier to
  discover potential problems in the routing tree. This option
  may become the default behavior in Roda 3.

* A :verbatim_string_matcher option is now supported for Roda
  applications.  This will make all string matchers only match
  the path verbatim, disallowing the use of a colon for
  placeholders in the string.  It's recommended that users
  switch to using separate symbol arguments for placeholders.

  If you enable this option, you need to change code such as:

    r.is "foo/:bar" do |bar|
    end

  to:

    r.is "foo", :bar do |bar|
    end

  If you are looking to convert an existing routing tree
  from using placeholders in strings to separate symbol
  arguments, you can scan your routing tree for potential
  usage of placeholders in strings:

    grep ' r\..*['\''"].*:.*['\''"]' app.rb

  This option may become the default behavior in Roda 3, with
  a plugin added to support the current default behavior of
  allowing placeholders in string matchers.

Version data entries

38 entries across 38 versions & 1 rubygems

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