lib/tracksperanto.rb in tracksperanto-1.7.4 vs lib/tracksperanto.rb in tracksperanto-1.7.5
- old
+ new
@@ -2,11 +2,11 @@
require 'delegate'
require 'tempfile'
module Tracksperanto
PATH = File.expand_path(File.dirname(__FILE__))
- VERSION = '1.7.4'
+ VERSION = '1.7.5'
module Import; end
module Export; end
module Middleware; end
module Pipeline; end
@@ -40,22 +40,20 @@
self.exporters, self.importers, self.middlewares = [], [], []
# Case-insensitive search for an export module by name
def self.get_exporter(name)
exporters.each do | x |
- normalized_name = x.to_s.split("::")[-1].downcase
- return x if normalized_name == name.downcase
+ return x if x.const_name.downcase == name.downcase
end
raise NameError, "Unknown exporter #{name}"
end
# Case-insensitive search for an export module by name
def self.get_importer(name)
importers.each do | x |
- normalized_name = x.to_s.split("::")[-1].downcase
- return x if normalized_name == name.downcase
+ return x if x.const_name.downcase == name.downcase
end
raise NameError, "Unknown importer #{name}"
end
end
@@ -68,9 +66,10 @@
zip_tuples
keyframe
tracker
format_detector
ext_io
+ progressive_io
simple_export
uv_coordinates
).each do | submodule |
require File.join(Tracksperanto::PATH, "tracksperanto", submodule)
end
\ No newline at end of file