restpack-web 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
1
1
  module RestPack
2
2
  module Web
3
3
  class App
4
- def initialize(app)#, settings = {})
5
- #p "RestPack::Web::App.initialize"
4
+ def initialize(app, settings = {})
5
+ p "RestPack::Web::App.initialize"
6
6
  @app = app
7
- # @settings = settings
7
+ @settings = settings
8
8
 
9
- # p "settings: #{settings}"
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.to_json
18
18
 
19
19
  @app.call(env)
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: