redcord 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/redcord/railtie.rb +10 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c343794236cfb0990142a2200625066bd176b3f57cdfbf4336e752a568796621
4
- data.tar.gz: d4dff503e7bf52756ea884be7179a2b7a0b004ab5c93d8af24a8fa7bee953e76
3
+ metadata.gz: 243af4e2e05e9b611adabe523330b170d853434920ca81530e081d63790c871a
4
+ data.tar.gz: 24baac2c7c4eb7d2d6f0dc9a90988b77461d95b683e01cc18892ba1a5894f6a1
5
5
  SHA512:
6
- metadata.gz: 78d24a7abea242512ad8943c19b50ad363ee320204c3e56d386f6b408e4d11c508dd35f724490963546817f87c53a2b38cb496035bd1b1a4e0c078b78503c1ff
7
- data.tar.gz: a3660d9cb64af06ae210e1885be8de10e9285edea5671252204caea07eda43c0b7fc899a29f5d5975c1cc2c216abd61345b6211a9e83dffdc3920e45704d42d0
6
+ metadata.gz: f3b81515ee166f4c57bc2c2a1f4abb9b11d5e32aa349b5ec748503e4b689edfaf64b2caa4e23e3ce8ce3a0c0b628929fa6a848f445fc0eed9990b0a43d1e12a1
7
+ data.tar.gz: c6a6fd2af78a0d53fdf5aa26b3673d3c2bdbac716fa8dfefb6b14b8793512daf5764857b5033573078ccdb66cb0e2a13fd2e1040dc201978073f972880b667b4
@@ -24,9 +24,16 @@ class Redcord::Railtie < Rails::Railtie
24
24
  config_file = 'config/redcord.yml'
25
25
 
26
26
  if File.file?(config_file)
27
- Redcord::Base.configurations = YAML.load(
28
- ERB.new(File.read(config_file)).result
29
- )
27
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.1.0')
28
+ Redcord::Base.configurations = YAML.load(
29
+ ERB.new(File.read(config_file)).result,
30
+ )
31
+ else
32
+ Redcord::Base.configurations = YAML.load(
33
+ ERB.new(File.read(config_file)).result,
34
+ aliases: true,
35
+ )
36
+ end
30
37
  end
31
38
 
32
39
  Redcord._after_initialize!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chan Zuckerberg Initiative