Remove warnings related to Enumerator.new in ruby 2.0 #1

Closed
wants to merge 3 commits into
from
Commits on Jan 7, 2013
  1. Rename duplicated method name raising warning

    carlosantoniodasilva committed Jan 7, 2013
        test/unit warning: method TestDirectedGraph#test_reverse is redefined
  2. Remove warnings related to Enumerator.enw in ruby 2.0

    carlosantoniodasilva committed Jan 7, 2013
    Warnings:
    
      ./rgl/lib/rgl/transitivity.rb:119:
          warning: Enumerator.new without a block is deprecated; use Object#to_enum
      ./rgl/lib/rgl/transitivity.rb:160:
          warning: Enumerator.new without a block is deprecated; use Object#to_enum
    
    Changing to Object#to_enum fixes them, and all tests are green in:
    1.8.7-p370, 1.9.3-p327, and 2.0.0-rc1.