clash 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/clash/scaffold.rb +7 -1
- data/lib/clash/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: d0606a7913d5ab58184f5ca335279aa7bd6e5fbf
|
4
|
+
data.tar.gz: 841233b63bf339bf85fade7f3ebe31067023dd00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 481b795af4bbc9e6f6705ee42c060cc613e8b133a9d1be7bb18ad954884fc7bc3ce327f9fc8e6ef6abfe805f4d0aef8316fd1953d6d72c01d6d343238e7c2eb9
|
7
|
+
data.tar.gz: 315c52a91e9aecd677cd540860d4a5584f802c28bc3b9aa3c92f0eecd7eefda755d0441cbd0b45f056eb09a7e368bf8044ff6d2394425c08cb24131e48467130
|
data/lib/clash/scaffold.rb
CHANGED
@@ -42,7 +42,7 @@ module Clash
|
|
42
42
|
|
43
43
|
def print_test_files(path)
|
44
44
|
FileUtils.cd path do
|
45
|
-
files = Dir['**/*']
|
45
|
+
files = sort_file_list(Dir['**/*'])
|
46
46
|
files.map! { |f|
|
47
47
|
if f.match /\//
|
48
48
|
f.gsub!(/[^\/]+\//, ' ')
|
@@ -56,6 +56,12 @@ module Clash
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
def sort_file_list(files)
|
60
|
+
plain_files = files.select { |f| !f.match(/\//) && !File.directory?(f) }
|
61
|
+
files_in_dirs = files - plain_files
|
62
|
+
files_in_dirs.sort.concat plain_files.sort
|
63
|
+
end
|
64
|
+
|
59
65
|
def test_template
|
60
66
|
File.expand_path("../../scaffold/site", File.dirname(__FILE__))
|
61
67
|
end
|
data/lib/clash/version.rb
CHANGED