lib/application.rb in docman-0.0.64 vs lib/application.rb in docman-0.0.65
- old
+ new
@@ -8,10 +8,11 @@
require 'docman/config'
require 'docman/logging'
require 'docman/context'
require 'singleton'
require 'logger'
+require 'json'
require 'docman/builders/builder'
require 'docman/builders/dir_builder'
require 'docman/builders/git_direct_builder'
require 'docman/builders/git_strip_builder'
@@ -145,10 +146,10 @@
@docroot_config.chain(info).values.each do |item|
#result[item['name']] = item['repo']
result.merge! info_recursive(item)
end
end
- File.open(file, 'w') {|f| f.write result}
+ File.open(file, 'w') {|f| f.write result.to_json}
result
end
def info_recursive(info)
result = {}