docman 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docman/deployers/deployer.rb +2 -1
- data/lib/docman/docroot_config.rb +2 -2
- data/lib/docman/info.rb +1 -1
- data/lib/docman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ab28b4d09d14091fa0a8e14cdaebd4c90213448
|
4
|
+
data.tar.gz: 52d56c9c9c70599041e70288f5b0a96fe37090b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bc615576cbb21fc0d0d53f26088001fa2dafad22242dafda1e1da3c4c70047ad20c745f5e2139bd08ce2c4ed04f519565ae9b7910a58d2dfd2d45e32a71ed4
|
7
|
+
data.tar.gz: 89a71cd7263864e6cebde5b2b687f33ea57b986533e68dcbec20f7ae7982e864676930188fb5a1c7132620d6aae766f5478c27c6b677dc2c557df043390aad67
|
@@ -151,7 +151,8 @@ module Docman
|
|
151
151
|
def build_recursive(info = nil)
|
152
152
|
info = info ? info : @docroot_config.structure
|
153
153
|
build_dir(info)
|
154
|
-
info['children'].
|
154
|
+
info['children'].sort_by!{|a| a['order']}
|
155
|
+
info['children'].each do |child|
|
155
156
|
build_recursive(child)
|
156
157
|
end
|
157
158
|
end
|
@@ -27,7 +27,7 @@ module Docman
|
|
27
27
|
def structure_build(path, prefix = '', parent = nil)
|
28
28
|
return unless File.file? File.join(path, 'info.yaml')
|
29
29
|
|
30
|
-
children =
|
30
|
+
children = []
|
31
31
|
info = YAML::load_file(File.join(path, 'info.yaml'))
|
32
32
|
@raw_infos[File.basename path] = YAML::load_file(File.join(path, 'info.yaml'))
|
33
33
|
unless info['status'].nil?
|
@@ -58,7 +58,7 @@ module Docman
|
|
58
58
|
if File.directory?(full_path)
|
59
59
|
dir_hash = structure_build(full_path, prefix, i)
|
60
60
|
unless dir_hash == nil
|
61
|
-
children
|
61
|
+
children << dir_hash
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
data/lib/docman/info.rb
CHANGED
data/lib/docman/version.rb
CHANGED