clash 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/clash +9 -0
  3. data/lib/clash/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7578dd8975d4a2863c507063edeeb8c6e81b6947
4
- data.tar.gz: 962ab2b1352c0d12cc081eea1cf7f99bca702659
3
+ metadata.gz: f2bafdd80169ca761b144ccbfbe8cd57b7c3183b
4
+ data.tar.gz: 750330a5f7efc8a1c7d6dc696af757bf97b27a99
5
5
  SHA512:
6
- metadata.gz: 72c7df0ac47463d509b9e86fcd6a3972ca62b4a2dc56e9de835b0fe683f2159dbc6f03c09a2096258040d2b8ea3ab63e4543482a4eb9a10757906ec862a49cb4
7
- data.tar.gz: 79727676a8ff21a233e9d0e61536bf0c60cf8f8d54bcf672c8fb268a51bdc2391b3413f1b5f2a474258275b7e1e468eea1d18b4c72aa9c8d7bce35e6f3581a8b
6
+ metadata.gz: c290dede233c2ad543ac0e8184e2e483ec25848eedb8a8068d8b3b9fb12b42d8b684e4e4017908fcff973204716a937fc56627f84cfbf4af275c9bbee8784f0b
7
+ data.tar.gz: 68b7ef006062231d180e29f10cbb02f1e783858470409e1a9eeba6a0d5697552e5826bdd0fa26c9616368114a0c91b6d3e280152c7712aca921b1f60d33d51ca
data/bin/clash CHANGED
@@ -42,12 +42,21 @@ OptionParser.new do |opts|
42
42
  end
43
43
  end
44
44
 
45
+ opts.on("-v", "--version", "Show version number") do |v|
46
+ options[:version] = v
47
+ end
48
+
45
49
  opts.on("-h", "--help", "Show this message") do |h|
46
50
  options[:help] = opts
47
51
  end
48
52
 
49
53
  end.parse!
50
54
 
55
+ if options[:version]
56
+ puts "Clash #{Clash::VERSION}"
57
+ abort
58
+ end
59
+
51
60
  if options[:help]
52
61
  IO.popen("less", "w") do |f|
53
62
  f.puts options[:help]
data/lib/clash/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
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.0.0
4
+ version: 2.0.1
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-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy