We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 068e522 commit ba5fa9bCopy full SHA for ba5fa9b
Rakefile
@@ -273,9 +273,11 @@ end
273
#
274
# Returns theme manifest hash
275
def verify_manifest(theme_path)
276
- manifest = File.join(theme_path, "manifest.yml")
277
- abort("rake aborted: repo must contain valid manifest.yml") unless File.exist? manifest
278
- manifest = YAML.load_file(manifest)
+ manifest_path = File.join(theme_path, "manifest.yml")
+ manifest_file = File.open( manifest_path )
+ abort("rake aborted: repo must contain valid manifest.yml") unless File.exist? manifest_file
279
+ manifest = YAML.load( manifest_file )
280
+ manifest_file.close
281
manifest
282
end
283
0 commit comments