Hello community,

here is the log from the commit of package rubygem-gettext_i18n_rails for 
openSUSE:Factory checked in at 2020-03-07 21:38:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-gettext_i18n_rails"

Sat Mar  7 21:38:12 2020 rev:25 rq:773765 version:1.8.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails/rubygem-gettext_i18n_rails.changes
    2016-08-25 09:54:02.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails.new.26092/rubygem-gettext_i18n_rails.changes
 2020-03-07 21:38:14.696272408 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 14:40:50 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 1.8.1
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  gettext_i18n_rails-1.8.0.gem

New:
----
  gettext_i18n_rails-1.8.1.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-gettext_i18n_rails.spec ++++++
--- /var/tmp/diff_new_pack.5whjMP/_old  2020-03-07 21:38:17.216274109 +0100
+++ /var/tmp/diff_new_pack.5whjMP/_new  2020-03-07 21:38:17.260274139 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-gettext_i18n_rails
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-gettext_i18n_rails
-Version:        1.8.0
+Version:        1.8.1
 Release:        0
 %define mod_name gettext_i18n_rails
 %define mod_full_name %{mod_name}-%{version}
@@ -32,8 +32,8 @@
 BuildRequires:  %{ruby >= 2.1.0}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
-Url:            http://github.com/grosser/gettext_i18n_rails
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+URL:            http://github.com/grosser/gettext_i18n_rails
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Simple FastGettext Rails integration
 License:        MIT

++++++ gettext_i18n_rails-1.8.0.gem -> gettext_i18n_rails-1.8.1.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/gettext_i18n_rails/action_controller.rb 
new/lib/gettext_i18n_rails/action_controller.rb
--- old/lib/gettext_i18n_rails/action_controller.rb     2016-08-11 
20:19:02.000000000 +0200
+++ new/lib/gettext_i18n_rails/action_controller.rb     2019-12-10 
23:13:03.000000000 +0100
@@ -1,8 +1,19 @@
-class ActionController::Base
-  def set_gettext_locale
-    requested_locale = params[:locale] || session[:locale] || cookies[:locale] 
||  request.env['HTTP_ACCEPT_LANGUAGE'] || I18n.default_locale
-    locale = FastGettext.set_locale(requested_locale)
-    session[:locale] = locale
-    I18n.locale = locale # some weird overwriting in action-controller makes 
this necessary ... see I18nProxy
+# Autoloading in initializers is deprecated on rails 6.0.  This delays 
initialization using the on_load
+# hooks, but does not change behaviour for existing rails versions.
+path_controller = ->() {
+  class ::ActionController::Base
+    def set_gettext_locale
+      requested_locale = params[:locale] || session[:locale] || 
cookies[:locale] ||  request.env['HTTP_ACCEPT_LANGUAGE'] || I18n.default_locale
+      locale = FastGettext.set_locale(requested_locale)
+      session[:locale] = locale
+      I18n.locale = locale # some weird overwriting in action-controller makes 
this necessary ... see I18nProxy
+    end
   end
-end
+}
+if defined?(Rails) && Rails::VERSION::MAJOR >= 6
+  ActiveSupport.on_load(:action_controller_base) do
+    path_controller.call
+  end
+else
+  path_controller.call
+end
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/gettext_i18n_rails/version.rb 
new/lib/gettext_i18n_rails/version.rb
--- old/lib/gettext_i18n_rails/version.rb       2016-08-11 20:19:02.000000000 
+0200
+++ new/lib/gettext_i18n_rails/version.rb       2019-12-10 23:13:03.000000000 
+0100
@@ -1,3 +1,3 @@
 module GettextI18nRails
-  Version = VERSION = '1.8.0'
+  Version = VERSION = '1.8.1'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-08-11 20:19:02.000000000 +0200
+++ new/metadata        2019-12-10 23:13:03.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: gettext_i18n_rails
 version: !ruby/object:Gem::Version
-  version: 1.8.0
+  version: 1.8.1
 platform: ruby
 authors:
 - Michael Grosser
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-08-11 00:00:00.000000000 Z
+date: 2019-12-10 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: fast_gettext
@@ -224,8 +224,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
 summary: Simple FastGettext Rails integration.


Reply via email to