Your message dated Tue, 04 Nov 2008 16:17:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#503955: fixed in libgettext-ruby 1.91.0-1.2
has caused the Debian Bug report #503955,
regarding libgettext-ruby1.8: Breaks with Rails 2.1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
503955: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503955
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libgettext-ruby1.8
Version: 1.91.0-2
Severity: important
Tags: patch

Release team: The following bug report is, IMHO, non-invasive and
important enough for me to request a freeze exception so it can be
included in Lenny. Please comment.

gettext/rails.rb includes a call that breaks under Rails 2.1, the
version currently in both Lenny and Sid - In a gettext-based Rails
application, any action requested generates a "500 Internal Server
Error", with this being recorded in the log:

NoMethodError (undefined method `file_exists?' for 
#<ActionView::Base:0x7f93cd512260>):
    /usr/lib/ruby/1.8/gettext/rails.rb:281:in `render_file'
    /usr/lib/ruby/1.8/gettext/rails.rb:279:in `each'
    /usr/lib/ruby/1.8/gettext/rails.rb:279:in `render_file'

The error goes away if "freezing" the application to use a pre-2.1
Rails version.

This bug is referred in a blog message [1], which outlines the
solution:

diff --git a/lib/gettext/rails.rb b/lib/gettext/rails.rb
index 2ffd817..f18ee9f 100644
--- a/lib/gettext/rails.rb
+++ b/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.

[1] 
http://zargony.com/2008/02/12/edge-rails-and-gettext-undefined-method-file_exists-nomethoderror

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgettext-ruby1.8 depends on:
ii  irb1.8                        1.8.7.72-1 Interactive Ruby (for Ruby 1.8)

libgettext-ruby1.8 recommends no packages.

Versions of packages libgettext-ruby1.8 suggests:
ii  libgettext-ruby-data          1.91.0-2   Data files for ruby gettext librar
ii  libgettext-ruby-util          1.91.0-2   Gettext utilities for ruby

-- no debconf information

-- 
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



--- End Message ---
--- Begin Message ---
Source: libgettext-ruby
Source-Version: 1.91.0-1.2

We believe that the bug you reported is fixed in the latest version of
libgettext-ruby, which is due to be installed in the Debian FTP archive:

libgettext-ruby-data_1.91.0-1.2_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby-data_1.91.0-1.2_all.deb
libgettext-ruby-util_1.91.0-1.2_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby-util_1.91.0-1.2_all.deb
libgettext-ruby1.8_1.91.0-1.2_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby1.8_1.91.0-1.2_all.deb
libgettext-ruby1.9_1.91.0-1.2_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby1.9_1.91.0-1.2_all.deb
libgettext-ruby_1.91.0-1.2.diff.gz
  to pool/main/libg/libgettext-ruby/libgettext-ruby_1.91.0-1.2.diff.gz
libgettext-ruby_1.91.0-1.2.dsc
  to pool/main/libg/libgettext-ruby/libgettext-ruby_1.91.0-1.2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gunnar Wolf <[EMAIL PROTECTED]> (supplier of updated libgettext-ruby package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 30 Oct 2008 09:45:00 -0600
Source: libgettext-ruby
Binary: libgettext-ruby1.8 libgettext-ruby1.9 libgettext-ruby-util 
libgettext-ruby-data
Architecture: source all
Version: 1.91.0-1.2
Distribution: testing-proposed-updates
Urgency: low
Maintainer: Tatsuki Sugiura <[EMAIL PROTECTED]>
Changed-By: Gunnar Wolf <[EMAIL PROTECTED]>
Description: 
 libgettext-ruby-data - Data files for ruby gettext library
 libgettext-ruby-util - Gettext utilities for ruby
 libgettext-ruby1.8 - Gettext for ruby1.8
 libgettext-ruby1.9 - Gettext for ruby1.9
Closes: 503955
Changes: 
 libgettext-ruby (1.91.0-1.2) testing-proposed-updates; urgency=low
 .
   * Non-maintainer upload.
   * Fixed Rails 2.1 compatibility problem (Closes: #503955)
Checksums-Sha1: 
 c41060c5f168b4d5174da101a42483064bf54269 1337 libgettext-ruby_1.91.0-1.2.dsc
 d9c6f7a83f23c1a220e3c22c5b05c8ce1d073e8c 7143 
libgettext-ruby_1.91.0-1.2.diff.gz
 6fe9498bb0e4ff3ea3ca4c42aa75f85f46425f51 69130 
libgettext-ruby1.8_1.91.0-1.2_all.deb
 2a1daed393171b536e260091e8312db427efed5f 68982 
libgettext-ruby1.9_1.91.0-1.2_all.deb
 59368c80c596bbbf2247c29ee1f7b00394144449 49288 
libgettext-ruby-util_1.91.0-1.2_all.deb
 2b99a710e3cfd2e5449f2b86a8def54a574960ed 229274 
libgettext-ruby-data_1.91.0-1.2_all.deb
Checksums-Sha256: 
 3022a9a08879c45689edfd5b1e93143e8551ef585276f77a6043a3831897d058 1337 
libgettext-ruby_1.91.0-1.2.dsc
 5f827272bebe53765a40da9d29e468fe74db9490b153bb9385f8d0f04d61d2bb 7143 
libgettext-ruby_1.91.0-1.2.diff.gz
 5316366503a666dc7e9e6fa9d6b79472818db97bf260b54d7e1914d077e83bd9 69130 
libgettext-ruby1.8_1.91.0-1.2_all.deb
 985296adf56d655e7aee708874ead924828e1b2bfbbbfe85cba28ee9fbdae13e 68982 
libgettext-ruby1.9_1.91.0-1.2_all.deb
 a86e208cabf535159ea153de5333bc6056996d3c94997c5d7aa905f30e7dd07b 49288 
libgettext-ruby-util_1.91.0-1.2_all.deb
 48133b71f162d89402c8c5e99b72a5b023d3f6f087a309743109d6bda9c0d877 229274 
libgettext-ruby-data_1.91.0-1.2_all.deb
Files: 
 904ac36f966a3403e6c99487d5812049 1337 interpreters optional 
libgettext-ruby_1.91.0-1.2.dsc
 d5f1d3a79de3c9ad90fbad417278d03f 7143 interpreters optional 
libgettext-ruby_1.91.0-1.2.diff.gz
 67cb03f07afea04165484bac7dd56a5a 69130 interpreters optional 
libgettext-ruby1.8_1.91.0-1.2_all.deb
 1016ed801a7dffa01e0ca57089ec11ca 68982 interpreters optional 
libgettext-ruby1.9_1.91.0-1.2_all.deb
 84bd21d7da47c9f9fabd48f100d7106a 49288 interpreters optional 
libgettext-ruby-util_1.91.0-1.2_all.deb
 3592df8ae18c84de8cf493c151078b27 229274 interpreters optional 
libgettext-ruby-data_1.91.0-1.2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkJ1+AACgkQ2A7zWou1J6/4XQCfQ2AewzaWFs+zxfk+qgN1OmLY
Fh4An1PUq3oUElZfjOdwGAcd89aKAGTd
=iHEp
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to