clowder-common-ruby 0.3.2 → 0.4.0

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: 5c59a995af455cae8eec63b23c3ca984e595dfda958606f2795c57039651084f
4
- data.tar.gz: 4d8acca543a364ccec8461cdb5edb9836b54ab65e2db6dff95913107dfb94f91
3
+ metadata.gz: 6d7db9ccbc44817dab7850a9af94deeed4b94e2765509a77de8cb6279864fc93
4
+ data.tar.gz: 6f25ca91ed6d2f2cf2b2adede6d80bbfcd05d57f646730f61698a286d70ec83d
5
5
  SHA512:
6
- metadata.gz: 2b340953eaa8ba5126296aa0403ebc6900e38ebe36a024ac82688ab5f8db0a260a22f6ac943ecb2d8f40f2f7add2604c85a04589e618da01724ee2dd7ab5bf0d
7
- data.tar.gz: f766c81ef5663fe95f6cf8642eea32ac67a955d8f1a130fe3f0f95e83ab9a1c9c52c6e077f215de5fbdfad078b7e3c2a37084e86c0c743ec2167d9689f64f25c
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
data/bin/schema.json CHANGED
@@ -468,13 +468,17 @@
468
468
  "tlsPort": {
469
469
  "description": "The TLS port of the dependent service.",
470
470
  "type": "integer"
471
+ },
472
+ "apiPath": {
473
+ "description": "The top level api path that the app should serve from /api/<apiPath>"
471
474
  }
472
475
  },
473
476
  "required": [
474
477
  "name",
475
478
  "hostname",
476
479
  "port",
477
- "app"
480
+ "app",
481
+ "apiPath"
478
482
  ]
479
483
  },
480
484
  "PrivateDependencyEndpoint": {
@@ -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')
@@ -406,6 +406,7 @@ module ClowderCommonRuby
406
406
  keys << :port
407
407
  keys << :app
408
408
  keys << :tlsPort
409
+ keys << :apiPath
409
410
  end
410
411
  end
411
412
  end
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.3.2'.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.2
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-23 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: