Sinatra

Software Screenshot:
Sinatra
Software Details:
Version: 1.4.7 updated
Upload Date: 11 Mar 16
Distribution Type: Freeware
Downloads: 108
Size: 397 Kb

Rating: nan/5 (Total Votes: 0)

When it first launched, Sinatra was 1% the size of its main competitor: Ruby on Rails.

This was because Sinatra was created to be a super-lightweight solution for the Ruby market which was and still is inundated with lots of frameworks with huge codebases.

Sinatra still follows this philosophy today, providing a basic set of features found almost in all frameworks around, considered to be the absolutely necessary base for any Web project.

This dedication to its light codebase has made Sinatra very famous in the Web development world, its concepts being ported to various other programming languages as well.

What is new in this release:

  • Remove duplicate require of sinatra/base.
  • Escape HTML in 404 error page.
  • Refactor to method call in `Stream#close` and `#callback`.
  • Depend on latest version of Slim.
  • Fix compatibility with Tilt version 2.
  • Fix compatibility issue with Rack `pretty` method from ShowExceptions.
  • Show date in local time in exception messages.
  • Fix logo on error pages when using Ruby 1.8.
  • Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.

What is new in version 1.4.6:

  • Remove duplicate require of sinatra/base.
  • Escape HTML in 404 error page.
  • Refactor to method call in `Stream#close` and `#callback`.
  • Depend on latest version of Slim.
  • Fix compatibility with Tilt version 2.
  • Fix compatibility issue with Rack `pretty` method from ShowExceptions.
  • Show date in local time in exception messages.
  • Fix logo on error pages when using Ruby 1.8.
  • Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.

What is new in version 1.4.3:

  • Improve documentation.
  • Expose matched pattern as env["sinatra.route"].
  • Fixed warning on Ruby 2.0.
  • Improved running subset of tests in isolation.
  • Reorder private/public methods.
  • Loosen version dependency for rack, so it runs with Rails 3.2.

What is new in version 1.4.2:

  • Missing Accept header is treated like */*.
  • Improve documentation.

What is new in version 1.4.0:

  • Added support for LINK and UNLINK requests.
  • Added support for Yajl templates.
  • Added support for Rabl templates.
  • Added support for Wlang templates.
  • Added support for Stylus templates.

What is new in version 1.3.3:

  • Improved documentation.
  • No longer modify the load path.
  • When keeping a stream open, set up callback/errback correctly to deal with clients closing the connection.
  • Fixed bug where having a query param and a URL param by the same name would concatenate the two values.
  • Prevent duplicated log output when application is already wrapped in a `Rack::CommonLogger`.
  • Fixed issue where `Rack::Link` and Rails were preventing indefinite streaming.
  • No longer cause warnings when running Ruby with `-w`.
  • HEAD requests on static files no longer report a Content-Length of 0, but instead the proper length.
  • When protecting against CSRF attacks, drop the session instead of refusing the request.

What is new in version 1.3.2:

  • Setting `logging` to `nil` will avoid setting up `Rack::NullLogger`.
  • Route specific params are now available in the block passed to #stream.
  • Fix bug where rendering a second template in the same request, after the first one raised an exception, skipped the default layout.
  • Fix bug where parameter escaping got enabled when disabling a different protection.
  • Fix regression: Filters without a pattern may now again manipulate the params hash.
  • Added examples directory.
  • Improved documentation.
  • Improved MagLev support.

What is new in version 1.3.1:

  • Support adding more than one callback to the stream object.
  • Fix for infinite loop when streaming on 1.9.2 with Thin from a modular application.

What is new in version 1.3.0.e:

  • Added support for HTTP PATCH requests.

What is new in version 1.2.6:

  • Fixed broken delegation, backport delegation tests from Sinatra 1.3.

What is new in version 1.2.2 / 1.3.0.a:

  • The `:provides => :js` condition now matches both `application/javascript` and `text/javascript`. The `:provides => :xml` condition now matches both `application/xml` and `text/xml`. The `Content-Type` header is set accordingly. If the client accepts both, the `application/*` version is preferred, since the `text/*` versions are deprecated.
  • The `provides` condition now handles wildcards in `Accept` headers correctly. Thus `:provides => :html` matches `text/html`, `text/*` and `*/*`.
  • When parsing `Accept` headers, `Content-Type` preferences are honored according to RFC 2616 section 14.1.
  • URIs passed to the `url` helper or `redirect` may now use any schema to be identified as absolute URIs, not only `http` or `https`.
  • Handles `Content-Type` strings that already contain parameters correctly in `content_type` (example: `content_type "text/plain; charset=utf-16"`).
  • If a route with an empty pattern is defined (`get("") { ... }`) requests with an empty path info match this route instead of "/".
  • In development environment, when running under a nested path, the image URIs on the error pages are set properly.

What is new in version 1.2.1:

  • Use a generated session secret when using `enable :sessions`.
  • Fixed a bug where the wrong content type was used if no content type was set and a template engine was used with a different engine for the layout with different default content types, say Less embedded in Slim.
  • README translations improved.

What is new in version 1.2.0.c:

  • Added `slim` rendering method for rendering Slim templates.
  • The `markaby` rendering method now allows passing a block, making inline usage possible. Requires Tilt 1.2 or newer.
  • All render methods now take a `:layout_engine` option, allowing to use a layout in a different template language. Even more useful than using this directly (`erb :index, :layout_engine => :haml`) is setting this globally for a template engine that otherwise does not support layouts, like Markdown or Textile (`set :markdown, :layout_engine => :erb`).
  • Before and after filters now support conditions, both with and without patterns (`before '/api/*', :agent => /Songbird/`).
  • Added a `url` helper method which constructs absolute URLs. Copes with reverse proxies and Rack handlers correctly. Aliased to `to`, so you can write `redirect to('/foo')`.
  • If running on 1.9, patterns for routes and filters now support named captures: `get(%r{/hi/(?<name>[^/?#]+)}) { "Hi #{params['name']}" }`.
  • All rendering methods now take a `:scope` option, which renders them in another context. Note that helpers and instance variables will be unavailable if you use this feature.
  • The behavior of `redirect` can now be configured with `absolute_redirects` and `prefixed_redirects`.
  • `send_file` now allows overriding the Last-Modified header, which defaults to the file's mtime, by passing a `:last_modified` option.
  • You can use your own template lookup method by defining `find_template`. This allows, among other things, using more than one views folder.
  • Largely improved documentation.
  • Improved error handling.
  • Skip missing template engines in tests correctly.
  • Sinatra now ships with a Gemfile for development dependencies, since it eases supporting different platforms, like JRuby.

What is new in version 1.0:

  • Route handlers, before filters, templates, error mappings, and middleware are now resolved dynamically up the inheritance hierarchy when needed instead of duplicating the superclass's version when a new Sinatra::Base subclass is created.
  • Sinatra apps can now be run with a `-o <addr>` argument to specify the address to bind to.
  • New request.secure? method for checking for an SSL connection.
  • New 'erubis' helper method for rendering ERB template with Erubis.
  • ERB, Erubis, and Haml templates are now compiled the first time they're rendered instead of being string eval'd on each invocation.
  • Sinatra now uses Tilt for rendering templates.

Similar Software

Comments to Sinatra

Comments not found
Add Comment
Turn on images!