active_publisher 1.4.0-java → 1.4.2-java

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: de7d571b3f4cf7890d80bfe7bbc9f1c2e4e6c999437d2107cf380a081c80be48
4
- data.tar.gz: f8b16346986e56912e7842c886f296c2831edc7431cb4d3335fbd91d2014b68f
3
+ metadata.gz: 7cf0ec704fed9440a6078e737ae81f7eff99bd39e09077f9d46a5122c019529e
4
+ data.tar.gz: 47f1ef32cc8e353264aa9331bd5c30016d0fd8dfeb84244f1c08f154f484c8a5
5
5
  SHA512:
6
- metadata.gz: 25f2010ec2bf26940caa1e23dfcc194cc5248b063ee87c817fa416e30c8fd56ef4c5bf2d1b549a652083ea57ff581b9fe4ab7fc06f9e1189b1d39992711f52bf
7
- data.tar.gz: 64f633e9f9252823345141adbd8c31ab06328340fd56eb13ed45afb0fdf3d1d795367667483cc3ea4bd5b9a15300771b1a760f6da13a6bd7554780e3ebd21dcb
6
+ metadata.gz: 30d79e0beca20380fc0410be5c7a815cc81b93dba0195315ff92b6ff40ca48e5cc3e5d7bc7684a37711d71206f7caf780be5ffae93447f0b2f45e3f7b8573145
7
+ data.tar.gz: 18be52f129aef25c026792e6e206e871488ea984752d57c3f47c603c8c2d2525d85c3510579c493e50afbb380894c48ff265772bc1ebcc22b32e50ade9f3cc8d
data/.circleci/config.yml CHANGED
@@ -49,9 +49,9 @@ workflows:
49
49
  matrix:
50
50
  parameters:
51
51
  ruby-image:
52
- - circleci/ruby:2.5
53
52
  - circleci/ruby:2.6
54
53
  - circleci/ruby:2.7
55
- - circleci/jruby:9.1
54
+ - cimg/ruby:3.0
55
+ - cimg/ruby:3.1
56
56
  - circleci/jruby:9.2
57
57
  - circleci/jruby:9.3
@@ -83,11 +83,13 @@ module ActivePublisher
83
83
  yaml_config = {}
84
84
  absolute_config_path = ::File.expand_path(::File.join("config", "active_publisher.yml"))
85
85
  action_subscriber_config_file = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
86
+
86
87
  if ::File.exists?(absolute_config_path)
87
- yaml_config = ::YAML.load(::ERB.new(::File.read(absolute_config_path)).result)[env]
88
+ yaml_config = load_yaml_config_from_file(absolute_config_path)[env]
88
89
  elsif ::File.exists?(action_subscriber_config_file)
89
- yaml_config = ::YAML.load(::ERB.new(::File.read(action_subscriber_config_file)).result)[env]
90
+ yaml_config = load_yaml_config_from_file(action_subscriber_config_file)[env]
90
91
  end
92
+
91
93
  yaml_config
92
94
  end
93
95
  private_class_method :attempt_to_load_yaml_file
@@ -101,6 +103,14 @@ module ActivePublisher
101
103
  end
102
104
  private_class_method :fetch_config_value
103
105
 
106
+ def self.load_yaml_config_from_file(file_path)
107
+ erb_yaml = ::ERB.new(::File.read(file_path)).result
108
+ # Defined in Psych 3.2+ and the new canonical way to load trusted documents:
109
+ # https://github.com/ruby/psych/issues/533#issuecomment-1019363688
110
+ ::YAML.respond_to?(:unsafe_load) ? ::YAML.unsafe_load(erb_yaml) : ::YAML.load(erb_yaml)
111
+ end
112
+ private_class_method :load_yaml_config_from_file
113
+
104
114
  ##
105
115
  # Instance Methods
106
116
  #
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: java
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2022-02-22 00:00:00.000000000 Z
15
+ date: 2022-05-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.2.15
226
+ rubygems_version: 3.3.13
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Aims to make publishing work across MRI and jRuby painless and add some nice