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 +4 -4
- data/lib/protobuf/nats/config.rb +4 -2
- data/lib/protobuf/nats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cb4a535457ea9750800b3165a4b1876bb03888e6c6d321aaef9555876db66d8
|
4
|
+
data.tar.gz: 3ca4dea39c5accab882529477f283c8f3325475b9678fd0258c9bfc2747f2fc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ebf9dc0750b480b389d644eb7d42714131696e75dd94f2febbdfd11b3528a64e77629bcb192009c2dc075f3f5e27a7324c66247f5e0d2f1b125714c78d66168
|
7
|
+
data.tar.gz: d14f3875256452cc4083bc2730fc084602acc6dc1546dd545714a2cff6ea20e18449a7859e2db9db1b1cb245835cfddc488b434d093e3682d5af18679edb5ba6
|
data/lib/protobuf/nats/config.rb
CHANGED
@@ -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.
|
47
|
+
::YAML.unsafe_load(yaml_string)[env]
|
46
48
|
else
|
47
|
-
::YAML.
|
49
|
+
::YAML.load(yaml_string)[env]
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|
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.
|
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-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|