clash 1.3.1 → 1.4.0

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: 208b3196a4ba08b4020abc37b7a28e7667a252ec
4
- data.tar.gz: 0cf6b4dfa83d210be3078485f144ca96f83a5f7a
3
+ metadata.gz: 84334057b03504f28d870552b5750e798c00f987
4
+ data.tar.gz: 0dcff1bc13123cd660e2f0f9b2b713117a13b6e6
5
5
  SHA512:
6
- metadata.gz: 8f27fe45d7b4f195efaa8a7d750f6ed48aad133c2f8faa3c7ad9179359942b9a6cf594e1790dd1b8975125019f7cb6044f1cdd302172b8e2e525b6e2bef190b4
7
- data.tar.gz: 1862c320472aeba3290aa6eaa89aefb9c3a0f5ecb6c8b266cc1e175698320bae2af5174b7529f914e5524c3e2f6ee960482133a24feb63396b36598382bfa418
6
+ metadata.gz: f894e57b952220233a3fcae664d3c14f5128078cab8fb38278b3b3fa96ea0e23479753cea535ec616dad01123d4e88efa0f903393d18bcd15474258b5e29db24
7
+ data.tar.gz: 7c1b734353b93d53e2085a904cf574b3d67854ed8f08a8264e5256d5968322791d4167774cd3c18576726dc5b63a61498ea8bfef5296aeac5a5492c8e84e9dc3
data/bin/clash CHANGED
@@ -52,6 +52,10 @@ OptionParser.new do |opts|
52
52
  options[:list] = l
53
53
  end
54
54
 
55
+ opts.on("-d", "--debug", "Display output from system commands") do |d|
56
+ options[:debug] = d
57
+ end
58
+
55
59
  opts.on("-h", "--help", "Show this message") do |h|
56
60
  puts opts
57
61
  puts config_info
@@ -35,6 +35,13 @@ module Clash
35
35
  end
36
36
  end
37
37
 
38
+ def system(*cmd)
39
+ cmd = cmd.join(' ')
40
+ cmd += " > /dev/null" unless ENV['DEBUG']
41
+
42
+ Kernel.system cmd
43
+ end
44
+
38
45
  # Print a single character without a newline
39
46
  #
40
47
  def pout(str)
@@ -5,9 +5,14 @@ module Clash
5
5
  attr_accessor :tests
6
6
 
7
7
  def initialize(options={})
8
+ @options = options
9
+
8
10
  ENV['JEKYLL_ENV'] = 'test'
9
11
 
10
- @options = options
12
+ if @options[:debug]
13
+ ENV['DEBUG'] = 'true'
14
+ end
15
+
11
16
  @results = []
12
17
  @passed = []
13
18
  @failed = []
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.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: 1.3.1
4
+ version: 1.4.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-01-05 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy