lib/distribute_reads.rb in distribute_reads-0.2.2 vs lib/distribute_reads.rb in distribute_reads-0.2.3

- old
+ new

@@ -67,9 +67,17 @@ else raise DistributeReads::Error, "Option not supported with this adapter" end end + # private + def self.makara3? + unless defined?(@makara3) + @makara3 = Gem::Version.new(Makara::VERSION.to_s) < Gem::Version.new("0.4.0") + end + @makara3 + end + # legacy def self.default_to_primary !by_default end