bin/tracksperanto in tracksperanto-1.7.0 vs bin/tracksperanto in tracksperanto-1.7.1

- old
+ new

@@ -60,10 +60,12 @@ } p.on(" -xm", "--xshift X_IN_PIXELS", Float, "Move the points left or right") {|sx| x_shift = sx } p.on(" -ym", "--yshift Y_IN_PIXELS", Float, "Move the points up or down") {|sx| y_shift = sx } p.on("--version", "Show the version and exit") {|v| puts "#{Tracksperanto::VERSION} running on Ruby #{RUBY_VERSION} on #{RUBY_PLATFORM}" + puts "Copyright 2008-#{Time.now.year} by Guerilla-DI (Julik Tarkhanov and contributors)" + puts "For questions and support contact info at guerilla-di.org" exit(0) } end begin @@ -73,11 +75,11 @@ puts parser exit(-1) end begin - reader_klass = Tracksperanto::Import.const_get(reader_name) + reader_klass = Tracksperanto.get_importer(reader_name) rescue NameError => e STDERR.puts "Unknown reader #{reader_name}, available readers: #{readers.join(', ')}" exit(-1) end @@ -107,10 +109,10 @@ pipe = Tracksperanto::Pipeline::Base.new pipe.progress_block = Spinner.new.method(:spin).to_proc if sole_format begin - pipe.exporters = [Tracksperanto::Export.const_get(sole_format)] + pipe.exporters = [Tracksperanto::Export.get_exporter(sole_format)] rescue NameError STDERR.puts "Unknown exporter #{sole_format}. Available exporters: #{writers.join(", ")}" exit(-1) end end \ No newline at end of file