jwtear 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/jwtear +10 -0
- data/lib/jwtear/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e525a4137016b92472239033b86cc80e65ecd8fa75e77a0cc41c8639efbe8087
|
4
|
+
data.tar.gz: f59b1ccf37571aafb5dbbab81513b95dffc4f1b0fcefd61a6ff4c963e164a17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdf15b504417a7cf3fc8653938317b72efbf60b4cccff6096f1d25f19875110d972385ba8c3834c83ed704ddf651f580608c4e36a4b782e10ec9c9ac593762b6
|
7
|
+
data.tar.gz: 9fae6f5523f4df145282221ac8021376c3dca4a061592ad431e6c7c7441700e3f337d03bc8074eebae5a3f8f841c9bbaad65a1774ddf32f8228c6cd113cd6f1c
|
data/Gemfile.lock
CHANGED
data/bin/jwtear
CHANGED
@@ -39,9 +39,19 @@ module JWTear
|
|
39
39
|
dir = File.expand_path(File.join(File.dirname(__FILE__), ['..', 'plugins']))
|
40
40
|
commands_from dir if Dir.exist? dir
|
41
41
|
|
42
|
+
trap("INT") do
|
43
|
+
puts
|
44
|
+
print_error "User interruption!"
|
45
|
+
print_warning "Exiting jwtear process."
|
46
|
+
exit!
|
47
|
+
end
|
48
|
+
|
49
|
+
puts banner if ARGV.empty?
|
42
50
|
on_error do |exception|
|
43
51
|
puts banner
|
44
52
|
case exception
|
53
|
+
when GLI::UnknownGlobalArgument
|
54
|
+
print_error "#{exception.message}"
|
45
55
|
when GLI::MissingRequiredArgumentsException
|
46
56
|
print_error "Option #{exception.message}"
|
47
57
|
when OptionParser::MissingArgument
|
data/lib/jwtear/version.rb
CHANGED