lib/comma.rb in crafterm-comma-0.2.0 vs lib/comma.rb in crafterm-comma-0.2.1

- old
+ new

@@ -1,7 +1,13 @@ require 'activesupport' -require 'fastercsv' require 'comma/extractors' + +if RUBY_VERSION =~ /^1.9/ + require 'csv' + FasterCSV = CSV +else + require 'fastercsv' +end class Array def to_comma(style = :default) options = {}