restpack-web 0.1.39 → 0.1.40

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.
@@ -20,7 +20,7 @@ module RestPack
20
20
 
21
21
  begin #TODO: GJ: cache should handle errors gracefully
22
22
  request = Rack::Request.new(env)
23
- env[:restpack][:url] = request.url
23
+ env[:restpack][:request] = request
24
24
 
25
25
  host = env["SERVER_NAME"]
26
26
  env[:restpack][:host] = host
@@ -3,12 +3,13 @@ require 'public_suffix'
3
3
  module RestPack
4
4
  module Web
5
5
  class Context
6
- attr_accessor :domain, :application, :channel, :user, :user_id
6
+ attr_accessor :domain, :application, :channel, :user, :user_id, :request
7
7
 
8
8
  def initialize(env)
9
9
  restpack = env[:restpack]
10
10
 
11
11
  if restpack
12
+ @request = restpack[:request]
12
13
  @domain = restpack[:domain]
13
14
  @application = restpack[:application]
14
15
  @channel = restpack[:channel]
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.39"
3
+ VERSION = "0.1.40"
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.39
4
+ version: 0.1.40
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: