Hello community,
here is the log from the commit of package rubygem-devise-i18n for
openSUSE:Factory checked in at 2020-10-05 19:30:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-devise-i18n (Old)
and /work/SRC/openSUSE:Factory/.rubygem-devise-i18n.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-devise-i18n"
Mon Oct 5 19:30:57 2020 rev:38 rq:838029 version:1.9.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-devise-i18n/rubygem-devise-i18n.changes
2020-05-11 13:40:42.697037714 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-devise-i18n.new.4249/rubygem-devise-i18n.changes
2020-10-05 19:31:01.264669231 +0200
@@ -1,0 +2,6 @@
+Fri Sep 25 13:50:50 UTC 2020 - Stephan Kulow <[email protected]>
+
+updated to version 1.9.2
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
devise-i18n-1.9.1.gem
New:
----
devise-i18n-1.9.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-devise-i18n.spec ++++++
--- /var/tmp/diff_new_pack.O4jpEt/_old 2020-10-05 19:31:02.400674022 +0200
+++ /var/tmp/diff_new_pack.O4jpEt/_new 2020-10-05 19:31:02.400674022 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-devise-i18n
-Version: 1.9.1
+Version: 1.9.2
Release: 0
%define mod_name devise-i18n
%define mod_full_name %{mod_name}-%{version}
++++++ devise-i18n-1.9.1.gem -> devise-i18n-1.9.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2020-03-29 01:39:44.000000000 +0100
+++ new/README.md 2020-08-24 02:20:29.000000000 +0200
@@ -13,9 +13,37 @@
gem 'devise-i18n'
```
-Assuming you have _not_ previously generated Devise's views into your project,
that's all you need to do. If you _have_ previously done this, you will need to
regenerate your views (see the next section) and then reapply whatever
customizations that made you do this in the first place.
+Assuming you have _not_ previously generated Devise's views into your project,
that's all you need to do. If you _have_ previously done this, you will need to
regenerate your views (see "Customizing views" below) and then reapply whatever
customizations that made you do this in the first place.
-NOTE: If you have the ```simple_form``` gem in your Gemfile, this command will
generate the corresponding views using the simple_form form builder.
+## Setting your locale
+
+You will need to set a locale in your application as described in the [Rails
Internationalization Guide](https://guides.rubyonrails.org/i18n.html).
+
+If you are setting the locale per request (because your application supports
multiple locales), the suggested code in that guide (using `I18n.with_locale`
inside an `around_action`) will not work properly with devise-i18n. Due to [a
bug in warden](https://github.com/wardencommunity/warden/issues/180), some
error messages will not be translated. Instead, you can set the locale in a
`before_action`:
+
+```ruby
+before_action do
+ I18n.locale = :es # Or whatever logic you use to choose.
+end
+```
+
+or in middleware:
+
+```ruby
+class LocaleMiddleware
+ def initialize(app)
+ @app = app
+ end
+
+ def call(env)
+ I18n.locale = :es # Or whatever logic you use to choose.
+ status, headers, body = @app.call(env)
+ end
+end
+```
+```ruby
+config.middleware.use ::LocaleMiddleware
+```
## Customizing views
@@ -26,6 +54,8 @@
```
You should only do this if you really need to, though, because doing this will
make it so that you won't get the updated views should they change in a future
version of devise-i18n. To "uncustomize" the views, just delete them, and your
app will go back to grabbing devise-i18n's default views.
+If you have ```simple_form``` in your Gemfile, this command will generate the
corresponding views using the simple_form form builder.
+
## Scoped views
If you need to use scoped views (for example, if you have different ones for
users and admins), you can include the scope in this command.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2020-03-29 01:39:44.000000000 +0100
+++ new/VERSION 2020-08-24 02:20:29.000000000 +0200
@@ -1 +1 @@
-1.9.1
+1.9.2
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-03-29 01:39:44.000000000 +0100
+++ new/metadata 2020-08-24 02:20:29.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: devise-i18n
version: !ruby/object:Gem::Version
- version: 1.9.1
+ version: 1.9.2
platform: ruby
authors:
- Christopher Dell
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2020-03-29 00:00:00.000000000 Z
+date: 2020-08-24 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: devise
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/es-MX.yml new/rails/locales/es-MX.yml
--- old/rails/locales/es-MX.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/es-MX.yml 2020-08-24 02:20:29.000000000 +0200
@@ -57,8 +57,8 @@
message: Te estamos contactando para notificarte que tu email ha
cambiado a %{email}
subject: El email cambió
password_change:
- greeting: "¡Hola, %{recipient}!"
- message: Le estamos contactando para notificarle que su contraseña ha
cambiado
+ greeting: "¡Hola %{recipient}!"
+ message: Lo estamos contactando para notificarle que su contraseña ha
cambiado.
subject: Contraseña cambiada
reset_password_instructions:
action: Cambiar mi contraseña
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/es.yml new/rails/locales/es.yml
--- old/rails/locales/es.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/es.yml 2020-08-24 02:20:29.000000000 +0200
@@ -57,8 +57,8 @@
message: Estamos contactando contigo para notificarte que tu email ha
sido cambiado a %{email}.
subject: Email cambiado
password_change:
- greeting: Hola %{recipient}!
- message: Le estamos contactando para notificarle que su contraseña ha
sido cambiada.
+ greeting: "¡Hola %{recipient}!"
+ message: Lo estamos contactando para notificarle que su contraseña ha
sido cambiada.
subject: Contraseña cambiada
reset_password_instructions:
action: Cambiar mi contraseña
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/fr.yml new/rails/locales/fr.yml
--- old/rails/locales/fr.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/fr.yml 2020-08-24 02:20:29.000000000 +0200
@@ -10,7 +10,7 @@
current_sign_in_at: Date de la connexion actuelle
current_sign_in_ip: IP de la connexion actuelle
email: Courriel
- encrypted_password: Mot de passe crypté
+ encrypted_password: Mot de passe chiffré
failed_attempts: Tentatives échouées
last_sign_in_at: Date de la dernière connexion
last_sign_in_ip: IP de la dernière connexion
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/it.yml new/rails/locales/it.yml
--- old/rails/locales/it.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/it.yml 2020-08-24 02:20:29.000000000 +0200
@@ -54,7 +54,7 @@
subject: Istruzioni per la conferma
email_changed:
greeting: Ciao %{recipient}!
- message:
+ message: Ti stiamo contattando per notificarti che la tua email è
stata cambiata in %{email}.
subject: Email modificata
password_change:
greeting: Ciao %{recipient}!
@@ -109,7 +109,7 @@
signed_up_but_unconfirmed: Ti è stato inviato un messaggio con un link
di conferma. Ti invitiamo a visitare il link per attivare il tuo account.
update_needs_confirmation: Il tuo account è stato aggiornato, ma
dobbiamo verificare la tua email. Ti invitiamo a consultare la tua email e
cliccare sul link di conferma.
updated: Il tuo account è stato aggiornato.
- updated_but_not_signed_in:
+ updated_but_not_signed_in: Il tuo account è stato aggiornato con
successo, ma dato che la tua password è cambiata, devi accedere di nuovo.
sessions:
already_signed_out: Sei uscito correttamente.
new:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/pt-BR.yml new/rails/locales/pt-BR.yml
--- old/rails/locales/pt-BR.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/pt-BR.yml 2020-08-24 02:20:29.000000000 +0200
@@ -37,10 +37,10 @@
failure:
already_authenticated: Você já está autenticado.
inactive: A sua conta ainda não foi ativada.
- invalid: Inválido %{authentication_keys} ou senha.
+ invalid: "%{authentication_keys} ou senha inválidos."
last_attempt: Você tem mais uma única tentativa antes de sua conta ser
bloqueada.
locked: A sua conta está bloqueada.
- not_found_in_database: Inválido %{authentication_keys} ou senha.
+ not_found_in_database: "%{authentication_keys} ou senha inválidos."
timeout: A sua sessão expirou, por favor, faça login novamente para
continuar.
unauthenticated: Para continuar, faça login ou registre-se.
unconfirmed: Antes de continuar, confirme a sua conta.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rails/locales/ru.yml new/rails/locales/ru.yml
--- old/rails/locales/ru.yml 2020-03-29 01:39:44.000000000 +0100
+++ new/rails/locales/ru.yml 2020-08-24 02:20:29.000000000 +0200
@@ -51,7 +51,7 @@
mailer:
confirmation_instructions:
action: Активировать
- greeting: Здравствуйте, %{recipient} !
+ greeting: Здравствуйте, %{recipient}!
instruction: 'Вы можете активировать свою учетную запись, нажав ссылку
снизу:'
subject: Инструкции по подтверждению учетной записи
email_changed:
@@ -100,7 +100,7 @@
currently_waiting_confirmation_for_email: 'Ожидается подтверждение
адреса E-mail: %{email}'
leave_blank_if_you_don_t_want_to_change_it: оставьте поле пустым, если
не хотите его менять
title: Редактировать %{resource}
- unhappy: Разочарованы
+ unhappy: Разочарованы?
update: Обновить
we_need_your_current_password_to_confirm_your_changes: введите текущий
пароль для подтверждения изменений
new: