clash 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f038c9d8b4b1cc0df3cb05eb1e66a09bcc33e5d6
4
- data.tar.gz: 5ffd37edc3f92f74b9268d2fc9eb827cffc77c76
3
+ metadata.gz: d0606a7913d5ab58184f5ca335279aa7bd6e5fbf
4
+ data.tar.gz: 841233b63bf339bf85fade7f3ebe31067023dd00
5
5
  SHA512:
6
- metadata.gz: a79902e390843533618c831035f9c6fd20c9df2a148827b826781b6173c75291cf9a834ca7b531e5b4e058b4c324e0b4dc34d60d998bb60f6c1b30b48e23ae49
7
- data.tar.gz: 6a45656ef314abe34543bf54312b7b6404e1dc59f335f9686dbfd5829eb85ed88f17d29f21a8c88cb8f090dccfea77325637c46a47250629e6c78e9b3a1655ac
6
+ metadata.gz: 481b795af4bbc9e6f6705ee42c060cc613e8b133a9d1be7bb18ad954884fc7bc3ce327f9fc8e6ef6abfe805f4d0aef8316fd1953d6d72c01d6d343238e7c2eb9
7
+ data.tar.gz: 315c52a91e9aecd677cd540860d4a5584f802c28bc3b9aa3c92f0eecd7eefda755d0441cbd0b45f056eb09a7e368bf8044ff6d2394425c08cb24131e48467130
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clash
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis