app_konfig 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 508ea468ebcc191b9230fccb19e2f78efafbbd66
4
- data.tar.gz: 435157082976316f89fe77524c018e995289bdba
3
+ metadata.gz: bb95d8fab72354ed94eebaed550157930b6ead49
4
+ data.tar.gz: 0143be4e96589cc8cc9ea9cd1ac61460e8bcb0a6
5
5
  SHA512:
6
- metadata.gz: 8da018cdeba86d2686aa45094deeeb5c2308a4aa88f40a6bf35032d74ec87294fb88285653634d038d016799875e784a6223537677bef22ec84abe6c6e3db46d
7
- data.tar.gz: 8f9901d4d54a94a53df8fd61392db82e53017972c5b4ed5718879d124d0c6cd878e22dad7b2a705b81f9ab018279401b3bca23fa0ccc454ead7dc1a220b35596
6
+ metadata.gz: 417300f48c53866371a3a338e2ed7f6eadbf796efbd5fad4fc6e3fdf5eb675c2f63b8f550a420569429d3bde6ec0b1372131f9e7f30795d8974ce398e9537df7
7
+ data.tar.gz: 981653ed437ec513f9e4c9de584a816649d75d1f75f2109d5f42b35225c30b78fc18984c188899fa81747b49a223f8590288485353a24541cc415c8a8878cab5
@@ -1,3 +1,7 @@
1
+ 1.1.0
2
+
3
+ - Do not require public config (@dajvido)
4
+
1
5
  1.0.0
2
6
 
3
7
  - Add a getter method to solve some conflicts with configuration keys (@mtczerwinski)
@@ -32,7 +32,7 @@ module AppKonfig
32
32
  private
33
33
 
34
34
  def pub_config
35
- load_config(CONFIG_PATH[:public])
35
+ load_config(CONFIG_PATH[:public]) rescue {}
36
36
  end
37
37
 
38
38
  def sec_config
@@ -1,3 +1,3 @@
1
1
  module AppKonfig
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -78,6 +78,15 @@ RSpec.describe AppKonfig::Config do
78
78
  end
79
79
  end
80
80
 
81
+ context 'when config file is not found' do
82
+ it 'fails silently' do
83
+ stub_const('AppKonfig::Config::CONFIG_PATH', {
84
+ public: '',
85
+ secret: './config/secrets.yml',
86
+ })
87
+ expect{ subject }.not_to raise_error
88
+ end
89
+ end
81
90
 
82
91
  context 'when secrets file is not found' do
83
92
  it 'fails silently' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_konfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Kopiński
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-06 00:00:00.000000000 Z
12
+ date: 2016-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport