Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set 2.6 as minimum ruby version for Sinatra 3 #1699

Merged
merged 5 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
# TODO: Add jruby if something like allow_failures will be implemented on Actions.
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', head]
ruby: [2.6, 2.7, '3.0', head]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
Expand Down
6 changes: 3 additions & 3 deletions README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -3120,9 +3120,9 @@ thin --threaded start
Die folgenden Versionen werden offiziell unterstützt:

<dl>
<dt>Ruby 2.3</dt>
<dt>Ruby 2.6</dt>
<dd>
2.3 wird vollständig unterstützt. Es gibt derzeit keine Pläne die
2.6 wird vollständig unterstützt. Es gibt derzeit keine Pläne die
offizielle Unterstützung zu beenden
</dd>

Expand All @@ -3141,7 +3141,7 @@ Die folgenden Versionen werden offiziell unterstützt:
</dd>
</dl>

Versionen vor Ruby 2.2.2 werden ab Sinatra 2.0 nicht länger unterstützt.
Versionen vor Ruby 2.6 werden ab Sinatra 3.0 nicht länger unterstützt.

Nachfolgende Ruby-Versionen werden regelmäßig auf Unterstützung geprüft.

Expand Down
36 changes: 18 additions & 18 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ Opciones disponibles:
del motor usado para renderizar la plantilla.
Ejemplo: <tt>set :rdoc, :layout_engine => :erb</tt>
</dd>

<dt>layout_options</dt>
<dd>
Opciones especiales usadas únicamente para renderizar el layout. Ejemplo:
Expand Down Expand Up @@ -578,7 +578,7 @@ get '/' do
end
```

Renderiza el string de la plantilla. Opcionalmente puedes especificar
Renderiza el string de la plantilla. Opcionalmente puedes especificar
`:path` y `:line` para un backtrace más claro si hay una ruta del sistema
de archivos o una línea asociada con ese string

Expand Down Expand Up @@ -1419,7 +1419,7 @@ end
#### Secreto de Sesión

Para mejorar la seguridad, los datos de la sesión en la cookie se firman con un secreto usando `HMAC-SHA1`. El secreto de esta sesión debería ser de manera óptima
un valor aleatorio criptográficamente seguro de una longitud adecuada para
un valor aleatorio criptográficamente seguro de una longitud adecuada para
`HMAC-SHA1` que es mayor o igual que 64 bytes (512 bits, 128 hex caracteres).
Se le aconsejará que no use un secreto que sea inferior a 32
bytes de aleatoriedad (256 bits, 64 caracteres hexadecimales).
Expand All @@ -1428,11 +1428,11 @@ sino que use un generador de números aleatorios para crearlo.
Los humanos somos extremadamente malos generando valores aleatorios

De forma predeterminada, un secreto de sesión aleatorio seguro de 32 bytes se genera para usted por
Sinatra, pero cambiará con cada reinicio de su aplicación. Si tienes varias
Sinatra, pero cambiará con cada reinicio de su aplicación. Si tienes varias
instancias de tu aplicación y dejas que Sinatra genere la clave, cada instancia
tendría una clave de sesión diferente y probablemente no es lo que quieres.

Para una mejor seguridad y usabilidad es
Para una mejor seguridad y usabilidad es
[recomendado](https://12factor.net/config) que genere un secreto de sesión
aleatorio seguro y se guarde en las variables de entorno en cada host que ejecuta
su aplicación para que todas las instancias de su aplicación compartan el mismo
Expand Down Expand Up @@ -1869,7 +1869,7 @@ get '/bar' do
end
```

### Control del Cache
### Control del Cache

Asignar tus encabezados correctamente es el cimiento para realizar un cacheo
HTTP correcto.
Expand Down Expand Up @@ -1985,7 +1985,7 @@ Estas opciones son:
<dl>
<dt>filename</dt>
<dd>Nombre del archivo devuelto, por defecto es el nombre real del archivo.</dd>

<dt>last_modified</dt>
<dd>Valor para el encabezado Last-Modified, por defecto toma el mtime del archivo.</dd>

Expand Down Expand Up @@ -2333,13 +2333,13 @@ set :protection, :except => [:path_traversal, :session_hijacking]
formularios put/delete en navegadores que no los
soportan.
</dd>

