Hello community,

here is the log from the commit of package rubygem-fast_gettext for 
openSUSE:Factory checked in at 2017-12-12 21:17:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-fast_gettext"

Tue Dec 12 21:17:23 2017 rev:23 rq:554628 version:1.6.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes    
    2017-09-07 22:10:10.648654892 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes
   2017-12-12 21:17:24.994511581 +0100
@@ -1,0 +2,8 @@
+Sun Dec  3 19:15:45 UTC 2017 - [email protected]
+
+- updated to version 1.6.0
+ see installed CHANGELOG
+
+  1.6.0 -- Remove restrictions around yaml file names
+
+-------------------------------------------------------------------

Old:
----
  fast_gettext-1.5.1.gem

New:
----
  fast_gettext-1.6.0.gem

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

Other differences:
------------------
++++++ rubygem-fast_gettext.spec ++++++
--- /var/tmp/diff_new_pack.v3OHeM/_old  2017-12-12 21:17:26.534437243 +0100
+++ /var/tmp/diff_new_pack.v3OHeM/_new  2017-12-12 21:17:26.542436857 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-fast_gettext
-Version:        1.5.1
+Version:        1.6.0
 Release:        0
 %define mod_name fast_gettext
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/grosser/fast_gettext
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        A simple, fast, memory-efficient and threadsafe implementation 
of
 License:        MIT and Ruby

++++++ fast_gettext-1.5.1.gem -> fast_gettext-1.6.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG new/CHANGELOG
--- old/CHANGELOG       2017-08-15 17:08:44.000000000 +0200
+++ new/CHANGELOG       2017-12-02 16:49:17.000000000 +0100
@@ -1,3 +1,4 @@
+1.6.0 -- Remove restrictions around yaml file names
 1.1.0 -- translations are no longer eager loaded for improved startup 
performance, pass `eager_load: true` to preload for example in preforked web 
server
 1.0.0 -- do not enforce attr_accessible unless ProtectedAttributes are loaded
 0.9.0 -- reworked internals of caching to be plugable
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/fast_gettext/translation_repository/yaml.rb 
new/lib/fast_gettext/translation_repository/yaml.rb
--- old/lib/fast_gettext/translation_repository/yaml.rb 2017-08-15 
17:08:44.000000000 +0200
+++ new/lib/fast_gettext/translation_repository/yaml.rb 2017-12-02 
16:49:17.000000000 +0100
@@ -38,8 +38,8 @@
       def find_and_store_files(options)
         @files = {}
         path = options[:path] || 'config/locales'
-        Dir["#{path}/??.yml"].each do |yaml_file|
-          locale = yaml_file.match(/([a-z]{2})\.yml$/)[1]
+        Dir["#{path}/*.yml"].each do |yaml_file|
+          locale = File.basename(yaml_file, '.yml')
           @files[locale] = load_yaml(yaml_file, locale)
         end
       end
@@ -51,7 +51,7 @@
       # Given a yaml file return a hash of key -> translation
       def load_yaml(file, locale)
         yaml = YAML.load_file(file)
-        yaml_hash_to_dot_notation(yaml[locale])
+        yaml_hash_to_dot_notation(yaml.fetch(locale))
       end
 
       def yaml_hash_to_dot_notation(yaml_hash)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/fast_gettext/version.rb 
new/lib/fast_gettext/version.rb
--- old/lib/fast_gettext/version.rb     2017-08-15 17:08:44.000000000 +0200
+++ new/lib/fast_gettext/version.rb     2017-12-02 16:49:17.000000000 +0100
@@ -1,3 +1,3 @@
 module FastGettext
-  VERSION = Version = '1.5.1'
+  VERSION = Version = '1.6.0'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-08-15 17:08:44.000000000 +0200
+++ new/metadata        2017-12-02 16:49:17.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: fast_gettext
 version: !ruby/object:Gem::Version
-  version: 1.5.1
+  version: 1.6.0
 platform: ruby
 authors:
 - Michael Grosser
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-08-15 00:00:00.000000000 Z
+date: 2017-12-02 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake


Reply via email to