k8s_kit 0.0.3 → 0.0.4

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: f864a9d589a62538bb57fdef9d31a92a5397c3c39131abb7357b519d58584c60
4
- data.tar.gz: a4b550b0cfb65be96c3487c717f30a0b95ad05ab7977adca7b92d79fc1421852
3
+ metadata.gz: ae82ed840f67c3d5b93bc0ad43344c0555e13339ac98f333f91fedc3d4d9f581
4
+ data.tar.gz: ed004036d732b17ce26b7f4605987d710c436fbc7c58929c7596f60918693943
5
5
  SHA512:
6
- metadata.gz: 6ae630cad1725a0efc667cd84ed13fed32411a9713b1c83ba3c37e5f6446576043ad0f89b3f5ab589ed8aea2b22f22b101486b5ba8a78cf5fb9a3d56cae012a1
7
- data.tar.gz: 608e2694761bcd1937e2f1b82c21ba0b026ba693b25d8396e06625061b42b52f90ae27dbcea70c6899de52b5185f5d818433aa4359c278735372e2067f5f986f
6
+ metadata.gz: 315fb26d24571178050e397b48ed56b6e75a0b126675ca4cf902e32d9ddc77b92922237be8a5d5674ade1522c3e3b1729ae9df0dbb744ce0dad49db3f520b05a
7
+ data.tar.gz: 03d1d2feba03d735b4f1cb595a20ab43e0c7550a49f3964b38fbbd2e4199ad593c145a16cc195bdd3683f821e63ef6c73e3a39b6c76c8874d6462564bf3818fe
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ .byebug_history
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- k8s_kit (0.0.2)
4
+ k8s_kit (0.0.3)
5
5
  gli (= 2.18.1)
6
6
 
7
7
  GEM
@@ -16,6 +16,7 @@ GEM
16
16
  thor (~> 0.19)
17
17
  backports (3.15.0)
18
18
  builder (3.2.3)
19
+ byebug (11.0.1)
19
20
  childprocess (2.0.0)
20
21
  rake (< 13.0)
21
22
  contracts (0.16.0)
@@ -54,6 +55,7 @@ PLATFORMS
54
55
 
55
56
  DEPENDENCIES
56
57
  aruba
58
+ byebug
57
59
  k8s_kit!
58
60
  rake
59
61
  rdoc
@@ -1,13 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'gli'
3
- begin # XXX: Remove this begin/rescue before distributing your app
4
3
  require 'k8s_kit'
5
- rescue LoadError
6
- STDERR.puts "In development, you need to use `bundle exec bin/k8s_kit` to run your app"
7
- STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
8
- STDERR.puts "Feel free to remove this message from bin/k8s_kit now"
9
- exit 64
10
- end
11
4
 
12
5
  class App
13
6
  extend GLI::App
@@ -66,7 +59,12 @@ class App
66
59
  on_error do |exception|
67
60
  # Error logic here
68
61
  # return false to skip default error handling
69
- true
62
+ case exception
63
+ when SystemExit
64
+ exit exception.status
65
+ else
66
+ true
67
+ end
70
68
  end
71
69
  end
72
70
 
@@ -14,6 +14,7 @@ spec = Gem::Specification.new do |s|
14
14
  s.rdoc_options << '--title' << 'k8s_kit' << '--main' << 'README.rdoc' << '-ri'
15
15
  s.bindir = 'bin'
16
16
  s.executables << 'k8s_kit'
17
+ s.add_development_dependency('byebug')
17
18
  s.add_development_dependency('rake')
18
19
  s.add_development_dependency('rdoc')
19
20
  s.add_development_dependency('aruba')
@@ -1,3 +1,5 @@
1
+ require 'byebug'
2
+
1
3
  module K8sKit
2
4
  class Job
3
5
  attr_reader :context, :name
@@ -1,3 +1,3 @@
1
1
  module K8sKit
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k8s_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: byebug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement