restpack-web 0.1.14 → 0.1.15

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.
@@ -4,7 +4,6 @@ module RestPack
4
4
  module Web
5
5
  class App
6
6
  def initialize(app, options = {})
7
- set :session_secret, 'secret'
8
7
  p "RestPack::Web::App.initialize"
9
8
  @app = app
10
9
 
@@ -27,9 +26,8 @@ module RestPack
27
26
  p "Session: #{env['rack.session'].inspect}"
28
27
  p "userid: #{env['rack.session'][:user_id]}"
29
28
 
29
+ p "----------"
30
30
 
31
- request = Rack::Request.new(env)
32
- p "request session: #{request.session.inspect}"
33
31
 
34
32
  env[:restpack][:host] = host
35
33
 
@@ -39,6 +37,7 @@ module RestPack
39
37
  env[:restpack][:channel] = channel
40
38
  env[:restpack][:application] = domain.application
41
39
  env[:restpack][:domain] = domain
40
+ env[:restpack][:user_id] = env['rack.session'][:user_id]
42
41
  rescue Exception => e
43
42
  p e.message
44
43
  p e.backtrace.inspect
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
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.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: