lib/schemacop/v3/global_context.rb in schemacop-3.0.16 vs lib/schemacop/v3/global_context.rb in schemacop-3.0.17
- old
+ new
@@ -84,10 +84,10 @@
# Run file and collect schemas
begin
@current_schemas = []
env = ScopedEnv.new(self, DSL_METHODS)
- env.instance_eval IO.read(path)
+ env.instance_eval File.read(path)
rescue StandardError => e
fail "Could not load schema #{path.inspect}: #{e.message}"
end
# Load schemas