protobuf-nats 0.10.7 → 0.10.8

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: 2b24dc4e6dfe807ddff392c7fdf8187dab743915511c996fb8484dd5d7c61361
4
- data.tar.gz: d6fa80dcf05264db2520cb0cffb3f60edef7364d491ffaf66c6c1f2d213eb73d
3
+ metadata.gz: 4cb4a535457ea9750800b3165a4b1876bb03888e6c6d321aaef9555876db66d8
4
+ data.tar.gz: 3ca4dea39c5accab882529477f283c8f3325475b9678fd0258c9bfc2747f2fc1
5
5
  SHA512:
6
- metadata.gz: a0b1a723daac8e84fa1e1d5727334790498b267fc8396352e6a68914f1aace2cadf693674a1a253409e21d2d1057fdd9dea69eec416b61bb7318ab4501389aab
7
- data.tar.gz: 169806eefdc18c2bad9e64a880857c9820d3132178df6b7e4a8744bdd119c7ad649082080e272222c167b15c6f75de855ca7340eda4f36cbf34355da50a6b877
6
+ metadata.gz: 1ebf9dc0750b480b389d644eb7d42714131696e75dd94f2febbdfd11b3528a64e77629bcb192009c2dc075f3f5e27a7324c66247f5e0d2f1b125714c78d66168
7
+ data.tar.gz: d14f3875256452cc4083bc2730fc084602acc6dc1546dd545714a2cff6ea20e18449a7859e2db9db1b1cb245835cfddc488b434d093e3682d5af18679edb5ba6
@@ -1,3 +1,4 @@
1
+ require "erb"
1
2
  require "openssl"
2
3
  require "yaml"
3
4
 
@@ -40,11 +41,12 @@ module Protobuf
40
41
  config_path = ENV["PROTOBUF_NATS_CONFIG_PATH"] || ::File.join("config", "protobuf_nats.yml")
41
42
  absolute_config_path = ::File.expand_path(config_path)
42
43
  if ::File.exist?(absolute_config_path)
44
+ yaml_string = ::ERB.new(::File.read(absolute_config_path)).result
43
45
  # Psych 4 and newer requires unsafe_load_file in order for aliases to be used
44
46
  yaml_config = if ::YAML.respond_to?(:unsafe_load_file)
45
- ::YAML.unsafe_load_file(absolute_config_path)[env]
47
+ ::YAML.unsafe_load(yaml_string)[env]
46
48
  else
47
- ::YAML.load_file(absolute_config_path)[env]
49
+ ::YAML.load(yaml_string)[env]
48
50
  end
49
51
  end
50
52
 
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module Nats
3
- VERSION = "0.10.7"
3
+ VERSION = "0.10.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-nats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7
4
+ version: 0.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport