World Library  
Flag as Inappropriate
Email this Article

Sinatra (software)

Article Id: WHEBN0022568533
Reproduction Date:

Title: Sinatra (software)  
Author: World Heritage Encyclopedia
Language: English
Subject: Rack (web server interface), Dancer (software), Laravel, Merb, Camping (microframework)
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Sinatra (software)

Sinatra
Original author(s) Blake Mizerany
Developer(s) Konstantin Haase
Initial release 9 September 2007 (2007-09-09)
Stable release 1.4.5 / 8 April 2014 (2014-04-08)
Written in Ruby
Operating system Cross-platform
Type Web application framework
License MIT License
Website .com.sinatrarbwww

Sinatra is a free and open source software web application library and domain-specific language written in Ruby. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Merb, Nitro, and Camping. It is dependent on the Rack web server interface.

Designed and developed by Blake Mizerany, Sinatra is small and flexible. It does not follow the typical model–view–controller pattern used in other frameworks, such as Ruby on Rails. Instead, Sinatra focuses on "quickly creating web-applications in Ruby with minimal effort."[1]

Some notable companies and institutions that use Sinatra include Apple,[2] BBC,[3] the British Government's Government Digital Service,[4] LinkedIn,[5] the National Security Agency,[6] Engine Yard, Heroku, GitHub,[7] and Songbird.[8] Travis CI provides much of the financial support for Sinatra's development.[9]

Sinatra was created and open-sourced in 2007.

Example

#!/usr/bin/env ruby
require 'sinatra'

get '/' do
  redirect to('/hello/World')
end

get '/hello/:name' do
  "Hello #{params[:name]}!"
end

Frameworks inspired by Sinatra

Sinatra has inspired a lot of micro frameworks in Ruby and other programming languages. Usually such frameworks try to closely mimic the Sinatra DSL.

In July 2011, some unknown individual or group, posing as various members of the Sinatra core team, discredited the Dancer project. This incident led to the Sinatra team publicly endorsing Dancer and other clones.[73]

References

  1. ^ Sinatra: Readme
  2. ^ Open Source software used by Apple
  3. ^ BBC Zeitgeist
  4. ^ O'Reilly radar: With GOV.UK, British government redefines the online government platform
  5. ^ JRubyfying LinkedIn's Front-end
  6. ^ NSA Careers: The Programmer
  7. ^ [1]
  8. ^ Sinatra in The Wild
  9. ^ Sinatra: About
  10. ^ Almost Sinatra
  11. ^ Astaire
  12. ^ Cuba
  13. ^ Padrino
  14. ^ Pakyow
  15. ^ Renee
  16. ^ Scorched
  17. ^ Nancy
  18. ^ Fitzgerald
  19. ^ Glue
  20. ^ klein
  21. ^ Laravel
  22. ^ Limonade
  23. ^ MiMViC
  24. ^ Silex
  25. ^ Slim
  26. ^ ToroPHP
  27. ^ Zaphpa
  28. ^ Express
  29. ^ Picard
  30. ^ Roundabout
  31. ^ Sammy
  32. ^ ZappaJS
  33. ^ https://github.com/lvivski/start
  34. ^ Bottle
  35. ^ Denied
  36. ^ Armin Ronacher: April 1st Post Mortem
  37. ^ Flask
  38. ^ itty
  39. ^ Juno
  40. ^ Fresh
  41. ^ Spooky
  42. ^ Leptus
  43. ^ Martini
  44. ^ The "About" specifically mentions Sinatra as an inspiration
  45. ^ Goji
  46. ^ Graffiti
  47. ^ Ratpack
  48. ^ Finatra
  49. ^ Scalatra
  50. ^ BlueEyes
  51. ^ Martin
  52. ^ Nancy
  53. ^ Nina
  54. ^ Mojolicious::Lite
  55. ^ Spark
  56. ^ Napalm
  57. ^ Htmleasy
  58. ^ Jester
  59. ^ Bird
  60. ^ Miku
  61. ^ scotty
  62. ^ Sinatra.fy
  63. ^ Astley
  64. ^ sh.inatra
  65. ^ Bogart
  66. ^ Garland
  67. ^ Frank
  68. ^ Mercury
  69. ^ Orbit
  70. ^ Shatner
  71. ^ RCRouter
  72. ^ Valatra
  73. ^ "Sinatra Loves Dancer"

Further reading

External links

  • Official website
  • Sinatra's GitHub repository
  • Video of Blake Mizerany and Adam Wiggins at RubyConf 2008
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.