snappconfig 0.0.1 → 0.0.2
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 +4 -4
- data/lib/snappconfig/railtie.rb +4 -3
- data/lib/snappconfig.rb +4 -0
- data/snappconfig.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44533ca3098680534d2d4576f9806b7189330e7
|
4
|
+
data.tar.gz: a89a0cbbba9b0e6591603f1fca9dba1db694e954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2eb6b88eb7ef1a1a212d55314d775075f17d4dd9661c1d7097056765e22625ac9bc28ea8ca1bdce96d9d09dc2f905a565121a0a99fe5f8d1fdfe69fb46165a6
|
7
|
+
data.tar.gz: c8e77806e6c2b2caa621251e7c8500deed04447cfcd35e477810a5ca23f351a308339727ee9e7c252429db7962df0b3a4bb75d285184ca346f00cb7f73ffb96d
|
data/lib/snappconfig/railtie.rb
CHANGED
@@ -13,6 +13,10 @@ module Snappconfig
|
|
13
13
|
appconfig.deep_merge! appconfig.fetch('defaults', {})
|
14
14
|
appconfig.deep_merge! appconfig.fetch(Rails.env, {})
|
15
15
|
|
16
|
+
Snappconfig.environments.each do |environment|
|
17
|
+
appconfig.delete(environment)
|
18
|
+
end
|
19
|
+
|
16
20
|
check_required(appconfig)
|
17
21
|
|
18
22
|
# Assign ENV values...
|
@@ -22,9 +26,6 @@ module Snappconfig
|
|
22
26
|
end
|
23
27
|
# ... and clear ENV values from CONFIG so we don't have duplicate data:
|
24
28
|
appconfig.delete('ENV')
|
25
|
-
appconfig.each do |key,value|
|
26
|
-
value.delete('ENV') if value.is_a?(Hash) && value.has_key?('ENV')
|
27
|
-
end
|
28
29
|
end
|
29
30
|
|
30
31
|
appconfig = recursively_symbolize_keys(appconfig)
|
data/lib/snappconfig.rb
CHANGED
data/snappconfig.gemspec
CHANGED
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "snappconfig"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.2"
|
8
8
|
spec.authors = ["Yarin Kessler"]
|
9
9
|
spec.email = "ykessler@appgrinders.com"
|
10
10
|
spec.summary = %q{Smarter Rails configuration with YAML}
|
11
|
-
spec.description = %q{Smarter, Heroku-friendly Rails configuration
|
11
|
+
spec.description = %q{Smarter, Heroku-friendly Rails configuration with YAML}
|
12
12
|
spec.homepage = "https://github.com/ykessler/snappconfig"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snappconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yarin Kessler
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: Smarter, Heroku-friendly Rails configuration
|
41
|
+
description: Smarter, Heroku-friendly Rails configuration with YAML
|
42
42
|
email: ykessler@appgrinders.com
|
43
43
|
executables: []
|
44
44
|
extensions: []
|