clash 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clash/test.rb +7 -0
- data/lib/clash/tests.rb +0 -7
- 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: 2984372de49be5ee46018005fb47973860b4caa4
|
4
|
+
data.tar.gz: 7f2f3d83ee0ce323f64499ada19acdb580cfc4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bebb2af30278ed73e90aaa7cce5a8c3c6137f51c53adfc890d4ac7a1c7581d37134b6acada5d66c333a16310e8a00c0aa5c2a1d1285a1814747bc98e944d842
|
7
|
+
data.tar.gz: 28fc84279d44e1bfcf4edd7fab8e7a1f1f90afd0b60bf027a65037c998a5795fe3532659537f5ce3aeeb58c13c3b5e73d2386641daaa6f37678bcb07b5d50cc1
|
data/lib/clash/test.rb
CHANGED
@@ -14,6 +14,7 @@ module Clash
|
|
14
14
|
|
15
15
|
def run
|
16
16
|
Dir.chdir(@options['dir']) do
|
17
|
+
clear_cache
|
17
18
|
system_cmd(@options['before'])
|
18
19
|
config
|
19
20
|
build if @options['build']
|
@@ -28,6 +29,12 @@ module Clash
|
|
28
29
|
results
|
29
30
|
end
|
30
31
|
|
32
|
+
def clear_cache
|
33
|
+
if File.exist? '.jekyll-metadata'
|
34
|
+
FileUtils.rm '.jekyll-metadata'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
31
38
|
def config
|
32
39
|
@options['config'].each do |name, file|
|
33
40
|
if name != 'jekyll'
|
data/lib/clash/tests.rb
CHANGED
@@ -44,7 +44,6 @@ module Clash
|
|
44
44
|
|
45
45
|
def run
|
46
46
|
Dir.chdir(@options[:path]) do
|
47
|
-
clear_cache
|
48
47
|
@tests.each_with_index do |options, index|
|
49
48
|
# If tests are limited, only run specified tests
|
50
49
|
#
|
@@ -56,12 +55,6 @@ module Clash
|
|
56
55
|
print_results
|
57
56
|
end
|
58
57
|
|
59
|
-
def clear_cache
|
60
|
-
if File.exist? '.jekyll-metadata'
|
61
|
-
FileUtils.rm '.jekyll-metadata'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
58
|
def run_test(options, index)
|
66
59
|
|
67
60
|
options['index'] = index + 1
|
data/lib/clash/version.rb
CHANGED