restpack-web 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +5 -5
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module RestPack
|
2
2
|
module Web
|
3
3
|
class App
|
4
|
-
def initialize(app
|
5
|
-
p "RestPack::Web::App.initialize"
|
4
|
+
def initialize(app)#, settings = {})
|
5
|
+
#p "RestPack::Web::App.initialize"
|
6
6
|
@app = app
|
7
|
-
|
7
|
+
# @settings = settings
|
8
8
|
|
9
|
-
|
9
|
+
# p "settings: #{settings}"
|
10
10
|
end
|
11
11
|
|
12
12
|
def call(env)
|
@@ -14,7 +14,7 @@ module RestPack
|
|
14
14
|
host = env["SERVER_NAME"]
|
15
15
|
|
16
16
|
env["restpack"][:host] = host #TODO: GJ: add some magic
|
17
|
-
env["restpack"][:settings] = @settings
|
17
|
+
#env["restpack"][:settings] = @settings
|
18
18
|
|
19
19
|
@app.call(env)
|
20
20
|
end
|
data/lib/restpack-web/version.rb
CHANGED