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 <[email protected]>
+
+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.000000000 +0100
+++ new/Readme.md 2020-05-26 19:49:33.000000000 +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)<br/>
-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.000000000 +0100
+++ new/lib/fast_gettext/storage.rb 2020-05-26 19:49:33.000000000 +0200
@@ -172,7 +172,7 @@
locales = locales.to_s.gsub(/\s/, '')
found = [[]]
locales.split(',').each do |part|
- if part =~ /;q=/ # contains language and weight ?
+ if /;q=/.match?(part) # contains language and weight ?
found.last << part.split(/;q=/)
found.last.flatten!
found << []
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 2020-02-05
18:15:41.000000000 +0100
+++ new/lib/fast_gettext/translation_repository/db.rb 2020-05-26
19:49:33.000000000 +0200
@@ -30,7 +30,7 @@
end
def pluralisation_rule
- @model.pluralsation_rule if @model.respond_to? :pluralsation_rule
+ @model.pluralisation_rule if @model.respond_to? :pluralisation_rule
end
def [](key)
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 2020-02-05 18:15:41.000000000 +0100
+++ new/lib/fast_gettext/version.rb 2020-05-26 19:49:33.000000000 +0200
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module FastGettext
- VERSION = Version = '2.0.2' # rubocop:disable Naming/ConstantName
+ VERSION = Version = '2.0.3' # rubocop:disable Naming/ConstantName
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-02-05 18:15:41.000000000 +0100
+++ new/metadata 2020-05-26 19:49:33.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: fast_gettext
version: !ruby/object:Gem::Version
- version: 2.0.2
+ version: 2.0.3
platform: ruby
authors:
- Michael Grosser
autorequire:
bindir: bin
cert_chain: []
-date: 2020-02-05 00:00:00.000000000 Z
+date: 2020-05-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -195,14 +195,14 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 2.3.0
+ version: 2.4.0
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.1.3
signing_key:
specification_version: 4
summary: A simple, fast, memory-efficient and threadsafe implementation of
GetText