docker_rails_proxy 0.1.8 → 0.1.9

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: fdfc5f1dd0658381390e579aebafb630968d988e7ef84b496fb139295265164b
4
- data.tar.gz: 981fef93157bce97cd8f767abdb3f79aa81d9161e89c399dbe617ec2767a98c4
3
+ metadata.gz: '0882abc69188d3b117b591d556aaa8f455b2b39f7c202431395dad38b43f368e'
4
+ data.tar.gz: d9e0a97cfd5f2e20e8ee165aad48f039dc93a08f23ff1bc9d9df6ab0fdff0952
5
5
  SHA512:
6
- metadata.gz: b1786efd36b559e38e68ec0ab699acf596455a2229b1d6f483413907044a8ef9fcf68ec4eb9418b9ddb5db82fc8c8690e6be0bdf838bc40947316e61fe178da0
7
- data.tar.gz: 613b2069af30e06b70064c0e4b73d0046c439d4f3b351e8460e99f44a53b4452d5eb44570f39080fb7665cde023a918cde66f27fc0fb6db680e4faae66fca94c
6
+ metadata.gz: 617d811b66a5979841f060c9fae053a4854f841508505496e20671ce08ba735680c23c2a48cfdcf9d8f5fcc7b25a6486ce05ef7cf98dc15af97043185511242a
7
+ data.tar.gz: 95ac9930f12508e8973c64c7a905659e58d898e6fd90b685e5b1705ac82dce684f53582e1b7d6f40d26e91ee7949de69d11b409752168581d076600176cae55e
@@ -21,7 +21,7 @@ module DockerRailsProxy
21
21
  validates do
22
22
  self.data = YAML.load_file(options[:path])
23
23
 
24
- unless (data['kind'] == 'Config')
24
+ unless data['kind'] == 'Config'
25
25
  "#{options[:path]} is not a valid kubeconfig file"
26
26
  end
27
27
  end
@@ -33,13 +33,28 @@ module DockerRailsProxy
33
33
 
34
34
  data['clusters'].each do |hash|
35
35
  cluster = hash['cluster']
36
- cluster['certificate-authority'] = File.absolute_path(cluster['certificate-authority'], absolute_dir)
36
+
37
+ if cluster['certificate-authority'].present?
38
+ cluster['certificate-authority'] = File.absolute_path(
39
+ cluster['certificate-authority'], absolute_dir
40
+ )
41
+ end
37
42
  end
38
43
 
39
44
  data['users'].each do |hash|
40
45
  user = hash['user']
41
- user['client-certificate'] = File.absolute_path(user['client-certificate'], absolute_dir)
42
- user['client-key'] = File.absolute_path(user['client-key'], absolute_dir)
46
+
47
+ if user['client-certificate'].present?
48
+ user['client-certificate'] = File.absolute_path(
49
+ user['client-certificate'], absolute_dir
50
+ )
51
+ end
52
+
53
+ if user['client-key'].present?
54
+ user['client-key'] = File.absolute_path(
55
+ user['client-key'], absolute_dir
56
+ )
57
+ end
43
58
  end
44
59
  end
45
60
 
@@ -1,3 +1,3 @@
1
1
  module DockerRailsProxy
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_rails_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jairo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-04 00:00:00.000000000 Z
12
+ date: 2018-06-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Configures docker-compose and provides rails command helpers
15
15
  email: