Fixed Ruby 1.8 performance regression for Nodes::In and Nodes::NotIn queries with very wide ranges that was caused by using Range#min and Range#max rather than Range#begin and Range#end. Ruby 1.8 uses Enumerable#min and Enumerable#max in Ranges, which calls to_a internally. It is not necessary to enumerate the range in order to construct the predicates. At the same time, an off-by-one error (failing test) with exclusive-end Ranges in Nodes::NotIn queries was fixed.
Fixed Ruby 1.8 performance regression for Nodes::In and Nodes::NotIn queries with very wide ranges that was caused by using Range#min and Range#max rather than Range#begin and Range#end. Ruby 1.8 uses Enumerable#min and Enumerable#max in Ranges, which calls to_a internally. It is not necessary to enumerate the range in order to construct the predicates. At the same time, an off-by-one error (failing test) with exclusive-end Ranges in Nodes::NotIn queries was fixed.

baerjam/rails,printercu/rails,lcreid/rails,Erol/rails,esparta/rails,starknx/rails,Vasfed/rails,jeremy/rails,BlakeWilliams/rails,Vasfed/rails,assain/rails,gauravtiwari/rails,yhirano55/rails,aditya-kapoor/rails,illacceptanything/illacceptanything,flanger001/rails,arunagw/rails,aditya-kapoor/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,Vasfed/rails,iainbeeston/rails,Eric-Guo/arel,mohitnatoo/rails,assain/rails,Envek/rails,Stellenticket/rails,guilleiguaran/motion-arel,yawboakye/rails,schuetzm/rails,jetthoughts/arel,illacceptanything/illacceptanything,ngpestelos/arel,amatsuda/arel,jacobmoe/arel,schuetzm/rails,yahonda/rails,shioyama/rails,palkan/rails,mechanicles/rails,schuetzm/rails,repinel/rails,untidy-hair/rails,yawboakye/rails,amitsuroliya/arel,pvalena/rails,joonyou/rails,utilum/rails,kmcphillips/rails,tjschuck/rails,utilum/rails,mechanicles/rails,georgeclaghorn/rails,kddeisz/rails,bogdanvlviv/rails,illacceptanything/illacceptanything,jacobmoe/arel,betesh/rails,Erol/rails,deraru/rails,prathamesh-sonpatki/rails,yalab/rails,tgxworld/rails,printercu/rails,vipulnsward/rails,vipulnsward/rails,fabianoleittes/rails,BlakeWilliams/rails,modernmsg/arel,jemc/arel,yalab/rails,yui-knk/arel,Stellenticket/rails,mohitnatoo/rails,assain/rails,eileencodes/rails,BlakeWilliams/rails,lcreid/rails,iainbeeston/rails,yahonda/rails,printercu/rails,starknx/rails,flanger001/rails,illacceptanything/illacceptanything,notapatch/rails,rafaelfranca/omg-rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,georgeclaghorn/rails,Edouard-chin/rails,fabianoleittes/rails,EmmaB/rails-1,lcreid/rails,repinel/rails,untidy-hair/rails,MSP-Greg/rails,eileencodes/rails,yahonda/rails,gauravtiwari/rails,betesh/rails,printercu/rails,zeckalpha/arel,illacceptanything/illacceptanything,untidy-hair/rails,bogdanvlviv/rails,brynary/arel,shioyama/rails,repinel/rails,illacceptanything/illacceptanything,arunagw/rails,Envek/rails,baerjam/rails,jeremy/rails,shioyama/rails,ngpestelos/arel,yhirano55/rails,maclover7/arel,arunagw/rails,starknx/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,eileencodes/rails,kddeisz/rails,EmmaB/rails-1,iainbeeston/rails,Edouard-chin/rails,pvalena/rails,modernmsg/arel,kmcphillips/rails,palkan/rails,jemc/arel,jeremy/rails,maclover7/arel,esparta/rails,MSP-Greg/rails,Stellenticket/rails,zeckalpha/arel,untidy-hair/rails,fabianoleittes/rails,universsky/arel,EmmaB/rails-1,kbrock/arel,slobodankovacevic/arel,rails/rails,mechanicles/rails,jeremy/rails,yahonda/rails,MSP-Greg/rails,deraru/rails,Envek/rails,esparta/rails,illacceptanything/illacceptanything,rails/arel,sferik/arel,georgeclaghorn/rails,jasnow/arel,fabianoleittes/rails,ifad/arel-sybase-visitor,yawboakye/rails,utilum/rails,felixbuenemann/arel,illacceptanything/illacceptanything,palkan/rails,amitsuroliya/arel,tgxworld/rails,betesh/rails,utilum/rails,tjschuck/rails,iainbeeston/rails,bogdanvlviv/rails,bogdanvlviv/rails,mohitnatoo/rails,MSP-Greg/rails,Erol/rails,prathamesh-sonpatki/rails,kmcphillips/rails,schuetzm/rails,prathamesh-sonpatki/rails,tjschuck/rails,eileencodes/rails,rails/rails,notapatch/rails,notapatch/rails,gauravtiwari/rails,joonyou/rails,rails/rails,joonyou/rails,arunagw/rails,yahonda/arel,aditya-kapoor/rails,flanger001/rails,BlakeWilliams/rails,esparta/rails,shioyama/rails,repinel/rails,jsanders/arel,flanger001/rails,yui-knk/arel,assain/rails,vipulnsward/arel,tjschuck/rails,joonyou/rails,mohitnatoo/rails,yhirano55/rails,deraru/rails,tacid/arel,Edouard-chin/rails,betesh/rails,tgxworld/rails,Stellenticket/rails,baerjam/rails,yhirano55/rails,aditya-kapoor/rails,Vasfed/rails,rafaelfranca/omg-rails,vipulnsward/rails,universsky/arel,mechanicles/rails,yalab/rails,deraru/rails,pvalena/rails,tacid/arel,lcreid/rails,yahonda/arel,baerjam/rails,NARKOZ/arel,tgxworld/rails,palkan/rails,Eric-Guo/arel,georgeclaghorn/rails,Erol/rails,kbrock/arel,illacceptanything/illacceptanything,vipulnsward/rails,rafaelfranca/omg-rails,kmcphillips/rails,prathamesh-sonpatki/arel,yalab/rails,yawboakye/rails,Edouard-chin/rails,kddeisz/rails,rails/rails,pvalena/rails,kddeisz/rails,notapatch/rails,prathamesh-sonpatki/rails,jasnow/arel,Envek/rails