bugZoneCheck - Bugs: bug #19875, Config is not a class (TypeError)

 
 

bug #19875: Config is not a class (TypeError)

Submitter:  Stephane Bortzmeyer <bortzmeyer>
Submitted:  Tue 15 May 2007 07:37:38 AM UTC
   
 
Category:  * config Severity:  High
Priority:  5 - Normal Item Group:  * Crash/Error
Status:  Fixed Privacy:  Public
Assigned to:  chabannf Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Jun 2010 09:43:19 AM UTC, comment #2: 

Fixed in CVS
All classes belong to a module most of them are in ZoneCheck::

Fabien CHABANNE <chabannf>
Group Member
Tue 15 May 2007 07:54:13 AM UTC, comment #1: 

The attached patch seems to fix the problem, by renaming the Config class to ZC_Config. May be using a module namespace, as suggested in http://rubyforge.org/pipermail/rubygems-developers/2004-September.txt.gz, would be better?

(file #12770)

Stephane Bortzmeyer <bortzmeyer>
Group administrator
Tue 15 May 2007 07:37:38 AM UTC, original submission:  

With recent versions of Ruby, apparently comes a RubyGems which define a class named... Config (see http://www.kde-apps.org/content/show.php?content=55644 for an example).

Therefore, Zonecheck crashes becauses it has a class Config (in zc/config.rb which is not qualified by a module)

% zonecheck gnu.org
/usr/local/libexec/zonecheck/zc/config.rb:43: Config is not a class (TypeError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /usr/local/libexec/zonecheck/zc/zonecheck.rb:34
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /local/bin/zonecheck:204

% ruby -v
ruby 1.8.5 (2006-12-04 patchlevel 2) [x86_64-linux]

Stephane Bortzmeyer <bortzmeyer>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #12770:  config-gems.patch.gz added by bortzmeyer (2KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chabannf (Updated the item)
  • -email is unavailable- added by bortzmeyer (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-22 chabannf Open/ClosedOpen Closed
    2010-06-02 chabannf StatusIn Progress Fixed
    2010-04-28 chabannf StatusConfirmed In Progress
    2010-02-04 chabannf StatusNone Confirmed
    2010-01-28 chabannf Assigned toNone chabannf
    2007-05-15 bortzmeyer Attached File- Added config-gems.patch.gz, #12770

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code