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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 354a9f9e3c1c66b7bc4f3db6671b9e9635a23ee1d2642ef199d186c53bde73df
4
- data.tar.gz: 4fb427852cff0bb16156c35eaf1e48fd1f8e4243bee19755fe6cf851986d4987
3
+ metadata.gz: e525a4137016b92472239033b86cc80e65ecd8fa75e77a0cc41c8639efbe8087
4
+ data.tar.gz: f59b1ccf37571aafb5dbbab81513b95dffc4f1b0fcefd61a6ff4c963e164a17e
5
5
  SHA512:
6
- metadata.gz: 3c962fd44c645e70ff38c13c509760b51e6bc0d6a34f15d8d963e54c4ddf6507edf3f7ad077a723319505e293bd5980467385e12762fa7a6bd12ce32e550be7b
7
- data.tar.gz: b84d7c42ba7a730d32d2fe097584ad9bee1fb283ef8f343a839bf2d741fa6ab00f92abad0173dfc4034bc955dfa5ce69a5dea262cb15a5b6a34cccc65216fc5c
6
+ metadata.gz: bdf15b504417a7cf3fc8653938317b72efbf60b4cccff6096f1d25f19875110d972385ba8c3834c83ed704ddf651f580608c4e36a4b782e10ec9c9ac593762b6
7
+ data.tar.gz: 9fae6f5523f4df145282221ac8021376c3dca4a061592ad431e6c7c7441700e3f337d03bc8074eebae5a3f8f841c9bbaad65a1774ddf32f8228c6cd113cd6f1c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jwtear (1.0.1.pre)
4
+ jwtear (1.0.3)
5
5
  gli (~> 2.19, >= 2.19.0)
6
6
  json-jwt (~> 1.10, >= 1.10.2)
7
7
  jwe (~> 0.4.0)
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
@@ -1,3 +1,3 @@
1
1
  module JWTear
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwtear
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - KING SABRI