clash 2.2.5 → 2.3.0
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 +6 -3
- data/lib/clash/tests.rb +0 -2
- data/lib/clash/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a861f95c82ddaffa2969417d39e83c47eede3b7
|
4
|
+
data.tar.gz: 4235032073a803976f6266c40b659809e3ee1c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f59aeba335ee80fae2efbcbc30a9acbc44ffb6b2b22310a94d1df1fbc8030c364910194cbe20f79017c178b23b3badab935c604fab07575867526e263f0b27d9
|
7
|
+
data.tar.gz: 8abb677255c499fb07489c2b93a7c89e30c40e9e4d833af48c4891b16fe2c32ddbc101ec722b7882c99ffd528844e4a59e0f8670724810daf95c0d531099d8d5
|
data/lib/clash/test.rb
CHANGED
@@ -16,7 +16,7 @@ module Clash
|
|
16
16
|
def run
|
17
17
|
Dir.chdir(@options['dir']) do
|
18
18
|
clear_cache
|
19
|
-
system_cmd(@options['before'])
|
19
|
+
system_cmd(@options['before'], @options['trace'])
|
20
20
|
config
|
21
21
|
build if @options['build']
|
22
22
|
unless @options['build_only']
|
@@ -102,15 +102,18 @@ module Clash
|
|
102
102
|
system "jekyll build #{options}"
|
103
103
|
end
|
104
104
|
|
105
|
-
def system_cmd(cmds)
|
105
|
+
def system_cmd(cmds, trace=nil)
|
106
|
+
t = ENV['TRACE']
|
107
|
+
ENV['TRACE'] = 'true' if trace
|
106
108
|
cmds = Array(cmds)
|
107
109
|
cmds.each {|cmd|
|
108
110
|
if @options['tasks'].include?(cmd)
|
109
|
-
system_cmd(@options['tasks'][cmd])
|
111
|
+
system_cmd(@options['tasks'][cmd], trace)
|
110
112
|
else
|
111
113
|
system(cmd)
|
112
114
|
end
|
113
115
|
}
|
116
|
+
ENV['TRACE'] = t
|
114
117
|
end
|
115
118
|
|
116
119
|
def accept
|
data/lib/clash/tests.rb
CHANGED
data/lib/clash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- brandon@imathis.com
|
114
114
|
executables:
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.4.
|
157
|
+
rubygems_version: 2.4.5
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: A diff based testing framework for static sites.
|