lib/avro/builder/dsl.rb in avro-builder-0.15.0 vs lib/avro/builder/dsl.rb in avro-builder-0.16.0

- old
+ new

@@ -116,10 +116,18 @@ options: options, &block) end def eval_file(name) - file_path = find_file(name) + file_path = if namespace + begin + find_file([namespace, name].join('.')) + rescue FileNotFoundError + find_file(name) + end + else + find_file(name) + end instance_eval(File.read(file_path), file_path) end end end end