active_publisher 1.4.0 → 1.4.1.pre

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: 4511b016ac3dfe0e3e989710d404442680368ab1bb38c60f96df746d8f1fcff1
4
- data.tar.gz: 99231f3a27692319247c201bf6c817a24c3dca029bfed1fd0d650fabbb435681
3
+ metadata.gz: f79da1254e6c29658bd3a84dd56225b7a6ba21e7cd53aac54b1ebd5d80326bd8
4
+ data.tar.gz: b0e00f56769dd7fb2baac82559c1f1e5cf35762e46bdcb943da77b06161f4b32
5
5
  SHA512:
6
- metadata.gz: 4d7fe20fe406d7aefb29c4a8c00b69109f090841e8674a9ff6377e498a9c581fb95c1817591039fdeff44039babfc5bd082666f95b300e79ce2ecf1892ea5fe7
7
- data.tar.gz: 4e359732a9f4e1f0ac3dead33d20c2d1272e2cc6d354fb5694f348db2906377121c075c626ec2108f8dfa64e1ffc999553874c28ded9ff2f027ac0d6f4451cf5
6
+ metadata.gz: b209d8f127622d70327f8b527b3c54f4786fe4107c74a793de9dd8a7d0099028e9cea95baef300e6eefdc349fb6d756a85f53c450c84c849d04f30b4985e12af
7
+ data.tar.gz: ae572c5ac1285239e7c9cf605360e065f26851432c918fb163ab57e933fbec90430abb990f097e5752f58b1ffaa36dd1f5f1ccc69373a3f1e5f548a84066f5ed
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
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency 'activesupport', '>= 3.2'
30
30
  spec.add_dependency 'concurrent-ruby'
31
31
  spec.add_dependency 'multi_op_queue', '>= 0.2.0'
32
+ spec.add_dependency 'psych', '>= 3.3.2'
32
33
 
33
34
  spec.add_development_dependency "benchmark-ips"
34
35
  spec.add_development_dependency "bundler"
@@ -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.unsafe_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.1.pre"
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.1.pre
5
5
  platform: ruby
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-04-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny
@@ -70,6 +70,20 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.2.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: psych
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 3.3.2
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.3.2
73
87
  - !ruby/object:Gem::Dependency
74
88
  name: benchmark-ips
75
89
  requirement: !ruby/object:Gem::Requirement
@@ -219,11 +233,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
233
  version: '0'
220
234
  required_rubygems_version: !ruby/object:Gem::Requirement
221
235
  requirements:
222
- - - ">="
236
+ - - ">"
223
237
  - !ruby/object:Gem::Version
224
- version: '0'
238
+ version: 1.3.1
225
239
  requirements: []
226
- rubygems_version: 3.0.1
240
+ rubygems_version: 3.3.6
227
241
  signing_key:
228
242
  specification_version: 4
229
243
  summary: Aims to make publishing work across MRI and jRuby painless and add some nice