I also uploaded a NMU for the version in unstable to the seven-day
delayed queue.

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF
diff -Nru libgettext-ruby-1.91.0.old/debian/changelog libgettext-ruby-1.91.0/debian/changelog
--- libgettext-ruby-1.91.0.old/debian/changelog	2008-10-30 10:08:20.000000000 -0600
+++ libgettext-ruby-1.91.0/debian/changelog	2008-10-30 10:06:16.000000000 -0600
@@ -1,3 +1,10 @@
+libgettext-ruby (1.91.0-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed Rails 2.1 compatibility problem (Closes: #503955)
+
+ -- Gunnar Wolf <[EMAIL PROTECTED]>  Thu, 30 Oct 2008 10:06:16 -0600
+
 libgettext-ruby (1.91.0-2) unstable; urgency=low
 
   * support locale aliases (Closes: #492907)
diff -Nru libgettext-ruby-1.91.0.old/debian/patches/00list libgettext-ruby-1.91.0/debian/patches/00list
--- libgettext-ruby-1.91.0.old/debian/patches/00list	2008-10-30 10:08:20.000000000 -0600
+++ libgettext-ruby-1.91.0/debian/patches/00list	2008-10-30 10:05:33.000000000 -0600
@@ -1,2 +1,3 @@
 10_dup_strings_of_gettext_returns.dpatch
 10_read_locale_alias.dpatch
+20_compatibility_with_rails_2.1.dpatch
diff -Nru libgettext-ruby-1.91.0.old/debian/patches/20_compatibility_with_rails_2.1.dpatch libgettext-ruby-1.91.0/debian/patches/20_compatibility_with_rails_2.1.dpatch
--- libgettext-ruby-1.91.0.old/debian/patches/20_compatibility_with_rails_2.1.dpatch	1969-12-31 18:00:00.000000000 -0600
+++ libgettext-ruby-1.91.0/debian/patches/20_compatibility_with_rails_2.1.dpatch	2008-10-30 10:04:55.000000000 -0600
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_compatibility_with_rails_2.1.dpatch by  <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixes compatibility breakage with Rails 2.1
+
[EMAIL PROTECTED]@
+
+diff -urNad libgettext-ruby~/lib/gettext/rails.rb libgettext-ruby/lib/gettext/rails.rb
+--- libgettext-ruby~/lib/gettext/rails.rb
++++ libgettext-ruby/lib/gettext/rails.rb
+@@ -271,6 +271,9 @@ end
+ 
+ module ActionView #:nodoc:
+   class Base #:nodoc:
++    # Needed for Rails >=2.1 compatibilty
++    delegate :file_exists?, :to => :finder unless respond_to?(:file_exists?)
++
+     alias render_file_without_locale render_file #:nodoc:
+     # This provides to find localized template files such as foo_ja.rhtml, foo_ja_JP.rhtml
+     # instead of foo.rhtml. If the file isn't found, foo.rhtml is used.
+

Reply via email to