bragi-app 0.2.3 → 0.2.4
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.
- data/lib/app.rb +2 -1
- data/test/app_test.rb +1 -1
- metadata +1 -1
data/lib/app.rb
CHANGED
@@ -59,7 +59,8 @@ unless __FILE__ == "(eval)"
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Iterate through other App configs and namespace them.
|
62
|
-
|
62
|
+
path = Rails.root.join("config", "app", "**/*.yml").to_s
|
63
|
+
Dir[path].sort.each do |config|
|
63
64
|
name = config.gsub(/#{Rails.root.join("config")}\/|\.yml/) {}.classify
|
64
65
|
|
65
66
|
# Recognize all parents.
|
data/test/app_test.rb
CHANGED
@@ -59,7 +59,7 @@ class AppTest < ActiveSupport::TestCase
|
|
59
59
|
end
|
60
60
|
|
61
61
|
test "should be frozen" do
|
62
|
-
assert_raise(
|
62
|
+
assert_raise(RuntimeError) { App.config["loaded_at"] = Time.now }
|
63
63
|
end
|
64
64
|
|
65
65
|
test "should ignore null nested keys" do
|