clowder-common-ruby 0.3.3 → 0.4.0

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: ba33d3420aae78b4809987412281714f2db552c7dd62b77fb1492f34d3fcd396
4
- data.tar.gz: 52cadcd45517d7d91cc931da7d1eabf29bf0ac254ac03aa711948a178313465f
3
+ metadata.gz: 6d7db9ccbc44817dab7850a9af94deeed4b94e2765509a77de8cb6279864fc93
4
+ data.tar.gz: 6f25ca91ed6d2f2cf2b2adede6d80bbfcd05d57f646730f61698a286d70ec83d
5
5
  SHA512:
6
- metadata.gz: 5cb5963ab36868149b7698f1a822d9b15e7e2509cc9f083d51fa70eebb264756ce5ac8ec89b6209523929b986c97e09e71068738a6e2e1fc896778e2303f25df
7
- data.tar.gz: ad6f9361510ba8e5d9b3b764979bc8b43da69f558c889c033106275b8899b2ae0676f19fde2ce093178aeea36876a258e9e14b7fbf549f4fb914db72fec5015e
6
+ metadata.gz: 3fd3e4a93371a274a150c3a28e533ace45d2f58212b9035a58d93ed2217bf3ea3627c4835c3c64e460d886354447fb2edbc552674b4142647a2768dbd5c6b0a8
7
+ data.tar.gz: 3b2aefe2795c41aeced6bc5fb2c543f19675614f4ebf46e2934a5a1f777914fcbae49c4c78f95d091b89a314063a6dc7abe950c04858c822178ed459e5f895dd
data/README.md CHANGED
@@ -8,7 +8,7 @@ Based on schema.json, the corresponding Ruby Classes are generated in types.rb.
8
8
  Usage
9
9
  -----
10
10
 
11
- The `clowder` library provides basic values like expected web port, metrics port,
11
+ The `clowder` library provides basic values like expected public port, metrics port,
12
12
  database credentials etc.
13
13
 
14
14
  Usage:
@@ -21,12 +21,12 @@ require 'clowder-common-ruby'
21
21
 
22
22
  if ClowderCommonRuby::Config.clowder_enabled?
23
23
  config = ClowderCommonRuby::Config.load
24
- options["webPorts"] = config.webPort
24
+ options["publicPort"] = config.publicPort
25
25
  options["databaseHostname"] = config.database.hostname
26
26
  options["kafkaTopics"] = config.kafka_topics
27
27
  # ...
28
28
  else
29
- options["webPorts"] = 3000
29
+ options["publicPort"] = 3000
30
30
  options["databaseHostname"] = ENV['DATABASE_HOST']
31
31
  end
32
32
  end
@@ -1,7 +1,7 @@
1
1
  require 'clowder-common-ruby/rails_config'
2
2
 
3
3
  if ClowderCommonRuby::Config.clowder_enabled? && defined?(Settings)
4
- config = ClowderCommonRuby::RailsConfig.to_h
4
+ config = ClowderCommonRuby::RailsConfig.to_h.deep_stringify_keys
5
5
 
6
6
  if config.dig('tls_ca_path')
7
7
  ENV['SSL_CERT_FILE'] = Rails.root.join('tmp', 'cacert.crt')
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.3.3'.freeze # Patch version is being automatically bumped
2
+ VERSION = '0.4.0'.freeze # Patch version is being automatically bumped
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clowder-common-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Hat Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-24 00:00:00.000000000 Z
11
+ date: 2023-08-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby interface for preparing Clowder variables.
14
14
  email: