lib/tracksperanto.rb in tracksperanto-2.6.0 vs lib/tracksperanto.rb in tracksperanto-2.6.1
- old
+ new
@@ -1,18 +1,23 @@
require 'stringio'
require 'delegate'
require 'tempfile'
+require 'flame_channel_parser'
module Tracksperanto
PATH = File.expand_path(File.dirname(__FILE__))
- VERSION = '2.6.0'
+ VERSION = '2.6.1'
module Import; end
module Export; end
module Middleware; end
module Pipeline; end
+ class UnknownExporterError < NameError; end
+ class UnknownImporterError < NameError; end
+ class UnknownMiddlewareError < NameError; end
+
class << self
# Returns the array of all exporter classes defined
attr_accessor :exporters
# Returns the array of all importer classes defined
@@ -43,28 +48,28 @@
def self.get_middleware(name)
middlewares.each do | x |
return x if x.const_name.downcase == name.downcase
end
- raise NameError, "Unknown middleware #{name}"
+ raise UnknownMiddlewareError, "Unknown middleware #{name.inspect}"
end
# Case-insensitive search for an export module by name
def self.get_exporter(name)
exporters.each do | x |
return x if x.const_name.downcase == name.downcase
end
- raise NameError, "Unknown exporter #{name}"
+ raise UnknownExporterError, "Unknown exporter #{name.inspect}"
end
# Case-insensitive search for an export module by name
def self.get_importer(name)
importers.each do | x |
return x if x.const_name.downcase == name.downcase
end
- raise NameError, "Unknown importer #{name}"
+ raise UnknownImporterError, "Unknown importer #{name.inspect}"
end
end
%w(
returning