xapian_db 1.3.14 → 1.3.15

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/xapian_db/railtie.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37439ac70672e2b00f2aa801552d92c7d8be85ec1b773e5df930f15c249a04ca
4
- data.tar.gz: 6cb81ea628145628af928197c2a89bc0bed2fa14ac97c394a89af4be0391fcf1
3
+ metadata.gz: 459c9c1af18dbeb3f1b98cd0b109b5479cc27721b6225ca2745b1748f4c1cbe3
4
+ data.tar.gz: 0fee3c89fb1116f464dda50d4676ac8ad9044351a7e5b0af9be7f18eaaf1d196
5
5
  SHA512:
6
- metadata.gz: 594d7e3cd87f17c535eda02ac47c1b730bbfc3cf5ebfcf190b56b6380e477d6b4a68e8ceecab5a892a5b70d1db4a0ab7eec19ca83afdd1186b9f6e97d89717bd
7
- data.tar.gz: 8e86244a62f3c7460c1bfe320240a8f82ce09c4c62c0aca4dfb3d0e2b63330c9c8f2f9eb68a1df92d76ff5dccd9e7d5d876e8fedf1000a6a84e4861b6cfd4192
6
+ metadata.gz: acc76a37fffe1496bdb7eda7f2314069ac41dd2dff265625ea3219f309f0dfa8867ebba9b1c64f2b0e03c0eadec3dec8b87e6e28494771c58d0516c47719bacb
7
+ data.tar.gz: e52ec69e7e6dc2554db1ab57dd4de93d2f218aa8875b5a3f18e903cad6f6d83cd10bdd069f53f01da637380c25994de22f701221c3e4da5bcc6a7e8d794a7a46
@@ -31,9 +31,9 @@ module XapianDb
31
31
  config_file_path = "#{Rails.root}/config/xapian_db.yml"
32
32
  if File.exist?(config_file_path)
33
33
  db_config = if YAML.respond_to?(:unsafe_load_file) # Psych 4.0 way
34
- YAML.unsafe_load_file(config_file_path)
34
+ YAML.unsafe_load(ERB.new(File.read(config_file_path)).result)
35
35
  else
36
- YAML.load_file(config_file_path)
36
+ YAML.safe_load(ERB.new(File.read(config_file_path)).result, aliases: true)
37
37
  end
38
38
  env_config = db_config[Rails.env]
39
39
  env_config ? configure_from(env_config) : configure_defaults
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xapian_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.14
4
+ version: 1.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gernot Kogler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons