clash 1.5.2 → 1.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b242a47cc88afe946b11bf6ac8398411b7c1facd
4
- data.tar.gz: f28a0d84a643ea7e7ee0df96190dfb0e7ae2c32f
3
+ metadata.gz: 2984372de49be5ee46018005fb47973860b4caa4
4
+ data.tar.gz: 7f2f3d83ee0ce323f64499ada19acdb580cfc4cc
5
5
  SHA512:
6
- metadata.gz: e57195204bb45922d892f1b16b36bb4f0776e8e1eefa6a66808ecb61853e3bd291a7bbbfdcc22f56421c2110a456dd99c515e96c97f6228612c978bf59165ec2
7
- data.tar.gz: 2c9fa25482817d89f048fa79bb73af84669ec4796f9645b5875ba412107a0582d6451e1335f778835a2237cdf11a737cf3d4e95fb17e025e54ff56919103c130
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
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
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: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis