clowder-common-ruby 0.5.0 → 0.5.1

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: eaad1ec25f009d5c0f4d3bbefd6d0bf86df648bf4ac720c5950818c9ac5b6f8c
4
- data.tar.gz: a22c70b356e1bd289501792b627ddf6de8be1f32e0d7b3bfc670f2349d1a2dd2
3
+ metadata.gz: 2eb27069341b3726423c02088d23f56a4dcb659044ead344028da876a7dfb01a
4
+ data.tar.gz: d816b9eb821d8bb5a6841c804168dad27ff2627596a91fd5fc172d97ebc7178a
5
5
  SHA512:
6
- metadata.gz: 242ff896a7cec23fb9396868e950f4a3796e9f9fc6b63df41f0aaeaf19aa4c940fcf34e6bf8cfee3c9c5e1caf24bf4b224f1981462b04138edb6081dbd28f506
7
- data.tar.gz: b1a121df03523947b412c161e374de1ef48abf2858dbdf77c38c2c0d3138d5ec79db9eb77c9ccbbff1d4b8153b8091e99d3c667b619c07bcefe2670f8db26350
6
+ metadata.gz: 591aaa8a7be6e2fbcc7119a74de0c94cb95d8dbce2555db27784d62d2245561824b77393d5b29028c43a6008165fa7eee8d572a5bc1adf017b0df776a36efa44
7
+ data.tar.gz: 1fcaf4ad4eefedd3cfbba5f00e2757a0d0c0a7fa47d3e0c53245d3ba50de8dea039363e72f72cceee30b68e5b3802e1681ca5ba24079e2739fbf3ba4027b76e8
@@ -16,6 +16,7 @@ module ClowderCommonRuby
16
16
  database: configure_database(config),
17
17
  prometheus_exporter_port: config&.metricsPort,
18
18
  tls_ca_path: config.tlsCAPath,
19
+ unleash: configure_unleash(config),
19
20
  web_port: config.webPort
20
21
  }
21
22
  end
@@ -155,6 +156,21 @@ module ClowderCommonRuby
155
156
  }
156
157
  end
157
158
 
159
+ # Unleash configuration hash
160
+ def configure_unleash(config)
161
+ return {} unless config.featureFlags
162
+
163
+ {
164
+ url: URI::HTTP.build(
165
+ host: config.featureFlags.hostname,
166
+ port: config.featureFlags.port,
167
+ protocol: config.featureFlags.scheme,
168
+ path: '/api'
169
+ ).to_s,
170
+ token: config.featureFlags.clientAccessToken
171
+ }
172
+ end
173
+
158
174
  # Gives location of database ssl certificate and makes sure it exists
159
175
  def build_database_certificate(rdsca)
160
176
  return unless rdsca.present?
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.5.0'.freeze # Patch version is being automatically bumped
2
+ VERSION = '0.5.1'.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.5.0
4
+ version: 0.5.1
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-10-05 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby interface for preparing Clowder variables.
14
14
  email: