couch_potato 1.12.0 → 1.12.1

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: 5a7bdcd820492f1ac93c757f8438d2659610ed06dc8b6dd2dcb62d6bcfa8434f
4
- data.tar.gz: 4d3d52005c4d7647291d35f1437c7be05326526f71ab3232d46556f398b2d0fe
3
+ metadata.gz: 0d0a16b09e8b1a251f8639d5960980da2b50f1deb41a619253322013d24b12ae
4
+ data.tar.gz: 8b6e6c2a0b8e81399a1bd5addf528583b157109971948e59f9a2cf96dcd858d9
5
5
  SHA512:
6
- metadata.gz: ac20227b8dfb0288d09e70dc515e90f0625660606ab130b0d0b8433591a2fd3247030b88c6137e60f20cf9e87862fa683276143ddfee3c8f7016e42deb69ea9d
7
- data.tar.gz: 4c57160eb81d99070ee30bcb53723ece6de752af76b97ea7349f1bd0a5266bdd27f50b71461203d9b57799891a5f933333689a18a53e0badc1d304957d70337b
6
+ metadata.gz: 2d7ed319a85dbe37898f1892ff355b6e3f0f7a559b86f4f31b8d59aa69417e403e075f41f236dadc3c46f317e29526049804607767e44a8ecddc8aeff1ecf128
7
+ data.tar.gz: a8655290fc89f80185b21ec5722867644dacd2c7990779df325bb0ab0697156a213a0a2e6d7d492a48d1ed8dbc0a0b2a09f5aeb61f48b3c8a1e85a10236d75cc
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Changes
2
2
 
3
+ # 1.12.1
4
+
5
+ - re-enable aliases when parsing config yaml file
6
+
3
7
  # 1.12.0
4
8
 
5
9
  - remove active_support 5.x
@@ -11,6 +11,7 @@ module CouchPotato
11
11
  config = YAML.safe_load(
12
12
  ERB.new(File.read(path)).result,
13
13
  permitted_classes: [Symbol],
14
+ aliases: true
14
15
  )[Rails.env]
15
16
  CouchPotato.configure(config)
16
17
  else
@@ -1,4 +1,4 @@
1
1
  module CouchPotato
2
- VERSION = '1.12.0'.freeze
2
+ VERSION = '1.12.1'.freeze
3
3
  RSPEC_VERSION = '4.0.2'.freeze
4
4
  end
data/spec/railtie_spec.rb CHANGED
@@ -100,4 +100,19 @@ describe "railtie" do
100
100
 
101
101
  CouchPotato.rails_init
102
102
  end
103
+
104
+ it 'processes aliases' do
105
+ allow(File).to receive_messages(:read => <<~YAML)
106
+ default: &default
107
+ default_language: :javascript
108
+ test:
109
+ <<: *default
110
+ database: couch_potato_test
111
+ YAML
112
+
113
+ expect(CouchPotato::Config).to receive(:default_language=).with(:javascript)
114
+ expect(CouchPotato::Config).to receive(:database_name=).with('couch_potato_test')
115
+
116
+ CouchPotato.rails_init
117
+ end
103
118
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_potato
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Lang