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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be90c028c475aa2782bbc5d85c670a8063474cf3
4
- data.tar.gz: b160b85a2a5240f9f5ef97b935f5e70936e25c12
3
+ metadata.gz: 0a861f95c82ddaffa2969417d39e83c47eede3b7
4
+ data.tar.gz: 4235032073a803976f6266c40b659809e3ee1c8b
5
5
  SHA512:
6
- metadata.gz: 79ad060b484a42f03a514f9f6135a789cf24fe10d6ce899a6060facbd2311b4d9d49d6bc484e41048a52e10f6572be45811d21f53f31908e54561a500429f448
7
- data.tar.gz: 315a34a0615f80ca686af9f272e0fe89192066294dac43af2fa49bd7419304e1df05b04f01687a54219839a33a55ab7479bed48f16b1ab698b760dc947467345
6
+ metadata.gz: f59aeba335ee80fae2efbcbc30a9acbc44ffb6b2b22310a94d1df1fbc8030c364910194cbe20f79017c178b23b3badab935c604fab07575867526e263f0b27d9
7
+ data.tar.gz: 8abb677255c499fb07489c2b93a7c89e30c40e9e4d833af48c4891b16fe2c32ddbc101ec722b7882c99ffd528844e4a59e0f8670724810daf95c0d531099d8d5
@@ -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
@@ -151,8 +151,6 @@ module Clash
151
151
  end
152
152
 
153
153
  def print_results
154
-
155
-
156
154
  puts boldit("\n\nFailures:") unless @results.empty?
157
155
  @results.each do |results|
158
156
  puts "\n#{results.join('')}"
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "2.2.5"
2
+ VERSION = "2.3.0"
3
3
  end
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.2.5
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-05-02 00:00:00.000000000 Z
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: A diff based testing framework for static sites.
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.6
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.