Skip to content

Commit

Permalink
Merge branch 'master' into 2.2.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Jan 24, 2016
2 parents be69acd + bab0355 commit a0acf42
Show file tree
Hide file tree
Showing 13 changed files with 2,175 additions and 1,460 deletions.
4 changes: 3 additions & 1 deletion AUTHORS.md
Expand Up @@ -4,14 +4,16 @@ Sinatra was designed and developed by Blake Mizerany in California.

* **Konstantin Haase** (maintainer)
* **Zachary Scott**
* **Katrina Owen**
* **Kashyap Kondamudi**
* **Ashley Williams**
* **Trevor Bramble**

### Alumni

* **Blake Mizerany** (creator)
* **Ryan Tomayko**
* **Simon Rozet**
* **Katrina Owen**

### Thanks

Expand Down
54 changes: 27 additions & 27 deletions README.de.md
Expand Up @@ -4,7 +4,7 @@
Umständen nicht auf dem aktuellen Stand (aktuell Sinatra 1.4.5).*

Sinatra ist eine
[DSL](http://de.wikipedia.org/wiki/Domänenspezifische_Sprache), die das
[DSL](https://de.wikipedia.org/wiki/Domänenspezifische_Sprache), die das
schnelle Erstellen von Webanwendungen in Ruby mit minimalem Aufwand
ermöglicht:

Expand Down Expand Up @@ -220,9 +220,9 @@ end
Routen-Muster können auch mit optionalen Parametern ausgestattet werden:

```ruby
get '/posts.?:format?' do
# passt auf "GET /posts" sowie jegliche Erweiterung
# wie "GET /posts.json", "GET /posts.xml" etc.
get '/posts/:format?' do
# passt auf "GET /posts/" sowie jegliche Erweiterung
# wie "GET /posts/json", "GET /posts/xml" etc.
end
```

Expand Down Expand Up @@ -608,7 +608,7 @@ Nimmt ebenso einen Block für Inline-Templates entgegen (siehe Beispiel).
<table>
<tr>
<td>Abhängigkeit</td>
<td><a href="http://nokogiri.org/">nokogiri</a></td>
<td><a href="http://www.nokogiri.org/">nokogiri</a></td>
</tr>
<tr>
<td>Dateierweiterung</td>
Expand Down Expand Up @@ -663,7 +663,7 @@ Nimmt ebenso einen Block für Inline-Templates entgegen (siehe Beispiel).
<table>
<tr>
<td>Abhängigkeit</td>
<td><a href="http://www.lesscss.org/">less</a></td>
<td><a href="http://lesscss.org/">less</a></td>
</tr>
<tr>
<td>Dateierweiterung</td>
Expand All @@ -681,7 +681,7 @@ Nimmt ebenso einen Block für Inline-Templates entgegen (siehe Beispiel).
<table>
<tr>
<td>Abhängigkeit</td>
<td><a href="http://www.liquidmarkup.org/">liquid</a></td>
<td><a href="http://liquidmarkup.org/">liquid</a></td>
</tr>
<tr>
<td>Dateierweiterung</td>
Expand All @@ -703,7 +703,7 @@ denen man Variablen weitergibt.
<tr>
<td>Abhängigkeit</td>
<td>Eine der folgenden Bibliotheken:
<a href="https://github.com/rtomayko/rdiscount" title="RDiscount">RDiscount</a>,
<a href="https://github.com/davidfstr/rdiscount" title="RDiscount">RDiscount</a>,
<a href="https://github.com/vmg/redcarpet" title="RedCarpet">RedCarpet</a>,
<a href="http://deveiate.org/projects/BlueCloth" title="BlueCloth">BlueCloth</a>,
<a href="http://kramdown.gettalong.org/" title="kramdown">kramdown</a> oder
Expand Down Expand Up @@ -863,7 +863,7 @@ man üblicherweise locals verwenden wollen, mit denen man Variablen weitergibt.
<table>
<tr>
<td>Abhängigkeit</td>
<td><a href="http://markaby.github.com/">markaby</a></td>
<td><a href="http://markaby.github.io/">markaby</a></td>
</tr>
<tr>
<td>Dateierweiterung</td>
Expand Down Expand Up @@ -1011,7 +1011,7 @@ Templates zu verwenden und einen anderen für das Layout, indem die
<tr>
<td>Abhängigkeit</td>
<td>
<a href="https://github.com/lucasmazza/ruby-stylus" title="Ruby Stylus">
<a href="https://github.com/forgecrafted/ruby-stylus" title="Ruby Stylus">
Stylus
</a> und eine Möglichkeit
<a href="https://github.com/sstephenson/execjs/blob/master/README.md#readme" title="ExecJS">
Expand Down Expand Up @@ -1540,8 +1540,8 @@ end
```

Damit lassen sich Streaming-APIs realisieren, sog.
[Server Sent Events](http://dev.w3.org/html5/eventsource/), die als Basis für
[WebSockets](http://en.wikipedia.org/wiki/WebSocket) dienen. Ebenso können sie
[Server Sent Events](https://w3c.github.io/eventsource/), die als Basis für
[WebSockets](https://en.wikipedia.org/wiki/WebSocket) dienen. Ebenso können sie
verwendet werden, um den Durchsatz zu erhöhen, wenn ein Teil der Daten von
langsamen Ressourcen abhängig ist.

Expand Down Expand Up @@ -1672,7 +1672,7 @@ Weitere Parameter werden wie Argumente der `halt`-Methode behandelt:

```ruby
redirect to('/bar'), 303
redirect 'http://google.com', 'Hier bist du falsch'
redirect 'http://www.google.com/', 'Hier bist du falsch'
```

Ebenso leicht lässt sich ein Schritt zurück mit dem Alias `redirect back`
Expand Down Expand Up @@ -1757,7 +1757,7 @@ end
```

ebenso ist es möglich einen
[schwachen ETag](http://de.wikipedia.org/wiki/HTTP_ETag) zu verwenden:
[schwachen ETag](https://de.wikipedia.org/wiki/HTTP_ETag) zu verwenden:

```ruby
etag @article.sha1, :weak
Expand Down Expand Up @@ -2073,7 +2073,7 @@ end
#### Einstellung des Angriffsschutzes

Sinatra verwendet
[Rack::Protection](https://github.com/rkh/rack-protection#readme), um die
[Rack::Protection](https://github.com/sinatra/rack-protection#readme), um die
Anwendung vor häufig vorkommenden Angriffen zu schützen. Diese Voreinstellung
lässt sich selbstverständlich deaktivieren, der damit verbundene
Geschwindigkeitszuwachs steht aber in keinem Verhätnis zu den möglichen
Expand Down Expand Up @@ -2360,7 +2360,7 @@ end
```

Die Semantik von `use` entspricht der gleichnamigen Methode der
[Rack::Builder](http://rubydoc.info/github/rack/rack/master/Rack/Builder)-DSL
[Rack::Builder](http://www.rubydoc.info/github/rack/rack/master/Rack/Builder)-DSL
(meist verwendet in Rackup-Dateien). Ein Beispiel dafür ist, dass die
`use`-Methode mehrere/verschiedene Argumente und auch Blöcke entgegennimmt:

Expand All @@ -2383,7 +2383,7 @@ oder im [Rack wiki](https://github.com/rack/rack/wiki/List-of-Middleware).
## Testen

Sinatra-Tests können mit jedem auf Rack aufbauendem Test-Framework geschrieben
werden. [Rack::Test](http://rdoc.info/github/brynary/rack-test/master/frames)
werden. [Rack::Test](http://www.rubydoc.info/github/brynary/rack-test/master/frames)
wird empfohlen:

```ruby
Expand Down Expand Up @@ -2464,7 +2464,7 @@ Veränderungen zu `Sinatra::Base` konvertiert werden:

`Sinatra::Base` ist ein unbeschriebenes Blatt. Die meisten Optionen sind per
Standard deaktiviert. Das betrifft auch den eingebauten Server. Siehe
[Optionen und Konfiguration](http://sinatra.github.com/configuration.html) für
[Optionen und Konfiguration](http://www.sinatrarb.com/configuration.html) für
Details über mögliche Optionen.

Damit eine App sich ähnlich wie eine klassische App verhält, kann man
Expand Down Expand Up @@ -2541,7 +2541,7 @@ werden:
<tr>
<td>static</td>
<td>true</td>
<td>false</td>
<td>File.exist?(public_folder)</td>
<td>true</td>
</tr>
</table>
Expand Down Expand Up @@ -2926,7 +2926,7 @@ gem install sinatra --pre
### Mit Bundler

Wenn die Applikation mit der neuesten Version von Sinatra und
[Bundler](http://gembundler.com/) genutzt werden soll, empfehlen wir den
[Bundler](http://bundler.io) genutzt werden soll, empfehlen wir den
nachfolgenden Weg.

Soweit Bundler noch nicht installiert ist:
Expand Down Expand Up @@ -3013,19 +3013,19 @@ SemVer und SemVerTag.

## Mehr

* [Projekt-Website](http://sinatra.github.com/) - Ergänzende Dokumentation,
* [Projekt-Website](http://www.sinatrarb.com/) - Ergänzende Dokumentation,
News und Links zu anderen Ressourcen.
* [Mitmachen](http://sinatra.github.com/contributing.html) - Einen Fehler
* [Mitmachen](http://www.sinatrarb.com/contributing.html) - Einen Fehler
gefunden? Brauchst du Hilfe? Hast du einen Patch?
* [Issue-Tracker](http://github.com/sinatra/sinatra/issues)
* [Twitter](http://twitter.com/sinatra)
* [Issue-Tracker](https://github.com/sinatra/sinatra/issues)
* [Twitter](https://twitter.com/sinatra)
* [Mailing-Liste](http://groups.google.com/group/sinatrarb)
* [#sinatra](irc://chat.freenode.net/#sinatra) auf http://freenode.net Es
gibt dort auch immer wieder deutschsprachige Entwickler, die gerne weiterhelfen.
* [Sinatra Book](https://github.com/sinatra/sinatra-book/) Kochbuch Tutorial
* [Sinatra Recipes](http://recipes.sinatrarb.com/) Sinatra-Rezepte aus der
Community
* API Dokumentation für die [aktuelle
Version](http://rubydoc.info/gems/sinatra) oder für
[HEAD](http://rubydoc.info/github/sinatra/sinatra) auf http://rubydoc.info
* [CI Server](http://travis-ci.org/sinatra/sinatra)
Version](http://www.rubydoc.info//gems/sinatra) oder für
[HEAD](http://www.rubydoc.info/github/sinatra/sinatra) auf http://rubydoc.info
* [CI Server](https://travis-ci.org/sinatra/sinatra)
54 changes: 27 additions & 27 deletions README.es.md
Expand Up @@ -3,7 +3,7 @@
*Atención: Este documento es una traducción de la versión en inglés y puede estar desactualizado.*

Sinatra es un
[DSL](http://es.wikipedia.org/wiki/Lenguaje_específico_del_dominio) para
[DSL](https://es.wikipedia.org/wiki/Lenguaje_específico_del_dominio) para
crear aplicaciones web rápidamente en Ruby con un mínimo esfuerzo:

```ruby
Expand All @@ -22,7 +22,7 @@ gem install sinatra
ruby miapp.rb
```

Ver en <http://localhost:4567>.
Ver en [http://localhost:4567](http://localhost:4567).

Se recomienda ejecutar `gem install thin`, porque Sinatra lo utilizará si está disponible.

Expand Down Expand Up @@ -133,9 +133,9 @@ end
Los patrones de ruta pueden contener parámetros opcionales:

```ruby
get '/posts.?:formato?' do
# coincide con "GET /posts" y además admite cualquier extensión, por
# ejemplo, "GET /posts.json", "GET /posts.xml", etc.
get '/posts/:formato?' do
# coincide con "GET /posts/" y además admite cualquier extensión, por
# ejemplo, "GET /posts/json", "GET /posts/xml", etc.
end
```

Expand Down Expand Up @@ -503,7 +503,7 @@ Además, acepta un bloque con la definición de la plantilla (ver ejemplo).
<table>
<tr>
<td>Dependencias</td>
<td><a href="http://nokogiri.org/" title="nokogiri">nokogiri</a></td>
<td><a href="http://www.nokogiri.org/" title="nokogiri">nokogiri</a></td>
</tr>
<tr>
<td>Extensiones de Archivo</td>
Expand Down Expand Up @@ -556,7 +556,7 @@ Además, acepta un bloque con la definición de la plantilla (ver ejemplo).
<table>
<tr>
<td>Dependencias</td>
<td><a href="http://www.lesscss.org/" title="less">less</a></td>
<td><a href="http://lesscss.org/" title="less">less</a></td>
</tr>
<tr>
<td>Extensiones de Archivo</td>
Expand All @@ -573,7 +573,7 @@ Además, acepta un bloque con la definición de la plantilla (ver ejemplo).
<table>
<tr>
<td>Dependencias</td>
<td><a href="http://www.liquidmarkup.org/" title="liquid">liquid</a></td>
<td><a href="http://liquidmarkup.org/" title="liquid">liquid</a></td>
</tr>
<tr>
<td>Extensiones de Archivo</td>
Expand All @@ -594,7 +594,7 @@ plantilla Liquid, casi siempre va a querer pasarle locales.
<tr>
<td>Dependencias</td>
<td>
<a href="https://github.com/rtomayko/rdiscount" title="RDiscount">RDiscount</a>,
<a href="https://github.com/davidfstr/rdiscount" title="RDiscount">RDiscount</a>,
<a href="https://github.com/vmg/redcarpet" title="RedCarpet">RedCarpet</a>,
<a href="http://deveiate.org/projects/BlueCloth" title="BlueCloth">BlueCloth</a>,
<a href="http://kramdown.gettalong.org/" title="kramdown">kramdown</a> o
Expand Down Expand Up @@ -727,7 +727,7 @@ plantilla Radius, casi siempre se necesita pasar locales.
<table>
<tr>
<td>Dependencias</td>
<td><a href="http://markaby.github.com/" title="Markaby">Markaby</a></td>
<td><a href="http://markaby.github.io/" title="Markaby">Markaby</a></td>
</tr>
<tr>
<td>Extensiones de Archivo</td>
Expand Down Expand Up @@ -841,7 +841,7 @@ distinto al de la plantilla pasando la opción `:layout_engine`.
<tr>
<td>Dependencias</td>
<td>
<a href="https://github.com/lucasmazza/ruby-stylus" title="Ruby Stylus">
<a href="https://github.com/forgecrafted/ruby-stylus" title="Ruby Stylus">
Stylus
</a> y un
<a href="https://github.com/sstephenson/execjs/blob/master/README.md#readme" title="ExecJS">
Expand Down Expand Up @@ -1324,8 +1324,8 @@ end
```

Podés implementar APIs de streaming,
[Server-Sent Events](http://dev.w3.org/html5/eventsource/) y puede ser usado
como base para [WebSockets](http://es.wikipedia.org/wiki/WebSockets). También
[Server-Sent Events](https://w3c.github.io/eventsource/) y puede ser usado
como base para [WebSockets](https://es.wikipedia.org/wiki/WebSockets). También
puede ser usado para incrementar el throughput si solo una parte del contenido
depende de un recurso lento.

Expand Down Expand Up @@ -1441,7 +1441,7 @@ pasados a `halt`:

```ruby
redirect to('/bar'), 303
redirect 'http://google.com', 'te confundiste de lugar, compañero'
redirect 'http://www.google.com/', 'te confundiste de lugar, compañero'
```

También podés redireccionar fácilmente de vuelta hacia la página desde donde
Expand Down Expand Up @@ -1526,7 +1526,7 @@ end
```

También es posible usar una
[weak ETag](http://en.wikipedia.org/wiki/HTTP_ETag#Strong_and_weak_validation):
[weak ETag](https://en.wikipedia.org/wiki/HTTP_ETag#Strong_and_weak_validation):

```ruby
etag @articulo.sha1, :weak
Expand Down Expand Up @@ -1841,7 +1841,7 @@ end

### Configurando la Protección de Ataques

Sinatra usa [Rack::Protection](https://github.com/rkh/rack-protection#readme)
Sinatra usa [Rack::Protection](https://github.com/sinatra/rack-protection#readme)
para defender a tu aplicación de los ataques más comunes. Si por algún motivo,
querés desactivar esta funcionalidad, podés hacerlo como se indica a
continuación (ten en cuenta que tu aplicación va a quedar expuesta a un
Expand Down Expand Up @@ -2187,7 +2187,7 @@ end
```

La semántica de `use` es idéntica a la definida para el DSL
Rack::Builder[http://rubydoc.info/github/rack/rack/master/Rack/Builder] (más
Rack::Builder[http://www.rubydoc.info/github/rack/rack/master/Rack/Builder] (más
frecuentemente usado en archivos rackup). Por ejemplo, el método `use`
acepta argumentos múltiples/variables así como bloques:

Expand All @@ -2211,7 +2211,7 @@ o en la [Rack wiki](https://github.com/rack/rack/wiki/List-of-Middleware).

Las pruebas para las aplicaciones Sinatra pueden ser escritas utilizando
cualquier framework o librería de pruebas basada en Rack. Se recomienda usar
[Rack::Test](http://rdoc.info/github/brynary/rack-test/master/frames):
[Rack::Test](http://www.rubydoc.info/github/brynary/rack-test/master/frames):

```ruby
require 'mi_app_sinatra'
Expand Down Expand Up @@ -2279,7 +2279,7 @@ aplicaciones top-level se pueden convertir en componentes

`Sinatra::Base` es una pizarra en blanco. La mayoría de las opciones están
desactivadas por defecto, incluyendo el servidor incorporado. Mirá
[Opciones y Configuraciones](http://sinatra.github.com/configuration.html)
[Opciones y Configuraciones](http://www.sinatrarb.com/configuration.html)
para detalles sobre las opciones disponibles y su comportamiento.

### Estilo Modular vs. Clásico
Expand Down Expand Up @@ -2336,7 +2336,7 @@ de ambos estilos:
<tr>
<td>static</td>
<td>true</td>
<td>false</td>
<td>File.exist?(public_folder)</td>
</tr>
</table>

Expand Down Expand Up @@ -2732,7 +2732,7 @@ Para obtener algunas de las últimas características.
### Con Bundler

Esta es la manera recomendada para ejecutar tu aplicación sobre la última
versión de Sinatra usando [Bundler](http://gembundler.com/).
versión de Sinatra usando [Bundler](http://bundler.io).

Primero, instalá Bundler si no lo hiciste todavía:

Expand Down Expand Up @@ -2807,15 +2807,15 @@ siguiendo las especificaciones SemVer y SemVerTag.
adicional, noticias, y enlaces a otros recursos.
* [Contribuyendo](http://www.sinatrarb.com/contributing) - ¿Encontraste un
error?. ¿Necesitás ayuda?. ¿Tenés un parche?.
* [Seguimiento de problemas](http://github.com/sinatra/sinatra/issues)
* [Twitter](http://twitter.com/sinatra)
* [Seguimiento de problemas](https://github.com/sinatra/sinatra/issues)
* [Twitter](https://twitter.com/sinatra)
* [Lista de Correo](http://groups.google.com/group/sinatrarb/topics)
* [IRC: #sinatra](irc://chat.freenode.net/#sinatra) en http://freenode.net
* [Sinatra Book](https://github.com/sinatra/sinatra-book/) Tutorial (en inglés).
* [Sinatra Recipes](http://recipes.sinatrarb.com/) Recetas contribuidas
por la comunidad (en inglés).
* Documentación de la API para la
[última versión liberada](http://rubydoc.info/gems/sinatra) o para la
[rama de desarrollo actual](http://rubydoc.info/github/sinatra/sinatra)
en http://rubydoc.info/
* [Servidor de CI](http://travis-ci.org/sinatra/sinatra)
[última versión liberada](http://www.rubydoc.info/gems/sinatra) o para la
[rama de desarrollo actual](http://www.rubydoc.info/github/sinatra/sinatra)
en http://www.rubydoc.info/
* [Servidor de CI](https://travis-ci.org/sinatra/sinatra)

0 comments on commit a0acf42

Please sign in to comment.