Your message dated Thu, 06 Nov 2008 16:47:07 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#503955: fixed in libgettext-ruby 1.91.0-2.1
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-2.1

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-2.1_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby-data_1.91.0-2.1_all.deb
libgettext-ruby-util_1.91.0-2.1_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby-util_1.91.0-2.1_all.deb
libgettext-ruby1.8_1.91.0-2.1_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby1.8_1.91.0-2.1_all.deb
libgettext-ruby1.9_1.91.0-2.1_all.deb
  to pool/main/libg/libgettext-ruby/libgettext-ruby1.9_1.91.0-2.1_all.deb
libgettext-ruby_1.91.0-2.1.diff.gz
  to pool/main/libg/libgettext-ruby/libgettext-ruby_1.91.0-2.1.diff.gz
libgettext-ruby_1.91.0-2.1.dsc
  to pool/main/libg/libgettext-ruby/libgettext-ruby_1.91.0-2.1.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 10:06:16 -0600
Source: libgettext-ruby
Binary: libgettext-ruby1.8 libgettext-ruby1.9 libgettext-ruby-util 
libgettext-ruby-data
Architecture: source all
Version: 1.91.0-2.1
Distribution: unstable
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-2.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Fixed Rails 2.1 compatibility problem (Closes: #503955)
Checksums-Sha1: 
 804f0ecb9f65436c574cf0e95f980729d35130f6 1335 libgettext-ruby_1.91.0-2.1.dsc
 cd0f312c2805a84c996bdb2b246c89ae15845124 7774 
libgettext-ruby_1.91.0-2.1.diff.gz
 a7ff1bc1bf377dd9c15566d4a168c4e8babbdcf1 69406 
libgettext-ruby1.8_1.91.0-2.1_all.deb
 ab6c4070beb8fbea688ad906dd1e0777a6afa554 69244 
libgettext-ruby1.9_1.91.0-2.1_all.deb
 c3b9dc81c27b008933c3eab32915d46a1918ebb7 49288 
libgettext-ruby-util_1.91.0-2.1_all.deb
 1f161993c73e42f03a20de887ca42937fdf16dd9 229322 
libgettext-ruby-data_1.91.0-2.1_all.deb
Checksums-Sha256: 
 0ca7a5bc8afac36c0b07560c963571ea32658ffaf1038fe2af543fa4b6c00b7f 1335 
libgettext-ruby_1.91.0-2.1.dsc
 9081941acb1ff68c422e808d01d5af529fe3cb83330f024322898913088df9d5 7774 
libgettext-ruby_1.91.0-2.1.diff.gz
 1608629287f7da764bbd8c3da1c5ee9b0ed1c42914d03de1c6cebfc1adfeef89 69406 
libgettext-ruby1.8_1.91.0-2.1_all.deb
 47dbb5047b5c84a87c7cb1827cc11fde0547f9c89f9651d23d54fb8c87f314e6 69244 
libgettext-ruby1.9_1.91.0-2.1_all.deb
 be5a9b712f702cb8b62b6819782f43b03604475a7c27756f788d1a990ce37cc8 49288 
libgettext-ruby-util_1.91.0-2.1_all.deb
 b057ad8d08567da7fca833ac99a7e62f9458d863b7bb6b8ebd39678e23953af3 229322 
libgettext-ruby-data_1.91.0-2.1_all.deb
Files: 
 89edebcf52c3d2cdbf4e7638630ce360 1335 interpreters optional 
libgettext-ruby_1.91.0-2.1.dsc
 32d7714dff7dedd1a1269c3c0f924017 7774 interpreters optional 
libgettext-ruby_1.91.0-2.1.diff.gz
 e7459eb677b0c65acd5f6c9f72a9e040 69406 interpreters optional 
libgettext-ruby1.8_1.91.0-2.1_all.deb
 0b91c121e735281a9e8c4c1e2dc9c403 69244 interpreters optional 
libgettext-ruby1.9_1.91.0-2.1_all.deb
 367ef99e3f4301d631dd7e4034de559e 49288 interpreters optional 
libgettext-ruby-util_1.91.0-2.1_all.deb
 fb83b9f305d8874420071f032f82146a 229322 interpreters optional 
libgettext-ruby-data_1.91.0-2.1_all.deb

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

iEYEARECAAYFAkkJ27QACgkQ2A7zWou1J6/lNgCguXtJGNiGTDSJjMGiXasREx0K
ApoAoJ83f4tWNnuQUqiL2oiXcOpJDn8u
=ehIy
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to