[DRE-commits] [ruby-fast-gettext] 07/10: Add a patch from upstream to fix a test failure

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Sep 12 19:15:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-fast-gettext.

commit 36555062c2471647201df493a9ac411232297be1
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Sep 12 21:09:57 2015 +0200

    Add a patch from upstream to fix a test failure
    
    Closes: #795035
---
 ...new-has-already-been-invoked-and-cannot-b.patch | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/0008-Fix-MoFile.new-has-already-been-invoked-and-cannot-b.patch b/debian/patches/0008-Fix-MoFile.new-has-already-been-invoked-and-cannot-b.patch
new file mode 100644
index 0000000..e21ef5c
--- /dev/null
+++ b/debian/patches/0008-Fix-MoFile.new-has-already-been-invoked-and-cannot-b.patch
@@ -0,0 +1,24 @@
+From: =?utf-8?q?V=C3=ADt_Ondruch?= <vondruch at redhat.com>
+Date: Wed, 24 Jun 2015 18:25:58 +0200
+Subject: Fix "MoFile.new has already been invoked and cannot be modified
+ further"
+
+---
+ spec/fast_gettext/translation_repository/mo_spec.rb | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/spec/fast_gettext/translation_repository/mo_spec.rb b/spec/fast_gettext/translation_repository/mo_spec.rb
+index 85135db..6952e79 100644
+--- a/spec/fast_gettext/translation_repository/mo_spec.rb
++++ b/spec/fast_gettext/translation_repository/mo_spec.rb
+@@ -23,8 +23,9 @@ describe 'FastGettext::TranslationRepository::Mo' do
+   describe :reload do
+     before do
+       mo_file = FastGettext::MoFile.new('spec/locale/de/LC_MESSAGES/test2.mo')
++      empty_mo_file = FastGettext::MoFile.empty
+ 
+-      FastGettext::MoFile.stub(:new).and_return(FastGettext::MoFile.empty)
++      FastGettext::MoFile.stub(:new).and_return(empty_mo_file)
+       FastGettext::MoFile.stub(:new).with('spec/locale/de/LC_MESSAGES/test.mo').and_return(mo_file)
+     end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ca02ed6..356e97d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0005-remove-bogus-tests.patch
 0006-Use-IO-each_line-instead-of-IO-lines-in-poparser.patch
 0007-Add-metadata.yml-from-upstream-gem.patch
+0008-Fix-MoFile.new-has-already-been-invoked-and-cannot-b.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fast-gettext.git



More information about the Pkg-ruby-extras-commits mailing list