action_subscriber 5.1.1 → 5.1.2

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
- SHA1:
3
- metadata.gz: a5e0868ca5b8d5b0411d2e8daf8c9a0b0a7e05e9
4
- data.tar.gz: c640c2583e786e9a52e1c794f30d8b77f07a1f47
2
+ SHA256:
3
+ metadata.gz: 5b6dd62b9d5f71b0f161b71a7cf59a485178d9fe2056ae79554b9bdad48b61e9
4
+ data.tar.gz: 6bdb8e90b287c2d14ff429e34b7c6892fe19544f1625a1f7df80de4e7a0dbb09
5
5
  SHA512:
6
- metadata.gz: '068f775b015d5f6f4c606141e1b1708ef2a515527000aaff2fc3adab9ffbd52c4e7495e2b24ed427d05779705eee5e5805a5abfe9d195bc8b9496568d7aafe0f'
7
- data.tar.gz: afbba5be966f09163e1bec48623fe0d5e9c914955e3b9ad6c8eea84b486e14382c5d043bb3eb53bb2e73909c75527e3d44ae3e12bb29a5df758a097cb16459e6
6
+ metadata.gz: 7cb13e80ea9341fa93ce77474463fde461b962065a65e1d7c9789b1e99cbe87ab2719139de583f51445f8ab4894406b29e5993e9042f2f93239b47f29fb00206
7
+ data.tar.gz: 95227585a26ffdccae8785deeb6579eff286c6ea782c5ee83934c7049355a99d2a722054866eba173e514292b01c92a57e7ab80aab4c12e9f13190c559d8cf6b
@@ -66,7 +66,12 @@ module ActionSubscriber
66
66
  yaml_config = {}
67
67
  absolute_config_path = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
68
68
  if ::File.exists?(absolute_config_path)
69
- yaml_config = ::YAML.load(::ERB.new(::File.read(absolute_config_path)).result)[env]
69
+ erb = ::ERB.new(::File.read(absolute_config_path)).result
70
+ if defined?(SafeYAML)
71
+ yaml_config = ::YAML.load(erb, :safe => true)[env]
72
+ else
73
+ yaml_config = ::YAML.load(erb)[env]
74
+ end
70
75
  end
71
76
 
72
77
  ::ActionSubscriber::Configuration::DEFAULTS.each_pair do |key, value|
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "5.1.1"
2
+ VERSION = "5.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_subscriber
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-03-06 00:00:00.000000000 Z
15
+ date: 2018-07-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  requirements: []
299
299
  rubyforge_project:
300
- rubygems_version: 2.6.13
300
+ rubygems_version: 2.7.6
301
301
  signing_key:
302
302
  specification_version: 4
303
303
  summary: ActionSubscriber is a DSL that allows a rails app to consume messages from