Hello community,

here is the log from the commit of package rubygem-i18n for openSUSE:Factory 
checked in at 2017-08-16 16:11:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-i18n (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-i18n.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-i18n"

Wed Aug 16 16:11:49 2017 rev:14 rq:514196 version:0.8.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-i18n/rubygem-i18n.changes        
2017-06-02 10:34:04.765571386 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-i18n.new/rubygem-i18n.changes   
2017-08-16 16:11:51.533004857 +0200
@@ -1,0 +2,6 @@
+Thu Aug  3 09:34:25 UTC 2017 - [email protected]
+
+- updated to version 0.8.6
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  i18n-0.8.4.gem

New:
----
  i18n-0.8.6.gem

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

Other differences:
------------------
++++++ rubygem-i18n.spec ++++++
--- /var/tmp/diff_new_pack.UEur22/_old  2017-08-16 16:11:52.196911666 +0200
+++ /var/tmp/diff_new_pack.UEur22/_new  2017-08-16 16:11:52.204910544 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-i18n
-Version:        0.8.4
+Version:        0.8.6
 Release:        0
 %define mod_name i18n
 %define mod_full_name %{mod_name}-%{version}

++++++ i18n-0.8.4.gem -> i18n-0.8.6.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-3.2.x.lock 
new/gemfiles/Gemfile.rails-3.2.x.lock
--- old/gemfiles/Gemfile.rails-3.2.x.lock       2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-3.2.x.lock       1970-01-01 01:00:00.000000000 
+0100
@@ -1,32 +0,0 @@
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    activesupport (3.2.22.5)
-      i18n (~> 0.6, >= 0.6.4)
-      multi_json (~> 1.0)
-    metaclass (0.0.4)
-    minitest (5.10.1)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    multi_json (1.12.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport (~> 3.2.0)
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-4.0.x.lock 
new/gemfiles/Gemfile.rails-4.0.x.lock
--- old/gemfiles/Gemfile.rails-4.0.x.lock       2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-4.0.x.lock       1970-01-01 01:00:00.000000000 
+0100
@@ -1,37 +0,0 @@
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    activesupport (4.0.13)
-      i18n (~> 0.6, >= 0.6.9)
-      minitest (~> 4.2)
-      multi_json (~> 1.3)
-      thread_safe (~> 0.1)
-      tzinfo (~> 0.3.37)
-    metaclass (0.0.4)
-    minitest (4.7.5)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    multi_json (1.12.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-    thread_safe (0.3.6)
-    tzinfo (0.3.53)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport (~> 4.0.0)
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-4.1.x.lock 
new/gemfiles/Gemfile.rails-4.1.x.lock
--- old/gemfiles/Gemfile.rails-4.1.x.lock       2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-4.1.x.lock       1970-01-01 01:00:00.000000000 
+0100
@@ -1,38 +0,0 @@
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    activesupport (4.1.16)
-      i18n (~> 0.6, >= 0.6.9)
-      json (~> 1.7, >= 1.7.7)
-      minitest (~> 5.1)
-      thread_safe (~> 0.1)
-      tzinfo (~> 1.1)
-    json (1.8.6)
-    metaclass (0.0.4)
-    minitest (5.10.1)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-    thread_safe (0.3.6)
-    tzinfo (1.2.2)
-      thread_safe (~> 0.1)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport (~> 4.1.0)
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-4.2.x.lock 
new/gemfiles/Gemfile.rails-4.2.x.lock
--- old/gemfiles/Gemfile.rails-4.2.x.lock       2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-4.2.x.lock       1970-01-01 01:00:00.000000000 
+0100
@@ -1,36 +0,0 @@
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    activesupport (4.2.8)
-      i18n (~> 0.7)
-      minitest (~> 5.1)
-      thread_safe (~> 0.3, >= 0.3.4)
-      tzinfo (~> 1.1)
-    metaclass (0.0.4)
-    minitest (5.10.1)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-    thread_safe (0.3.6)
-    tzinfo (1.2.2)
-      thread_safe (~> 0.1)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport (~> 4.2.0)
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-5.0.x.lock 
new/gemfiles/Gemfile.rails-5.0.x.lock
--- old/gemfiles/Gemfile.rails-5.0.x.lock       2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-5.0.x.lock       1970-01-01 01:00:00.000000000 
+0100
@@ -1,37 +0,0 @@
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    activesupport (5.0.2)
-      concurrent-ruby (~> 1.0, >= 1.0.2)
-      i18n (~> 0.7)
-      minitest (~> 5.1)
-      tzinfo (~> 1.1)
-    concurrent-ruby (1.0.5)
-    metaclass (0.0.4)
-    minitest (5.10.1)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-    thread_safe (0.3.6)
-    tzinfo (1.2.2)
-      thread_safe (~> 0.1)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport (~> 5.0.0)
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/Gemfile.rails-master.lock 
new/gemfiles/Gemfile.rails-master.lock
--- old/gemfiles/Gemfile.rails-master.lock      2017-05-31 03:43:51.000000000 
+0200
+++ new/gemfiles/Gemfile.rails-master.lock      1970-01-01 01:00:00.000000000 
+0100
@@ -1,43 +0,0 @@
-GIT
-  remote: git://github.com/rails/rails.git
-  revision: 49aa974ec8b15721d53b3b6abea88bd6ba433a68
-  branch: master
-  specs:
-    activesupport (5.1.0.alpha)
-      concurrent-ruby (~> 1.0, >= 1.0.2)
-      i18n (~> 0.7)
-      minitest (~> 5.1)
-      tzinfo (~> 1.1)
-
-PATH
-  remote: ..
-  specs:
-    i18n (0.8.2)
-
-GEM
-  remote: https://rubygems.org/
-  specs:
-    concurrent-ruby (1.0.5)
-    metaclass (0.0.4)
-    minitest (5.10.1)
-    mocha (1.2.1)
-      metaclass (~> 0.0.1)
-    rake (12.0.0)
-    test_declarative (0.0.5)
-    thread_safe (0.3.6)
-    tzinfo (1.2.2)
-      thread_safe (~> 0.1)
-
-PLATFORMS
-  ruby
-
-DEPENDENCIES
-  activesupport!
-  i18n!
-  minitest
-  mocha
-  rake
-  test_declarative
-
-BUNDLED WITH
-   1.14.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/backend/base.rb new/lib/i18n/backend/base.rb
--- old/lib/i18n/backend/base.rb        2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n/backend/base.rb        2017-07-10 07:39:13.000000000 +0200
@@ -136,14 +136,14 @@
         # - It will pick the :other subkey otherwise.
         # - It will pick the :zero subkey in the special case where count is
         #   equal to 0 and there is a :zero subkey present. This behaviour is
-        #   not stand with regards to the CLDR pluralization rules.
+        #   not standard with regards to the CLDR pluralization rules.
         # Other backends can implement more flexible or complex pluralization 
rules.
         def pluralize(locale, entry, count)
           return entry unless entry.is_a?(Hash) && count
 
           key = :zero if count == 0 && entry.has_key?(:zero)
           key ||= count == 1 ? :one : :other
-          raise InvalidPluralizationData.new(entry, count) unless 
entry.has_key?(key)
+          raise InvalidPluralizationData.new(entry, count, key) unless 
entry.has_key?(key)
           entry[key]
         end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/backend/fallbacks.rb 
new/lib/i18n/backend/fallbacks.rb
--- old/lib/i18n/backend/fallbacks.rb   2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n/backend/fallbacks.rb   2017-07-10 07:39:13.000000000 +0200
@@ -36,11 +36,11 @@
       # it is evaluated last after all the fallback locales have been tried.
       def translate(locale, key, options = {})
         return super unless options.fetch(:fallback, true)
-        return super if (@fallback_locked ||= false)
+        return super if options[:fallback_in_progress]
         default = extract_non_symbol_default!(options) if options[:default]
 
         begin
-          @fallback_locked = true
+          options[:fallback_in_progress] = true
           I18n.fallbacks[locale].each do |fallback|
             begin
               catch(:exception) do
@@ -52,7 +52,7 @@
             end
           end
         ensure
-          @fallback_locked = false
+          options.delete(:fallback_in_progress)
         end
 
         return super(locale, nil, options.merge(:default => default)) if 
default
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/backend/pluralization.rb 
new/lib/i18n/backend/pluralization.rb
--- old/lib/i18n/backend/pluralization.rb       2017-05-31 03:43:51.000000000 
+0200
+++ new/lib/i18n/backend/pluralization.rb       2017-07-10 07:39:13.000000000 
+0200
@@ -32,7 +32,7 @@
         pluralizer = pluralizer(locale)
         if pluralizer.respond_to?(:call)
           key = count == 0 && entry.has_key?(:zero) ? :zero : 
pluralizer.call(count)
-          raise InvalidPluralizationData.new(entry, count) unless 
entry.has_key?(key)
+          raise InvalidPluralizationData.new(entry, count, key) unless 
entry.has_key?(key)
           entry[key]
         else
           super
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/exceptions.rb new/lib/i18n/exceptions.rb
--- old/lib/i18n/exceptions.rb  2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n/exceptions.rb  2017-07-10 07:39:13.000000000 +0200
@@ -71,10 +71,10 @@
   end
 
   class InvalidPluralizationData < ArgumentError
-    attr_reader :entry, :count
-    def initialize(entry, count)
-      @entry, @count = entry, count
-      super "translation data #{entry.inspect} can not be used with :count => 
#{count}"
+    attr_reader :entry, :count, :key
+    def initialize(entry, count, key)
+      @entry, @count, @key = entry, count, key
+      super "translation data #{entry.inspect} can not be used with :count => 
#{count}. key '#{key}' is missing."
     end
   end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/tests/localization/procs.rb 
new/lib/i18n/tests/localization/procs.rb
--- old/lib/i18n/tests/localization/procs.rb    2017-05-31 03:43:51.000000000 
+0200
+++ new/lib/i18n/tests/localization/procs.rb    2017-07-10 07:39:13.000000000 
+0200
@@ -72,7 +72,7 @@
               when ::Date
                 arg.strftime('%a, %d %b %Y')
               when Hash
-                arg.delete(:fallback)
+                arg.delete(:fallback_in_progress)
                 arg.inspect
               else
                 arg.inspect
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/tests/procs.rb new/lib/i18n/tests/procs.rb
--- old/lib/i18n/tests/procs.rb 2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n/tests/procs.rb 2017-07-10 07:39:13.000000000 +0200
@@ -48,7 +48,7 @@
 
 
       def self.filter_args(*args)
-        args.map {|arg| arg.delete(:fallback) if arg.is_a?(Hash) ; arg 
}.inspect
+        args.map {|arg| arg.delete(:fallback_in_progress) if arg.is_a?(Hash) ; 
arg }.inspect
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n/version.rb new/lib/i18n/version.rb
--- old/lib/i18n/version.rb     2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n/version.rb     2017-07-10 07:39:13.000000000 +0200
@@ -1,3 +1,3 @@
 module I18n
-  VERSION = "0.8.4"
+  VERSION = "0.8.6"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/i18n.rb new/lib/i18n.rb
--- old/lib/i18n.rb     2017-05-31 03:43:51.000000000 +0200
+++ new/lib/i18n.rb     2017-07-10 07:39:13.000000000 +0200
@@ -9,7 +9,7 @@
   autoload :Locale,  'i18n/locale'
   autoload :Tests,   'i18n/tests'
 
-  RESERVED_KEYS = [:scope, :default, :separator, :resolve, :object, :fallback, 
:format, :cascade, :throw, :raise, :deep_interpolation]
+  RESERVED_KEYS = [:scope, :default, :separator, :resolve, :object, :fallback, 
:fallback_in_progress, :format, :cascade, :throw, :raise, :deep_interpolation]
   RESERVED_KEYS_PATTERN = /%\{(#{RESERVED_KEYS.join("|")})\}/
 
   module Base
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-05-31 03:43:51.000000000 +0200
+++ new/metadata        2017-07-10 07:39:13.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: i18n
 version: !ruby/object:Gem::Version
-  version: 0.8.4
+  version: 0.8.6
 platform: ruby
 authors:
 - Sven Fuchs
@@ -12,7 +12,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-05-31 00:00:00.000000000 Z
+date: 2017-07-10 00:00:00.000000000 Z
 dependencies: []
 description: New wave Internationalization support for Ruby.
 email: [email protected]
@@ -23,17 +23,11 @@
 - MIT-LICENSE
 - README.md
 - gemfiles/Gemfile.rails-3.2.x
-- gemfiles/Gemfile.rails-3.2.x.lock
 - gemfiles/Gemfile.rails-4.0.x
-- gemfiles/Gemfile.rails-4.0.x.lock
 - gemfiles/Gemfile.rails-4.1.x
-- gemfiles/Gemfile.rails-4.1.x.lock
 - gemfiles/Gemfile.rails-4.2.x
-- gemfiles/Gemfile.rails-4.2.x.lock
 - gemfiles/Gemfile.rails-5.0.x
-- gemfiles/Gemfile.rails-5.0.x.lock
 - gemfiles/Gemfile.rails-master
-- gemfiles/Gemfile.rails-master.lock
 - lib/i18n.rb
 - lib/i18n/backend.rb
 - lib/i18n/backend/base.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/i18n/exceptions_test.rb 
new/test/i18n/exceptions_test.rb
--- old/test/i18n/exceptions_test.rb    2017-05-31 03:43:51.000000000 +0200
+++ new/test/i18n/exceptions_test.rb    2017-07-10 07:39:13.000000000 +0200
@@ -32,16 +32,19 @@
     end
   end
 
-  test "InvalidPluralizationData stores entry and count" do
+  test "InvalidPluralizationData stores entry, count and key" do
     force_invalid_pluralization_data do |exception|
-      assert_equal [:bar], exception.entry
+      assert_equal({:other => "bar"}, exception.entry)
       assert_equal 1, exception.count
+      assert_equal :one, exception.key
     end
   end
 
-  test "InvalidPluralizationData message contains count and data" do
+  test "InvalidPluralizationData message contains count, data and missing key" 
do
     force_invalid_pluralization_data do |exception|
-      assert_equal 'translation data [:bar] can not be used with :count => 1', 
exception.message
+      assert_match '1', exception.message
+      assert_match '{:other=>"bar"}', exception.message
+      assert_match 'one', exception.message
     end
   end
 
@@ -71,7 +74,7 @@
       assert_equal 'reserved key :scope used in "%{scope}"', exception.message
     end
   end
-  
+
   test "MissingTranslationData#new can be initialized with just two arguments" 
do
     assert I18n::MissingTranslationData.new('en', 'key')
   end
@@ -92,7 +95,7 @@
     end
 
     def force_invalid_pluralization_data
-      store_translations('de', :foo => [:bar])
+      store_translations('de', :foo => { :other => 'bar' })
       I18n.translate(:foo, :count => 1, :locale => :de)
     rescue I18n::ArgumentError => e
       block_given? ? yield(e) : raise(e)


Reply via email to