rack-config-flexible 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -10
- data/lib/rack/config/flexible.rb +1 -12
- metadata +1 -1
data/README.md
CHANGED
@@ -136,13 +136,3 @@ that particular _section_.
|
|
136
136
|
|
137
137
|
See the inline documentation for more details.
|
138
138
|
|
139
|
-
Caveats
|
140
|
-
=======
|
141
|
-
|
142
|
-
Do *not* use this module and _Rack::Config_ at the same time! This module
|
143
|
-
will remove the constant for _Rack::Config_ to avoid a conflict with _Rack::Config_
|
144
|
-
being a class, whereas here we use it as a module.
|
145
|
-
|
146
|
-
This means no new instances of _Rack::Config_ can be so easily created after this module is loaded.
|
147
|
-
However, existing instances should still work.
|
148
|
-
|
data/lib/rack/config/flexible.rb
CHANGED
@@ -9,18 +9,7 @@
|
|
9
9
|
require 'yaml'
|
10
10
|
|
11
11
|
module Rack
|
12
|
-
|
13
|
-
#
|
14
|
-
# Remove the constant for Rack::Config otherwise we get
|
15
|
-
# a TypeError since Rack::Config is a class, not a module.
|
16
|
-
#
|
17
|
-
# It seems the original instances will still be preserved
|
18
|
-
#
|
19
|
-
if Rack::Config.is_a?(Class)
|
20
|
-
Rack.send(:remove_const,'Config')
|
21
|
-
end
|
22
|
-
|
23
|
-
module Config
|
12
|
+
class Config
|
24
13
|
#
|
25
14
|
# === Overview
|
26
15
|
#
|