clowder-common-ruby 0.3.3 → 0.4.1

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: ba33d3420aae78b4809987412281714f2db552c7dd62b77fb1492f34d3fcd396
4
- data.tar.gz: 52cadcd45517d7d91cc931da7d1eabf29bf0ac254ac03aa711948a178313465f
3
+ metadata.gz: 9275aa81208f6167d8570ce9e8ac478722678a24f7b26d00d8286d55a55c9da5
4
+ data.tar.gz: cb5b81bc3bb916c7ad083cceeda1dbe1f56f190e592da2a06e1e24d1f02ec234
5
5
  SHA512:
6
- metadata.gz: 5cb5963ab36868149b7698f1a822d9b15e7e2509cc9f083d51fa70eebb264756ce5ac8ec89b6209523929b986c97e09e71068738a6e2e1fc896778e2303f25df
7
- data.tar.gz: ad6f9361510ba8e5d9b3b764979bc8b43da69f558c889c033106275b8899b2ae0676f19fde2ce093178aeea36876a258e9e14b7fbf549f4fb914db72fec5015e
6
+ metadata.gz: 188a443985932989d4ac6566876742727156948ac33113f79436978d6f5547dee56b3e0c9b4c97b5aea4c26a21e6a1b59d37154cf969fd2458ebef6d9db39abf
7
+ data.tar.gz: fa4ddb7cf0c5696607bc0896ea9922a2702367f33d13e5d95a04ff0df6710ae156bfa2c49f00462cf130d4d8bff79571940a738e512897b1e3adf0d4866a939d
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
data/bin/schema.json CHANGED
@@ -436,6 +436,10 @@
436
436
  "password": {
437
437
  "description": "Defines the password for the In Memory DB server configuration.",
438
438
  "type": "string"
439
+ },
440
+ "sslMode": {
441
+ "description": "Defines the sslMode used by the In Memory DB server coniguration",
442
+ "type": "boolean"
439
443
  }
440
444
  },
441
445
  "required": [
@@ -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')
@@ -382,6 +382,7 @@ module ClowderCommonRuby
382
382
  keys << :port
383
383
  keys << :username
384
384
  keys << :password
385
+ keys << :sslMode
385
386
  end
386
387
  end
387
388
  end
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.3.3'.freeze # Patch version is being automatically bumped
2
+ VERSION = '0.4.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.3.3
4
+ version: 0.4.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-06-24 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby interface for preparing Clowder variables.
14
14
  email: