commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2020-10-03 18:51:29 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.4249 (New) Package is "rubygem-fast_gettext" Sat Oct 3 18:51:29 2020 rev:30 rq:838034 version:2.0.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2020-02-19 12:39:17.511480382 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.4249/rubygem-fast_gettext.changes 2020-10-03 18:51:31.945219719 +0200 @@ -1,0 +2,7 @@ +Fri Sep 25 13:56:14 UTC 2020 - Stephan Kulow + +updated to version 2.0.3 + see installed CHANGELOG + + +--- Old: fast_gettext-2.0.2.gem New: fast_gettext-2.0.3.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.gca4hk/_old 2020-10-03 18:51:32.505220091 +0200 +++ /var/tmp/diff_new_pack.gca4hk/_new 2020-10-03 18:51:32.505220091 +0200 @@ -24,12 +24,12 @@ # Name: rubygem-fast_gettext -Version:2.0.2 +Version:2.0.3 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.3.0} +BuildRequires: %{ruby >= 2.4.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 URL:https://github.com/grosser/fast_gettext ++ fast_gettext-2.0.2.gem -> fast_gettext-2.0.3.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2020-02-05 18:15:41.0 +0100 +++ new/Readme.md 2020-05-26 19:49:33.0 +0200 @@ -126,7 +126,7 @@ p_('Context', 'not-found') == 'not-found' ``` - `s_()` or `sgetext()`: translation with namespace + `s_()` or `sgettext()`: translation with namespace ```ruby s_('File|Open') == _('File|Open') == "öffnen" @@ -153,13 +153,13 @@ `N_()` and `Nn_()`: make dynamic translations available to the parser. -In many instances, your strings will not be found the by the ruby-parse. These methods +In many instances, your strings will not be found by the ruby parsing. These methods allow for those strings to be discovered. ``` N_("active"); N_("inactive"); N_("paused") # possible value of status for parser to find. Nn_("active", "inactive", "paused")# alternative method -_("Your account is %{account_state}.") % { account_state: status } +_("Your account is %{account_state}.") % { account_state: _(status) } ``` @@ -180,7 +180,7 @@ ### Database [Example migration for ActiveRecord](http://github.com/grosser/fast_gettext/blob/master/examples/db/migration.rb) -The default plural separator is `` but you may overwrite it (or suggest a better one..). +The default plural separator is `` but you may overwrite it (or suggest a better one...). This is usable with any model DataMapper/Sequel or any other(non-database) backend, the only thing you need to do is respond to the self.translation(key, locale) call. If you want to use your own models, have a look at the [default models](http://github.com/grosser/fast_gettext/tree/master/lib/fast_gettext/translation_repository/db_models) to see what you want/need to implement. @@ -305,7 +305,7 @@ A lambda or anything that responds to `call` will do as callback. A good starting point may be `examples/missing_translations_logger.rb`. ### Plugins -Want a xml version ? +Want an xml version? Write your own TranslationRepository! ```Ruby @@ -362,7 +362,7 @@ Block defaults -All the translation methods (includ MultiDomain) support a block default, a feature not provided by ruby-gettext. When a translation is +All the translation methods (including MultiDomain) support a block default, a feature not provided by ruby-gettext. When a translation is not found, if a block is provided the block is always returned. Otherwise, a key is returned. Methods doing pluralization will attempt a simple translation of alternate keys. ```ruby 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/storage.rb new/lib/fast_gettext/storage.rb --- old/lib/fast_gettext/storage.rb 2020-02-05 18:15:41.0 +0100 +++ new/lib/fast_gettext/storage.rb 2020-05-26 19:49:33.0 +0200 @@ -172,7 +172,7 @@ locales = locales.to_s.gsub(/\s/, '') found = [[]] locales.split(',').each
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2020-02-19 12:39:14 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.26092 (New) Package is "rubygem-fast_gettext" Wed Feb 19 12:39:14 2020 rev:29 rq:773758 version:2.0.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2019-10-21 12:30:06.696077066 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.26092/rubygem-fast_gettext.changes 2020-02-19 12:39:17.511480382 +0100 @@ -1,0 +2,6 @@ +Mon Feb 10 14:33:26 UTC 2020 - Stephan Kulow + +- updated to version 2.0.2 + see installed CHANGELOG + +--- Old: fast_gettext-2.0.1.gem New: fast_gettext-2.0.2.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.z5sXoq/_old 2020-02-19 12:39:18.275481853 +0100 +++ /var/tmp/diff_new_pack.z5sXoq/_new 2020-02-19 12:39:18.279481860 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2019 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 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:2.0.1 +Version:2.0.2 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 2.3.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:https://github.com/grosser/fast_gettext +URL:https://github.com/grosser/fast_gettext Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:A simple, fast, memory-efficient and threadsafe implementation of ++ fast_gettext-2.0.1.gem -> fast_gettext-2.0.2.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/fast_gettext/translation_repository/db.rb new/lib/fast_gettext/translation_repository/db.rb --- old/lib/fast_gettext/translation_repository/db.rb 2019-04-21 02:49:32.0 +0200 +++ new/lib/fast_gettext/translation_repository/db.rb 2020-02-05 18:15:41.0 +0100 @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'active_record' module FastGettext module TranslationRepository # Responsibility: @@ -51,6 +50,7 @@ end def self.require_models +require 'active_record' folder = "fast_gettext/translation_repository/db_models" require "#{folder}/translation_key" require "#{folder}/translation_text" 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 2019-04-21 02:49:32.0 +0200 +++ new/lib/fast_gettext/version.rb 2020-02-05 18:15:41.0 +0100 @@ -1,5 +1,5 @@ # frozen_string_literal: true module FastGettext - VERSION = Version = '2.0.1' # rubocop:disable Naming/ConstantName + VERSION = Version = '2.0.2' # rubocop:disable Naming/ConstantName end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2019-04-21 02:49:32.0 +0200 +++ new/metadata2020-02-05 18:15:41.0 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 2.0.1 + version: 2.0.2 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2019-04-21 00:00:00.0 Z +date: 2020-02-05 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -202,8 +202,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.6 +rubygems_version: 3.0.3 signing_key: specification_version: 4 summary: A simple, fast, memory-efficient and threadsafe implementation of GetText
commit rubygem-fast_gettext for openSUSE:Factory
binLbAWPThKyZ.bin Description: Binary data
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2019-06-12 13:00:18 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.4811 (New) Package is "rubygem-fast_gettext" Wed Jun 12 13:00:18 2019 rev:27 rq:705988 version:2.0.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2019-01-24 14:00:41.664237609 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.4811/rubygem-fast_gettext.changes 2019-06-12 13:00:22.185313091 +0200 @@ -1,0 +2,6 @@ +Sun May 5 09:25:21 UTC 2019 - Stephan Kulow + +- updated to version 2.0.1 + see installed CHANGELOG + +--- Old: fast_gettext-2.0.0.gem New: fast_gettext-2.0.1.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.rYFCt2/_old 2019-06-12 13:00:22.941312924 +0200 +++ /var/tmp/diff_new_pack.rYFCt2/_new 2019-06-12 13:00:22.945312923 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:2.0.0 +Version:2.0.1 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-2.0.0.gem -> fast_gettext-2.0.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2018-12-21 17:52:20.0 +0100 +++ new/Readme.md 2019-04-21 02:49:32.0 +0200 @@ -95,8 +95,8 @@ ### 4. Start translating -FastGetText supports all the translation methods of [ruby-gettext](http://github.com/ruby-gettext/gettext) with added support for block defaults. -(to get `*gettext` methods, use `FastGetText::TranslationAliased`) +FastGettext supports all the translation methods of [ruby-gettext](http://github.com/ruby-gettext/gettext) with added support for block defaults. +(to get `*gettext` methods, use `FastGettext::TranslationAliased`) `_()` or `gettext()`: basic translation @@ -116,7 +116,7 @@ You'll often want to interpolate the results of `n_()` using ruby builtin `%` operator. ```ruby -n_('Car', '#{n} Cars', 2) % { n: count } == '2 Autos' +n_('Car', '%{n} Cars', 2) % { n: count } == '2 Autos' ``` `p_()` or `pgettext()`: translation with context @@ -159,7 +159,7 @@ ``` N_("active"); N_("inactive"); N_("paused") # possible value of status for parser to find. Nn_("active", "inactive", "paused")# alternative method -_("Your account is #{account_state}.") % { account_state: status } +_("Your account is %{account_state}.") % { account_state: status } ``` 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/mo_file.rb new/lib/fast_gettext/mo_file.rb --- old/lib/fast_gettext/mo_file.rb 2018-12-21 17:52:20.0 +0100 +++ new/lib/fast_gettext/mo_file.rb 2019-04-21 02:49:32.0 +0200 @@ -11,6 +11,7 @@ # file => path or FastGettext::GetText::MOFile def initialize(file, options = {}) @filename = file + @data = nil load_data if options[:eager_load] end 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 2018-12-21 17:52:20.0 +0100 +++ new/lib/fast_gettext/version.rb 2019-04-21 02:49:32.0 +0200 @@ -1,5 +1,5 @@ # frozen_string_literal: true module FastGettext - VERSION = Version = '2.0.0' # rubocop:disable Naming/ConstantName + VERSION = Version = '2.0.1' # rubocop:disable Naming/ConstantName end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-12-21 17:52:20.0 +0100 +++ new/metadata2019-04-21 02:49:32.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 2.0.0 + version: 2.0.1 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2018-12-21 00:00:00.0 Z +date: 2019-04-21 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
binNXRPtXH1hs.bin Description: Binary data
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2018-12-10 12:23:52 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.19453 (New) Package is "rubygem-fast_gettext" Mon Dec 10 12:23:52 2018 rev:25 rq:656378 version:1.8.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2018-07-13 10:13:53.849924997 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new.19453/rubygem-fast_gettext.changes 2018-12-10 12:23:53.734793062 +0100 @@ -1,0 +2,6 @@ +Sat Dec 8 16:21:09 UTC 2018 - Stephan Kulow + +- updated to version 1.8.0 + see installed CHANGELOG + +--- Old: fast_gettext-1.7.0.gem New: fast_gettext-1.8.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.27dsKP/_old 2018-12-10 12:23:54.342792455 +0100 +++ /var/tmp/diff_new_pack.27dsKP/_new 2018-12-10 12:23:54.342792455 +0100 @@ -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-fast_gettext -Version:1.7.0 +Version:1.8.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.7.0.gem -> fast_gettext-1.8.0.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/fast_gettext/translation.rb new/lib/fast_gettext/translation.rb --- old/lib/fast_gettext/translation.rb 2018-06-23 01:20:58.0 +0200 +++ new/lib/fast_gettext/translation.rb 2018-12-08 17:03:06.0 +0100 @@ -42,6 +42,14 @@ end end +#translate with namespace, use namespect to find key +# 'Car','Tire' -> Tire if no translation could be found +# p_('Car','Tire') <=> s_('Car|Tire') +def p_(namespace, key, separator=nil, &block) + msgid = "#{namespace}#{separator||NAMESPACE_SEPARATOR}#{key}" + FastGettext.cached_find(msgid) or (block ? block.call : key) +end + #translate, but discard namespace if nothing was found # Car|Tire -> Tire if no translation could be found def s_(key, separator=nil, &block) 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 2018-06-23 01:20:58.0 +0200 +++ new/lib/fast_gettext/version.rb 2018-12-08 17:03:06.0 +0100 @@ -1,3 +1,3 @@ module FastGettext - VERSION = Version = '1.7.0' + VERSION = Version = '1.8.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-06-23 01:20:58.0 +0200 +++ new/metadata2018-12-08 17:03:06.0 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 1.7.0 + version: 1.8.0 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2018-06-22 00:00:00.0 Z +date: 2018-12-08 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2018-07-13 10:13:51 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Fri Jul 13 10:13:51 2018 rev:24 rq:621002 version:1.7.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2017-12-12 21:17:24.994511581 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2018-07-13 10:13:53.849924997 +0200 @@ -1,0 +2,6 @@ +Sat Jun 23 00:05:08 UTC 2018 - factory-a...@kulow.org + +- updated to version 1.7.0 + see installed CHANGELOG + +--- Old: fast_gettext-1.6.0.gem New: fast_gettext-1.7.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.79fTKo/_old 2018-07-13 10:13:54.253925472 +0200 +++ /var/tmp/diff_new_pack.79fTKo/_new 2018-07-13 10:13:54.257925477 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.6.0 +Version:1.7.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} @@ -36,7 +36,7 @@ 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 +License:MIT AND Ruby Group: Development/Languages/Ruby %description ++ fast_gettext-1.6.0.gem -> fast_gettext-1.7.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2017-12-02 16:49:17.0 +0100 +++ new/Readme.md 2018-06-23 01:20:58.0 +0200 @@ -67,6 +67,8 @@ Or yaml files (use I18n syntax/indentation) ```Ruby +# A single locale can be segmented in multiple yaml files but they all should be +# named with a `qq.yml` suffix, where `qq` is the locale name. FastGettext.add_text_domain('my_app', path: 'config/locales', type: :yaml) ``` @@ -323,6 +325,8 @@ - [Dominic Cleal](https://github.com/domcleal) - [Tomas Strachota](https://github.com/tstrachota) - [Martin Meier](https://github.com/mameier) + - [morcoteg](https://github.com/morcoteg) + - [Daniel Schepers](https://github.com/tall-dan) [Michael Grosser](http://grosser.it) mich...@grosser.it 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-12-02 16:49:17.0 +0100 +++ new/lib/fast_gettext/translation_repository/yaml.rb 2018-06-23 01:20:58.0 +0200 @@ -39,8 +39,12 @@ @files = {} path = options[:path] || 'config/locales' Dir["#{path}/*.yml"].each do |yaml_file| - locale = File.basename(yaml_file, '.yml') - @files[locale] = load_yaml(yaml_file, locale) + # Only take into account the last dot separeted part of the file name, + # excluding the extension file name + # that is, we suppose it to be named `qq.yml` or `foo.qq.yml` where + # `qq` stands for a locale name + locale = File.basename(yaml_file, '.yml').split('.').last + (@files[locale] ||= {}).merge! load_yaml(yaml_file, locale) end end 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-12-02 16:49:17.0 +0100 +++ new/lib/fast_gettext/version.rb 2018-06-23 01:20:58.0 +0200 @@ -1,3 +1,3 @@ module FastGettext - VERSION = Version = '1.6.0' + VERSION = Version = '1.7.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-12-02 16:49:17.0 +0100 +++ new/metadata2018-06-23 01:20:58.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/ob
commit rubygem-fast_gettext for openSUSE:Factory
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 - co...@suse.com + +- 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.0 +0200 +++ new/CHANGELOG 2017-12-02 16:49:17.0 +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.0 +0200 +++ new/lib/fast_gettext/translation_repository/yaml.rb 2017-12-02 16:49:17.0 +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.0 +0200 +++ new/lib/fast_gettext/version.rb 2017-12-02 16:49:17.0 +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/metadata2017-08-15 17:08:44.0 +0200 +++ new/metadata2017-12-02 16:49:17.0 +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.0 Z +date: 2017-12-02 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2017-09-07 22:10:09 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Thu Sep 7 22:10:09 2017 rev:22 rq:520440 version:1.5.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2017-08-12 19:43:07.342662778 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2017-09-07 22:10:10.648654892 +0200 @@ -1,0 +2,6 @@ +Sun Sep 3 09:01:30 UTC 2017 - co...@suse.com + +- updated to version 1.5.1 + see installed CHANGELOG + +--- Old: fast_gettext-1.4.1.gem New: fast_gettext-1.5.1.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.1QnyaB/_old 2017-09-07 22:10:12.288423771 +0200 +++ /var/tmp/diff_new_pack.1QnyaB/_new 2017-09-07 22:10:12.292423208 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.4.1 +Version:1.5.1 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.4.1.gem -> fast_gettext-1.5.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/fast_gettext/po_file.rb new/lib/fast_gettext/po_file.rb --- old/lib/fast_gettext/po_file.rb 2017-06-20 16:24:56.0 +0200 +++ new/lib/fast_gettext/po_file.rb 2017-08-15 17:08:44.0 +0200 @@ -32,7 +32,7 @@ parser.report_warning = options.fetch(:report_warning, true) mo_file = FastGettext::GetText::MOFile.new - parser.parse(File.read(file), mo_file) + parser.parse_file(file, mo_file) mo_file end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fast_gettext/storage.rb new/lib/fast_gettext/storage.rb --- old/lib/fast_gettext/storage.rb 2017-06-20 16:24:56.0 +0200 +++ new/lib/fast_gettext/storage.rb 2017-08-15 17:08:44.0 +0200 @@ -2,7 +2,7 @@ module FastGettext # Responsibility: - # - store data threadsave + # - store data threadsafe # - provide error messages when repositories are unconfigured # - accept/reject locales that are set by the user module Storage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fast_gettext/vendor/poparser.rb new/lib/fast_gettext/vendor/poparser.rb --- old/lib/fast_gettext/vendor/poparser.rb 2017-06-20 16:24:56.0 +0200 +++ new/lib/fast_gettext/vendor/poparser.rb 2017-08-15 17:08:44.0 +0200 @@ -132,19 +132,14 @@ end def parse_file(po_file, data) -args = [ po_file ] -# In Ruby 1.9, we must detect proper encoding of a PO file. -if String.instance_methods.include?(:encode) - encoding = detect_file_encoding(po_file) - args << "r:#{encoding}" -end @po_file = po_file -parse(File.open(*args) {|io| io.read }, data) +encoding = detect_file_encoding(po_file) +parse(File.open(po_file, "r:#{encoding}") {|io| io.read }, data) end def detect_file_encoding(po_file) open(po_file, :encoding => 'ASCII-8BIT') do |input| - input.lines.each do |line| + input.each_line do |line| return Encoding.find($1) if %r["Content-Type:.*\scharset=(.*)\\n"] =~ line end end 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-06-20 16:24:56.0 +0200 +++ new/lib/fast_gettext/version.rb 2017-08-15 17:08:44.0 +0200 @@ -1,3 +1,3 @@ module FastGettext - VERSION = Version = '1.4.1' + VERSION = Version = '1.5.1' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-06-20 16:24:56.0 +0200 +++ new/metadata2017-08-15 17:08:44.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 1.4.1 + version: 1.5.1 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2017-06-20 00:00:00.0 Z +date: 2017-08-15 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2017-08-12 19:43:06 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Sat Aug 12 19:43:06 2017 rev:21 rq:514936 version:1.4.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2017-03-31 15:00:39.423286731 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2017-08-12 19:43:07.342662778 +0200 @@ -1,0 +2,6 @@ +Thu Aug 3 19:13:23 UTC 2017 - co...@suse.com + +- updated to version 1.4.1 + see installed CHANGELOG + +--- Old: fast_gettext-1.4.0.gem New: fast_gettext-1.4.1.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.1SI9rH/_old 2017-08-12 19:43:08.022567413 +0200 +++ /var/tmp/diff_new_pack.1SI9rH/_new 2017-08-12 19:43:08.026566851 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.4.0 +Version:1.4.1 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.4.0.gem -> fast_gettext-1.4.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/fast_gettext/translation_repository/db.rb new/lib/fast_gettext/translation_repository/db.rb --- old/lib/fast_gettext/translation_repository/db.rb 2017-03-17 21:19:05.0 +0100 +++ new/lib/fast_gettext/translation_repository/db.rb 2017-06-20 16:24:56.0 +0200 @@ -47,6 +47,10 @@ end end + def reload +true + end + def self.require_models folder = "fast_gettext/translation_repository/db_models" require "#{folder}/translation_key" @@ -59,4 +63,4 @@ end end end -end \ No newline at end of file +end 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-03-17 21:19:05.0 +0100 +++ new/lib/fast_gettext/version.rb 2017-06-20 16:24:56.0 +0200 @@ -1,3 +1,3 @@ module FastGettext - VERSION = Version = '1.4.0' + VERSION = Version = '1.4.1' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-03-17 21:19:05.0 +0100 +++ new/metadata2017-06-20 16:24:56.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 1.4.0 + version: 1.4.1 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2017-03-17 00:00:00.0 Z +date: 2017-06-20 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2017-03-31 15:00:38 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Fri Mar 31 15:00:38 2017 rev:20 rq:481719 version:1.4.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2016-11-03 12:57:38.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2017-03-31 15:00:39.423286731 +0200 @@ -1,0 +2,6 @@ +Sat Mar 18 05:29:57 UTC 2017 - co...@suse.com + +- updated to version 1.4.0 + see installed CHANGELOG + +--- Old: fast_gettext-1.3.0.gem New: fast_gettext-1.4.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.wS8art/_old 2017-03-31 15:00:40.207175919 +0200 +++ /var/tmp/diff_new_pack.wS8art/_new 2017-03-31 15:00:40.207175919 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.3.0 +Version:1.4.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.3.0.gem -> fast_gettext-1.4.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2016-10-19 18:48:48.0 +0200 +++ new/Readme.md 2017-03-17 21:19:05.0 +0100 @@ -44,46 +44,60 @@ = ### 1. Install -sudo gem install fast_gettext +```Bash +gem install fast_gettext +``` ### 2. Add a translation repository From mo files (traditional/default) -FastGettext.add_text_domain('my_app', path: 'locale') +```Ruby +FastGettext.add_text_domain('my_app', path: 'locale') +``` Or po files (less maintenance than mo) -FastGettext.add_text_domain('my_app', path: 'locale', type: :po) -# :ignore_fuzzy => true to not use fuzzy translations -# :report_warning => false to hide warnings about obsolete/fuzzy translations +```Ruby +FastGettext.add_text_domain('my_app', path: 'locale', type: :po) +# :ignore_fuzzy => true to not use fuzzy translations +# :report_warning => false to hide warnings about obsolete/fuzzy translations +``` Or yaml files (use I18n syntax/indentation) -FastGettext.add_text_domain('my_app', path: 'config/locales', type: :yaml) +```Ruby +FastGettext.add_text_domain('my_app', path: 'config/locales', type: :yaml) +``` Or database (scaleable, good for many locales/translators) -# db access is cached <-> only first lookup hits the db -require "fast_gettext/translation_repository/db" -FastGettext::TranslationRepository::Db.require_models #load and include default models -FastGettext.add_text_domain('my_app', type: :db, model: TranslationKey) +```Ruby +# db access is cached <-> only first lookup hits the db +require "fast_gettext/translation_repository/db" +FastGettext::TranslationRepository::Db.require_models #load and include default models +FastGettext.add_text_domain('my_app', type: :db, model: TranslationKey) +``` ### 3. Choose text domain and locale for translation Do this once in every Thread. (e.g. Rails -> ApplicationController) -FastGettext.text_domain = 'my_app' -FastGettext.available_locales = ['de','en','fr','en_US','en_UK'] # only allow these locales to be set (optional) -FastGettext.locale = 'de' +```Ruby +FastGettext.text_domain = 'my_app' +FastGettext.available_locales = ['de','en','fr','en_US','en_UK'] # only allow these locales to be set (optional) +FastGettext.locale = 'de' +``` ### 4. Start translating -include FastGettext::Translation -_('Car') == 'Auto' -_('not-found') == 'not-found' -s_('Namespace|not-found') == 'not-found' -n_('Axis','Axis',3) == 'Achsen' #German plural of Axis -_('Hello %{name}!') % {name: "Pete"} == 'Hello Pete!' +```Ruby +include FastGettext::Translation +_('Car') == 'Auto' +_('not-found') == 'not-found' +s_('Namespace|not-found') == 'not-found' +n_('Axis','Axis',3) == 'Achsen' #German plural of Axis +_('Hello %{name}!') % {name: "Pete"} == 'Hello Pete!' +``` Managing translations @@ -93,12 +107,14 @@ Tell Gettext where your .mo or .po files lie, e.g. for
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2016-11-03 12:57:37 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2016-08-17 12:00:02.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2016-11-03 12:57:38.0 +0100 @@ -1,0 +2,6 @@ +Thu Oct 20 04:41:36 UTC 2016 - co...@suse.com + +- updated to version 1.3.0 + see installed CHANGELOG + +--- Old: fast_gettext-1.2.0.gem New: fast_gettext-1.3.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.dF3ESh/_old 2016-11-03 12:57:39.0 +0100 +++ /var/tmp/diff_new_pack.dF3ESh/_new 2016-11-03 12:57:39.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.2.0 +Version:1.3.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.2.0.gem -> fast_gettext-1.3.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2016-08-02 16:58:21.0 +0200 +++ new/Readme.md 2016-10-19 18:48:48.0 +0200 @@ -273,6 +273,7 @@ - [Fotos Georgiadis](https://github.com/fotos) - [Lukáš Zapletal](https://github.com/lzap) - [Dominic Cleal](https://github.com/domcleal) + - [Tomas Strachota](https://github.com/tstrachota) [Michael Grosser](http://grosser.it) mich...@grosser.it 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/storage.rb new/lib/fast_gettext/storage.rb --- old/lib/fast_gettext/storage.rb 2016-08-02 16:58:21.0 +0200 +++ new/lib/fast_gettext/storage.rb 2016-10-19 18:48:48.0 +0200 @@ -136,6 +136,16 @@ return nil#nothing found im sorry :P end +# temporarily switch locale for a block +# FastGettext.with_locale 'xx' { _('cars') } +def with_locale(temp_locale) + current_locale = locale + set_locale temp_locale + yield +ensure + set_locale current_locale +end + #turn off translation if none was defined to disable all resulting errors def silence_errors require 'fast_gettext/translation_repository/base' 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 2016-08-02 16:58:21.0 +0200 +++ new/lib/fast_gettext/version.rb 2016-10-19 18:48:48.0 +0200 @@ -1,3 +1,3 @@ module FastGettext - VERSION = Version = '1.2.0' + VERSION = Version = '1.3.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2016-08-02 16:58:21.0 +0200 +++ new/metadata2016-10-19 18:48:48.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: fast_gettext version: !ruby/object:Gem::Version - version: 1.2.0 + version: 1.3.0 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2016-08-02 00:00:00.0 Z +date: 2016-10-19 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2016-08-17 12:00:01 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2016-06-05 14:18:16.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2016-08-17 12:00:02.0 +0200 @@ -1,0 +2,8 @@ +Wed Aug 3 04:31:08 UTC 2016 - co...@suse.com + +- updated to version 1.2.0 + see installed CHANGELOG + + 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 + +--- Old: fast_gettext-1.1.0.gem New: fast_gettext-1.2.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.Cqk4Hy/_old 2016-08-17 12:00:03.0 +0200 +++ /var/tmp/diff_new_pack.Cqk4Hy/_new 2016-08-17 12:00:03.0 +0200 @@ -24,15 +24,15 @@ # Name: rubygem-fast_gettext -Version:1.1.0 +Version:1.2.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby >= 2.1.0} BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 -Url:http://github.com/grosser/fast_gettext +Url:https://github.com/grosser/fast_gettext Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:A simple, fast, memory-efficient and threadsafe implementation of ++ fast_gettext-1.1.0.gem -> fast_gettext-1.2.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2016-05-30 17:54:15.0 +0200 +++ new/CHANGELOG 2016-08-02 16:58:21.0 +0200 @@ -1,3 +1,4 @@ +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 0.7.0 -- set_locale resets to default locale if none of the available locales was tried to set diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2016-05-30 17:54:15.0 +0200 +++ new/Readme.md 2016-08-02 16:58:21.0 +0200 @@ -50,24 +50,24 @@ From mo files (traditional/default) -FastGettext.add_text_domain('my_app',:path => 'locale') +FastGettext.add_text_domain('my_app', path: 'locale') Or po files (less maintenance than mo) -FastGettext.add_text_domain('my_app',:path => 'locale', :type => :po) +FastGettext.add_text_domain('my_app', path: 'locale', type: :po) # :ignore_fuzzy => true to not use fuzzy translations # :report_warning => false to hide warnings about obsolete/fuzzy translations Or yaml files (use I18n syntax/indentation) -FastGettext.add_text_domain('my_app', :path => 'config/locales', :type => :yaml) +FastGettext.add_text_domain('my_app', path: 'config/locales', type: :yaml) Or database (scaleable, good for many locales/translators) # db access is cached <-> only first lookup hits the db require "fast_gettext/translation_repository/db" FastGettext::TranslationRepository::Db.require_models #load and include default models -FastGettext.add_text_domain('my_app', :type => :db, :model => TranslationKey) +FastGettext.add_text_domain('my_app', type: :db, model: TranslationKey) ### 3. Choose text domain and locale for translation Do this once in every Thread. (e.g. Rails -> ApplicationController) @@ -83,7 +83,7 @@ _('not-found') == 'not-found' s_('Namespace|not-found') == 'not-found' n_('Axis','Axis',3) == 'Achsen' #German plural of Axis -_('Hello %{name}!') % {:name => "Pete"} == 'Hello Pete!' +_('Hello %{name}!') % {name: "Pete"} == 'Hello Pete!' Managing translations @@ -93,7 +93,7 @@ Tell Gettext where your .mo or .po files lie, e.g. for locale/de/my_app.po and locale/de/LC_MESSAGES/my_app.mo -FastGettext.add_text_domain('my_app',:path=>'locale') +FastGettext.add_text_domain('my_app', path: 'locale') Use the [original GetText](http://github.com/mutoh/gettext) to create and ma
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2016-06-05 14:18:15 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2015-10-24 10:23:35.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2016-06-05 14:18:16.0 +0200 @@ -1,0 +2,6 @@ +Tue May 31 04:28:56 UTC 2016 - co...@suse.com + +- updated to version 1.1.0 + see installed CHANGELOG + +--- Old: fast_gettext-1.0.0.gem New: fast_gettext-1.1.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.WExlVX/_old 2016-06-05 14:18:17.0 +0200 +++ /var/tmp/diff_new_pack.WExlVX/_new 2016-06-05 14:18:17.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:1.0.0 +Version:1.1.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-1.0.0.gem -> fast_gettext-1.1.0.gem ++ 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/mo_file.rb new/lib/fast_gettext/mo_file.rb --- old/lib/fast_gettext/mo_file.rb 2015-10-14 22:45:49.0 +0200 +++ new/lib/fast_gettext/mo_file.rb 2016-05-30 17:54:15.0 +0200 @@ -6,17 +6,13 @@ PLURAL_SEPERATOR = "\000" # file => path or FastGettext::GetText::MOFile -def initialize(file) - if file.is_a? FastGettext::GetText::MOFile -@data = file - else -@data = FastGettext::GetText::MOFile.open(file, "UTF-8") - end - make_singular_and_plural_available +def initialize(file, options={}) + @filename = file + load_data if options[:eager_load] end def [](key) - @data[key] + data[key] end #returns the plural forms or all singular translations that where found @@ -28,7 +24,7 @@ def pluralisation_rule #gettext uses 0 as default rule, which would turn off all pluralisation, very clever... #additionally parsing fails when directly accessing po files, so this line was taken from gettext/mofile - (@data['']||'').split("\n").each do |line| + (data['']||'').split("\n").each do |line| return lambda{|n|eval($2)} if /^Plural-Forms:\s*nplurals\s*\=\s*(\d*);\s*plural\s*\=\s*([^;]*)\n?/ =~ line end nil @@ -40,6 +36,20 @@ private +def data + load_data if @data.nil? + @data +end + +def load_data + @data = if @filename.is_a? FastGettext::GetText::MOFile +@filename + else +FastGettext::GetText::MOFile.open(@filename, "UTF-8") + end + make_singular_and_plural_available +end + #(if plural==singular, prefer singular) def make_singular_and_plural_available data = {} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fast_gettext/po_file.rb new/lib/fast_gettext/po_file.rb --- old/lib/fast_gettext/po_file.rb 2015-10-14 22:45:49.0 +0200 +++ new/lib/fast_gettext/po_file.rb 2016-05-30 17:54:15.0 +0200 @@ -2,8 +2,28 @@ module FastGettext # Responsibility: # - abstract po files for Po Repository - class PoFile + class PoFile < MoFile +def initialize(file, options={}) + @options = options + super +end + def self.to_mo_file(file, options={}) + MoFile.new(parse_po_file(file, options)) +end + +protected + +def load_data + @data = if @filename.is_a? FastGettext::GetText::MOFile +@filename + else +FastGettext::PoFile.parse_po_file(@filename, @options) + end + make_singular_and_plural_available +end + +def self.parse_po_file(file, options={}) require 'fast_gettext/vendor/poparser' parser = FastGettext::GetText::PoParser.new @@ -13,7 +33,7 @@ mo_file = FastGettext::GetText::MOFile.new parser.parse(File.read(file), mo_file) - MoFile.new(mo_file) + mo_file
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2015-10-24 10:23:24 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2015-02-16 21:22:02.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2015-10-24 10:23:35.0 +0200 @@ -1,0 +2,8 @@ +Thu Oct 15 04:29:34 UTC 2015 - co...@suse.com + +- updated to version 1.0.0 + see installed CHANGELOG + + 1.0.0 -- do not enforce attr_accessible unless ProtectedAttributes are loaded + +--- Old: fast_gettext-0.9.2.gem New: fast_gettext-1.0.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.D0DpqZ/_old 2015-10-24 10:23:36.0 +0200 +++ /var/tmp/diff_new_pack.D0DpqZ/_new 2015-10-24 10:23:36.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:0.9.2 +Version:1.0.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.9.2.gem -> fast_gettext-1.0.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2015-01-11 17:23:46.0 +0100 +++ new/CHANGELOG 2015-10-14 22:45:49.0 +0200 @@ -1,3 +1,4 @@ +1.0.0 -- do not enforce attr_accessible unless ProtectedAttributes are loaded 0.9.0 -- reworked internals of caching to be plugable 0.7.0 -- set_locale resets to default locale if none of the available locales was tried to set 0.6.0 -- plurals use singular translations as fallack e.g. you translated 'Axis' then n_('Axis','Axis',1) would return the translation for 'Axis' if no plural translation was found diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 2015-01-11 17:23:46.0 +0100 +++ new/Readme.md 2015-10-14 22:45:49.0 +0200 @@ -142,7 +142,7 @@ Via Ruby: -FastGettext.pluralisation_rule = lamda{|count| count > 5 ? 1 : (count > 2 ? 0 : 2)} +FastGettext.pluralisation_rule = lambda{|count| count > 5 ? 1 : (count > 2 ? 0 : 2)} Via mo/pofile: @@ -175,7 +175,7 @@ repos = [ FastGettext::TranslationRepository.build('app', :path=>'') - FastGettext::TranslationRepository.build('logger', :type=>:logger, :callback=>lamda{|key_or_array_of_ids| ... }), + FastGettext::TranslationRepository.build('logger', :type=>:logger, :callback=>lambda{|key_or_array_of_ids| ... }), } FastGettext.add_text_domain 'combined', :type=>:chain, :chain=>repos @@ -254,6 +254,7 @@ - [Stephan Kulow](https://github.com/coolo) - [Fotos Georgiadis](https://github.com/fotos) - [Lukáš Zapletal](https://github.com/lzap) + - [Dominic Cleal](https://github.com/domcleal) [Michael Grosser](http://grosser.it) mich...@grosser.it 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/db_models/translation_key.rb new/lib/fast_gettext/translation_repository/db_models/translation_key.rb --- old/lib/fast_gettext/translation_repository/db_models/translation_key.rb 2015-01-11 17:23:46.0 +0100 +++ new/lib/fast_gettext/translation_repository/db_models/translation_key.rb 2015-10-14 22:45:49.0 +0200 @@ -1,5 +1,3 @@ -require "protected_attributes" if ActiveRecord::VERSION::MAJOR >= 4 - class TranslationKey < ActiveRecord::Base has_many :translations, :class_name => 'TranslationText', :dependent => :destroy @@ -8,7 +6,7 @@ validates_uniqueness_of :key validates_presence_of :key - attr_accessible :key, :translations, :translations_attributes + attr_accessible :key, :translations, :translations_attributes if ActiveRecord::VERSION::MAJOR == 3 || defined?(ProtectedAttributes) before_save :normalize_newlines diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fast_gettext/translation_repository/db_models/translation_text.rb new/lib/fast_gettext/translation_repository/db_models/translation_text.rb --- old/lib/fast_gettext/translation_repository/db_models/translation_text.rb 2015-01-11 17:23:46.0 +0100 +++ new/lib/fast_gettext/translation_repository/db_models/translation_text.rb 201
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2015-02-16 21:22:01 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2014-10-25 08:32:59.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2015-02-16 21:22:02.0 +0100 @@ -1,0 +2,5 @@ +Tue Feb 10 17:43:28 UTC 2015 - co...@suse.com + +- updated to version 0.9.2 + +--- Old: fast_gettext-0.9.0.gem New: fast_gettext-0.9.2.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.hjUxp1/_old 2015-02-16 21:22:03.0 +0100 +++ /var/tmp/diff_new_pack.hjUxp1/_new 2015-02-16 21:22:03.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-fast_gettext -Version:0.9.0 +Version:0.9.2 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} @@ -48,6 +48,7 @@ %install %gem_install \ + --doc-files="CHANGELOG Readme.md" \ -f %gem_packages ++ fast_gettext-0.9.0.gem -> fast_gettext-0.9.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 1970-01-01 01:00:00.0 +0100 +++ new/CHANGELOG 2015-01-11 17:23:46.0 +0100 @@ -0,0 +1,9 @@ +0.9.0 -- reworked internals of caching to be plugable +0.7.0 -- set_locale resets to default locale if none of the available locales was tried to set +0.6.0 -- plurals use singular translations as fallack e.g. you translated 'Axis' then n_('Axis','Axis',1) would return the translation for 'Axis' if no plural translation was found +0.4.14 -- "" is translated as "", not as gettext meta information +0.4.0 -- pluralisation_rules is no longer stored in each repository, only retrived. Added Chain and Logger repository. +0.3.6 -- FastGettext.default_locale= +0.3.5 -- FastGettext.default_text_domain= +0.3.4 -- Exceptions are thrown, not returned when translating without text domain +0.3 -- pluralisation methods accept/return n plural forms, contrary to singular/plural before diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md --- old/Readme.md 1970-01-01 01:00:00.0 +0100 +++ new/Readme.md 2015-01-11 17:23:46.0 +0100 @@ -0,0 +1,261 @@ +FastGettext +=== +GetText but 3.5 x faster, 560 x less memory, simple, clean namespace (7 vs 34) and threadsafe! + +It supports multiple backends (.mo, .po, .yml files, Database(ActiveRecord + any other), Chain, Loggers) and can easily be extended. + +[Example Rails application](https://github.com/grosser/gettext_i18n_rails_example) + +Comparison +== + + + +Hash +FastGettext +GetText +ActiveSupport I18n::Simple + + +Speed* +0.82s +1.36s +4.88s +21.77s + + +RAM* +4K +8K +4480K +10100K + + +Included backends + +db, yml, mo, po, logger, chain +mo +yml (db/key-value/po/chain in other I18n backends) + + +*50.000 translations with ruby enterprise 1.8.6 through `rake benchmark` + +Setup += +### 1. Install + +sudo gem install fast_gettext + +### 2. Add a translation repository + +From mo files (traditional/default) + +FastGettext.add_text_domain('my_app',:path => 'locale') + +Or po files (less maintenance than mo) + +FastGettext.add_text_domain('my_app',:path => 'locale', :type => :po) +# :ignore_fuzzy => true to not use fuzzy translations +# :report_warning => false to hide warnings about obsolete/fuzzy translations + +Or yaml files (use I18n syntax/indentation) + +FastGettext.add_text_domain('my_app', :path => 'config/locales', :type => :yaml) + +Or database (scaleable, good for many locales/translators) + +# db access is cached <-> only first lookup hits the db +require "fast_gettext/translation_repository/db" +FastGettext::TranslationRepository::Db.require_models #load and include default models +FastGettext.add_text_domain('my_app
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2014-10-25 08:32:52 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2014-10-20 07:26:41.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2014-10-25 08:32:59.0 +0200 @@ -1,0 +2,5 @@ +Tue Oct 21 12:29:20 UTC 2014 - co...@suse.com + +- updated to version 0.9.0 + +--- Old: fast_gettext-0.8.1.gem New: fast_gettext-0.9.0.gem gem2rpm.yml Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.ubacdV/_old 2014-10-25 08:33:00.0 +0200 +++ /var/tmp/diff_new_pack.ubacdV/_new 2014-10-25 08:33:00.0 +0200 @@ -16,22 +16,31 @@ # +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-fast_gettext -Version:0.8.1 +Version:0.9.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} - BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:http://github.com/grosser/fast_gettext Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml Summary:A simple, fast, memory-efficient and threadsafe implementation of License:MIT and Ruby Group: Development/Languages/Ruby %description -A simple, fast, memory-efficient and threadsafe implementation of GetText +A simple, fast, memory-efficient and threadsafe implementation of GetText. %prep @@ -39,8 +48,6 @@ %install %gem_install \ - --symlink-binaries \ - --doc-files="CHANGELOG Readme.md" \ -f %gem_packages ++ fast_gettext-0.8.1.gem -> fast_gettext-0.9.0.gem ++ 3753 lines of diff (skipped) ++ gem2rpm.yml ++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: . # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2014-10-20 07:26:40 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2013-12-02 07:26:50.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2014-10-20 07:26:41.0 +0200 @@ -1,0 +2,5 @@ +Sun Oct 12 11:00:12 UTC 2014 - adr...@suse.de + +- adapt to new rubygem packaging style + +--- Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.T6XtbB/_old 2014-10-20 07:26:42.0 +0200 +++ /var/tmp/diff_new_pack.T6XtbB/_new 2014-10-20 07:26:42.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,7 @@ %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 1 +BuildRequires: ruby-macros >= 5 Url:http://github.com/grosser/fast_gettext Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:A simple, fast, memory-efficient and threadsafe implementation of @@ -33,50 +33,16 @@ %description A simple, fast, memory-efficient and threadsafe implementation of GetText -%package doc -Summary:RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -%package testsuite -Summary:Test suite for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description testsuite -Test::Unit or RSpec files, useful for developers. - %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%gem_install -f -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGELOG %buildroot/%{_docdir}/%{name}/CHANGELOG -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/Readme.md %buildroot/%{_docdir}/%{name}/Readme.md - -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ - -%files testsuite -%defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec +%gem_install \ + --symlink-binaries \ + --doc-files="CHANGELOG Readme.md" \ + -f + +%gem_packages %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2013-12-02 07:26:49 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2013-10-06 14:58:38.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2013-12-02 07:26:50.0 +0100 @@ -1,0 +2,5 @@ +Fri Nov 29 11:05:08 UTC 2013 - co...@suse.com + +- updated to version 0.8.1, no changelog + +--- Old: fast_gettext-0.8.0.gem New: fast_gettext-0.8.1.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.qSSBlf/_old 2013-12-02 07:26:51.0 +0100 +++ /var/tmp/diff_new_pack.qSSBlf/_new 2013-12-02 07:26:51.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.8.0 +Version:0.8.1 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.8.0.gem -> fast_gettext-0.8.1.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.8.0.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.8.1.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2013-10-06 14:58:37 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2013-07-25 15:25:52.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2013-10-06 14:58:38.0 +0200 @@ -1,0 +2,5 @@ +Tue Sep 3 08:10:13 UTC 2013 - co...@suse.com + +- updated to version 0.8.0, no changelog + +--- Old: fast_gettext-0.7.1.gem New: fast_gettext-0.8.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.WgcSGJ/_old 2013-10-06 14:58:38.0 +0200 +++ /var/tmp/diff_new_pack.WgcSGJ/_new 2013-10-06 14:58:38.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.7.1 +Version:0.8.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.7.1.gem -> fast_gettext-0.8.0.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.7.1.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.8.0.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2013-07-25 15:25:50 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2012-12-21 10:34:33.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2013-07-25 15:25:52.0 +0200 @@ -1,0 +2,5 @@ +Sat Jul 20 11:03:06 UTC 2013 - co...@suse.com + +- updated to version 0.7.1 + +--- Old: fast_gettext-0.7.0.gem New: fast_gettext-0.7.1.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.2JcstW/_old 2013-07-25 15:25:52.0 +0200 +++ /var/tmp/diff_new_pack.2JcstW/_new 2013-07-25 15:25:52.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-fast_gettext # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.7.0 +Version:0.7.1 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} @@ -25,7 +25,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 Url:http://github.com/grosser/fast_gettext -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:A simple, fast, memory-efficient and threadsafe implementation of License:MIT and Ruby Group: Development/Languages/Ruby @@ -59,9 +59,13 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGELOG %buildroot/%{_docdir}/%{name}/CHANGELOG +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/Readme.md %buildroot/%{_docdir}/%{name}/Readme.md %files %defattr(-,root,root,-) +%{_docdir}/%{name} %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec ++ fast_gettext-0.7.0.gem -> fast_gettext-0.7.1.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.7.0.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.7.1.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2012-12-21 10:34:31 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext", Maintainer is "r...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2012-11-05 15:02:46.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2012-12-21 10:34:33.0 +0100 @@ -1,0 +2,6 @@ +Thu Dec 20 06:24:31 UTC 2012 - co...@suse.com + +- updated to version 0.7.0 + set_locale resets to default locale if none of the available locales was tried to set + +--- Old: fast_gettext-0.6.11.gem New: fast_gettext-0.7.0.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.7ENy1v/_old 2012-12-21 10:34:34.0 +0100 +++ /var/tmp/diff_new_pack.7ENy1v/_new 2012-12-21 10:34:34.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.6.11 +Version:0.7.0 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.6.11.gem -> fast_gettext-0.7.0.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.6.11.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.7.0.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2012-11-05 15:02:45 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext", Maintainer is "r...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2012-09-21 14:58:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2012-11-05 15:02:46.0 +0100 @@ -1,0 +2,5 @@ +Mon Oct 29 08:06:20 UTC 2012 - co...@suse.com + +- updated to version 0.6.11, no changelog + +--- Old: fast_gettext-0.6.10.gem New: fast_gettext-0.6.11.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.NeDpe1/_old 2012-11-05 15:02:48.0 +0100 +++ /var/tmp/diff_new_pack.NeDpe1/_new 2012-11-05 15:02:48.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.6.10 +Version:0.6.11 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.6.10.gem -> fast_gettext-0.6.11.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.6.10.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.6.11.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2012-09-21 14:58:09 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext", Maintainer is "r...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2012-08-04 09:38:51.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2012-09-21 14:58:27.0 +0200 @@ -1,0 +2,5 @@ +Wed Sep 19 14:51:13 UTC 2012 - co...@suse.com + +- updated to version 0.6.10, no changelog ;( + +--- Old: fast_gettext-0.6.9.gem New: fast_gettext-0.6.10.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.1kXrsb/_old 2012-09-21 14:58:28.0 +0200 +++ /var/tmp/diff_new_pack.1kXrsb/_new 2012-09-21 14:58:28.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-fast_gettext -Version:0.6.9 +Version:0.6.10 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} ++ fast_gettext-0.6.9.gem -> fast_gettext-0.6.10.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.6.9.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.6.10.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-fast_gettext for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-fast_gettext for openSUSE:Factory checked in at 2012-08-04 09:38:49 Comparing /work/SRC/openSUSE:Factory/rubygem-fast_gettext (Old) and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new (New) Package is "rubygem-fast_gettext", Maintainer is "r...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/rubygem-fast_gettext/rubygem-fast_gettext.changes 2012-06-01 07:23:30.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/rubygem-fast_gettext.changes 2012-08-04 09:38:51.0 +0200 @@ -1,0 +2,11 @@ +Thu Aug 2 13:02:21 UTC 2012 - cfarr...@suse.com + +- license update: MIT and Ruby + See the README.rdoc in lib/vendor + +--- +Wed Aug 1 05:04:01 UTC 2012 - co...@suse.com + +- updated to version 0.6.9 + +--- Old: fast_gettext-0.6.4.gem New: fast_gettext-0.6.9.gem Other differences: -- ++ rubygem-fast_gettext.spec ++ --- /var/tmp/diff_new_pack.ZxCcoq/_old 2012-08-04 09:38:52.0 +0200 +++ /var/tmp/diff_new_pack.ZxCcoq/_new 2012-08-04 09:38:52.0 +0200 @@ -15,24 +15,21 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild + Name: rubygem-fast_gettext -Version:0.6.4 +Version:0.6.9 Release:0 %define mod_name fast_gettext %define mod_full_name %{mod_name}-%{version} -# -Group: Development/Languages/Ruby -License: SUSE-Public-Domain -# + BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: rubygems_with_buildroot_patch -%rubygems_requires -# +BuildRequires: ruby-macros >= 1 Url:http://github.com/grosser/fast_gettext Source: %{mod_full_name}.gem -# -Summary:A simple, fast, memory-efficient and threadsafe implementation of GetText +Summary:A simple, fast, memory-efficient and threadsafe implementation of +License:MIT and Ruby +Group: Development/Languages/Ruby + %description A simple, fast, memory-efficient and threadsafe implementation of GetText @@ -40,6 +37,7 @@ Summary:RDoc documentation for %{mod_name} Group: Development/Languages/Ruby Requires: %{name} = %{version} + %description doc Documentation generated at gem installation time. Usually in RDoc and RI formats. @@ -48,16 +46,19 @@ Summary:Test suite for %{mod_name} Group: Development/Languages/Ruby Requires: %{name} = %{version} + %description testsuite Test::Unit or RSpec files, useful for developers. %prep +#gem_unpack +#if you need patches, apply them here and replace the # with a % sign in the surrounding lines +#gem_build + %build -%install -%gem_install %{S:0} -%clean -%{__rm} -rf %{buildroot} +%install +%gem_install -f %files %defattr(-,root,root,-) ++ fast_gettext-0.6.4.gem -> fast_gettext-0.6.9.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-fast_gettext/fast_gettext-0.6.4.gem and /work/SRC/openSUSE:Factory/.rubygem-fast_gettext.new/fast_gettext-0.6.9.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org