<dt>mustermann_opts</dt>
<dd>
Un hash predeterminado de opciones para pasar a Mustermann.new
al compilar las rutas.
</dd>

<dt>port</dt>
<dd>
Puerto en el que escuchará el servidor integrado.
Expand All @@ -2357,7 +2357,7 @@ set :protection, :except => [:path_traversal, :session_hijacking]

<dt>protection</dt>
<dd>
Define si se habilitan o no las protecciones de ataques web.
Define si se habilitan o no las protecciones de ataques web.
Ver la sección de protección encima.
</dd>

Expand All @@ -2369,7 +2369,7 @@ set :protection, :except => [:path_traversal, :session_hijacking]
está presente, se infiere del valor de la opción
<tt>app_file</tt>.
</dd>

<dt>quiet</dt>
<dd>
Inhabilita los logs generados por los comandos de inicio y detención de Sinatra.
Expand Down Expand Up @@ -2416,7 +2416,7 @@ set :protection, :except => [:path_traversal, :session_hijacking]
integrado. El orden indica su prioridad, por defecto depende
de la implementación de Ruby.
</dd>

<dt>server_settings</dt>
<dd>
Si está utilizando un servidor web WEBrick, presumiblemente para su entorno de desarrollo, puede pasar un hash de opciones a <tt> server_settings </tt>, como <tt> SSLEnable </tt> o <tt> SSLVerifyClient </tt>. Sin embargo, los servidores web como Puma no son compatibles, por lo que puede establecer <tt> server_settings </tt> definiéndolo como un método cuando llame a <tt> configure </tt>.
Expand All @@ -2428,7 +2428,7 @@ set :protection, :except => [:path_traversal, :session_hijacking]
través de <tt>Rack::Session::Cookie</tt>. Ver la
sección 'Usando Sesiones' para más información.
</dd>

<dt>session_store</dt>
<dd>
Define el middleware de sesión Rack utilizado. Predeterminado a
Expand Down Expand Up @@ -2468,7 +2468,7 @@ información.
utilizar un array cuando se asignan múltiples valores:
<tt>set :static_cache_control, [:public, :max_age => 300]</tt>.
</dd>

<dt>threaded</dt>
<dd>
Si se establece en <tt> true </tt>, le dirá al servidor que use
Expand Down Expand Up @@ -3112,15 +3112,15 @@ rainbows -c rainbows.conf
Las siguientes versiones de Ruby son soportadas oficialmente:

<dl>
<dt>Ruby 2.3</dt>
<dt>Ruby 2.6</dt>
<dd>
2.3 Es totalmente compatible y recomendado. Actualmente no hay planes
2.6 Es totalmente compatible y recomendado. Actualmente no hay planes
soltar el apoyo oficial para ello.
</dd>

<dt>Rubinius</dt>
<dd>
Rubinius es oficialmente compatible (Rubinius> = 2.x). Se recomienda instalar la gema puma
Rubinius es oficialmente compatible (Rubinius> = 2.x). Se recomienda instalar la gema puma
<tt>gem install puma</tt>.
</dd>

Expand All @@ -3132,7 +3132,7 @@ Las siguientes versiones de Ruby son soportadas oficialmente:
</dd>
</dl>

Las versiones de Ruby anteriores a 2.2.2 ya no son compatibles con Sinatra 2.0 .
Las versiones de Ruby anteriores a 2.6 ya no son compatibles con Sinatra 3.0 .

Siempre le prestamos atención a las nuevas versiones de Ruby.

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3085,9 +3085,9 @@ rainbows -c rainbows.conf

The following Ruby versions are officially supported:
<dl>
<dt>Ruby 2.3</dt>
<dt>Ruby 2.6</dt>
<dd>
2.3 is fully supported and recommended. There are currently no plans to
2.6 is fully supported and recommended. There are currently no plans to
drop official support for it.
</dd>

Expand All @@ -3105,7 +3105,7 @@ The following Ruby versions are officially supported:
</dd>
</dl>

Versions of Ruby before 2.3 are no longer supported as of Sinatra 2.1.0.
Versions of Ruby before 2.6 are no longer supported as of Sinatra 3.0.0.

We also keep an eye on upcoming Ruby versions.

Expand Down