Sebb created WHIMSY-198:
---------------------------

             Summary: Inconsistent class inheritance
                 Key: WHIMSY-198
                 URL: https://issues.apache.org/jira/browse/WHIMSY-198
             Project: Whimsy
          Issue Type: Bug
            Reporter: Sebb


The whimy/asf library has some inconsistent class inheritance.

Person and Committee sometimes inherit from Base and sometimes not.

This is confusing, and means that some of the library files cannot easily be 
tested directly.

For example, adding the following to whimsy/asf/member.rb 

if __FILE__ == $0
  $LOAD_PATH.unshift '/srv/whimsy/lib'
  require 'whimsy/asf'
  puts ASF::Member.list
end
causes the error: superclass mismatch for class Person (TypeError)

However it is possible to use the following requires (at least at present):

if __FILE__ == $0
  $LOAD_PATH.unshift '/srv/whimsy/lib'
  require 'whimsy/asf/config'
  require 'whimsy/asf/svn'
  puts ASF::Member.list
end





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to