lib/avrolution/compatibility_check.rb in avrolution-0.7.2 vs lib/avrolution/compatibility_check.rb in avrolution-0.8.0
- old
+ new
@@ -37,13 +37,10 @@
end
private
def check_schemas(path)
- vendor_bundle_path = File.join(path, 'vendor/bundle/')
- Dir[File.join(path, '**/*.avsc')].reject do |file|
- file.start_with?(vendor_bundle_path)
- end.each do |schema_file|
+ Avrolution::DiscoverSchemas.discover(path).each do |schema_file|
check_schema_compatibility(schema_file)
end
end
def check_schema_compatibility(file)