bogo-cli 0.1.30 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bogo-cli.rb +5 -0
- data/lib/bogo-cli/setup.rb +17 -2
- data/lib/bogo-cli/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2540114ae7a14349139d252eb4ddd284c9f27ec
|
4
|
+
data.tar.gz: f4003172f6d8c64c87d72815ed41a6dc38af9e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 261c852566e3588ee7907f2abc015fdb09cee304c7e7759d8541e1291035e2f52a6e9740c663f4183aa5bb3840d877671092eb1682d0e748736b974d39dd3532
|
7
|
+
data.tar.gz: 09cc190c1d47ce27ed762a908b8292dc555c609221156510b1d090e055c489640a6d2a5d7d27be545fe4135f815ab3db9a558e05cbc06132a9d9b04f0ca225ff
|
data/CHANGELOG.md
CHANGED
data/lib/bogo-cli.rb
CHANGED
data/lib/bogo-cli/setup.rb
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
# Trigger shutdown on INT or TERM signals
|
2
|
-
Signal.trap('INT'){
|
3
|
-
|
2
|
+
o_int = Signal.trap('INT'){
|
3
|
+
o_int.call if o_int.respond_to?(:call)
|
4
|
+
if(Bogo::Cli.exit_on_signal == false)
|
5
|
+
Thread.main.raise SignalException.new('SIGINT')
|
6
|
+
else
|
7
|
+
exit 0
|
8
|
+
end
|
9
|
+
}
|
10
|
+
|
11
|
+
o_term = Signal.trap('TERM'){
|
12
|
+
o_int.call if o_int.respond_to?(:call)
|
13
|
+
if(Bogo::Cli.exit_on_signal == false)
|
14
|
+
Thread.main.raise SignalException.new('SIGTERM')
|
15
|
+
else
|
16
|
+
exit 0
|
17
|
+
end
|
18
|
+
}
|
4
19
|
|
5
20
|
require 'bogo-cli'
|
6
21
|
|
data/lib/bogo-cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bogo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo
|
@@ -101,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.4.8
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: CLI Helper libraries
|
108
108
|
test_files: []
|
109
|
-
has_rdoc:
|