clowder-common-ruby 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e13c77144baf198f01813107af80aa719296d735f0983e692680e12b9758b20
4
- data.tar.gz: e93a325311403f9be4212729416d44a292d1677a485f112621a73b5e2895407b
3
+ metadata.gz: 5c59a995af455cae8eec63b23c3ca984e595dfda958606f2795c57039651084f
4
+ data.tar.gz: 4d8acca543a364ccec8461cdb5edb9836b54ab65e2db6dff95913107dfb94f91
5
5
  SHA512:
6
- metadata.gz: 333b12ab4020f08fa2178e68a235c84acccb6ff4cc4fa0d36326aacd082cd3954a80494d4feeb1c21ff1ec58ddc2a7197a6d24c1cb28a81125072ab15b682d36
7
- data.tar.gz: 28477690d1097f97f4ef1d152b5b2d6ebc7b2e0530611ea8ab3e9283b8fbc7e1712dcc7d7779194df575846d67a8a3a4b4ed16616984814b6733da15e2278dba
6
+ metadata.gz: 2b340953eaa8ba5126296aa0403ebc6900e38ebe36a024ac82688ab5f8db0a260a22f6ac943ecb2d8f40f2f7add2604c85a04589e618da01724ee2dd7ab5bf0d
7
+ data.tar.gz: f766c81ef5663fe95f6cf8642eea32ac67a955d8f1a130fe3f0f95e83ab9a1c9c52c6e077f215de5fbdfad078b7e3c2a37084e86c0c743ec2167d9689f64f25c
@@ -0,0 +1,17 @@
1
+ require 'clowder-common-ruby/rails_config'
2
+
3
+ if ClowderCommonRuby::Config.clowder_enabled? && defined?(Settings)
4
+ config = ClowderCommonRuby::RailsConfig.to_h
5
+
6
+ if config.dig('tls_ca_path')
7
+ ENV['SSL_CERT_FILE'] = Rails.root.join('tmp', 'cacert.crt')
8
+
9
+ File.open(ENV['SSL_CERT_FILE'], 'w') do |f|
10
+ f.write(File.read('/etc/pki/tls/certs/ca-bundle.crt'))
11
+ f.write(File.read('/cdapp/certs/service-ca.crt'))
12
+ end
13
+ end
14
+
15
+ Settings.add_source!(config)
16
+ Settings.reload!
17
+ end
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.3.1'.freeze # Patch version is being automatically bumped
2
+ VERSION = '0.3.2'.freeze # Patch version is being automatically bumped
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clowder-common-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Hat Developers
@@ -23,6 +23,7 @@ files:
23
23
  - bin/json_schema_ruby
24
24
  - bin/ruby_class_converter.rb
25
25
  - bin/schema.json
26
+ - config/initializers/0_clowder_rails.rb
26
27
  - lib/clowder-common-ruby.rb
27
28
  - lib/clowder-common-ruby/config.rb
28
29
  - lib/clowder-common-ruby/engine.rb