[BioRuby-cvs] bioruby/lib/bio/util/restriction_enzyme/double_stranded cut_location_pair.rb, 1.4, 1.5

Trevor Wennblom trevor at dev.open-bio.org
Thu Mar 29 02:48:17 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/double_stranded
In directory dev.open-bio.org:/tmp/cvs-serv9353/bio/util/restriction_enzyme/double_stranded

Modified Files:
	cut_location_pair.rb 
Log Message:
Patch for Range weirdness.

Index: cut_location_pair.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cut_location_pair.rb	2 Jan 2007 06:18:38 -0000	1.4
--- cut_location_pair.rb	29 Mar 2007 02:48:15 -0000	1.5
***************
*** 63,67 ****
        a,b = init_with_array( pair[0] )
  
!     elsif pair[0].kind_of? Range # FIXME This seems to be broken?  Check tests
        a,b = init_with_array( [pair[0].first, pair[0].last] )
  
--- 63,70 ----
        a,b = init_with_array( pair[0] )
  
!     # no idea why this barfs without the second half during test/runner.rb
!     # are there two Range objects running around?
!     elsif pair[0].kind_of? Range or (pair[0].class.to_s == 'Range')
!     #elsif pair[0].kind_of? Range
        a,b = init_with_array( [pair[0].first, pair[0].last] )
  
***************
*** 108,110 ****
  end # CutLocationPair
  end # DoubleStranded
! end # Bio::RestrictionEnzyme
\ No newline at end of file
--- 111,113 ----
  end # CutLocationPair
  end # DoubleStranded
! end # Bio::RestrictionEnzyme




More information about the bioruby-cvs mailing list