clash 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/clash +9 -0
- data/lib/clash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2bafdd80169ca761b144ccbfbe8cd57b7c3183b
|
4
|
+
data.tar.gz: 750330a5f7efc8a1c7d6dc696af757bf97b27a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|