Registry / web-framework / sinatra

sinatra

JSON →
library4.2.1rbrubygemsunverified

Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.

gem install sinatra
INSTALL
IMPORT
SIG · SINATRA
S
sinatra
web-frameworkrubyv4.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sinatra
require 'sinatra'

Create a simple web server that responds to GET /.

require 'sinatra' get '/' do 'Hello, world!' end
Debug
Known issues
breakingSinatra 4.x drops support for Ruby < 2.7; older Ruby versions will cause syntax errors.
fix
Upgrade Ruby to 2.7 or later.
affects: >= 4.0.0
Upgrade
Version history
4.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
sinatra — gem install sinatra · libregistry