lib/maestro/plugin/rake_tasks/package_task.rb in maestro-plugin-rake-tasks-1.0.3 vs lib/maestro/plugin/rake_tasks/package_task.rb in maestro-plugin-rake-tasks-1.0.4
- old
+ new
@@ -130,9 +130,11 @@
return @version unless File.exists?('.git')
manifest = JSON.parse(IO.read(@manifest_template_path))
if manifest.instance_of? Array
manifest.each { |m| m['version'] = manifest_version }
+ elsif !manifest['tasks'].nil? and manifest['tasks'].instance_of? Array
+ manifest['tasks'].each { |m| m['version'] = manifest_version }
else
manifest['version'] = manifest_version
end
File.open('manifest.json','w'){ |f| f.write(JSON.pretty_generate(manifest)) }