restpack_web 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2Y1Y2U5NjY1MjFmZWY0NjUyZTk0NmJjNzMwNGQ3Y2I3ODQzNWY3Nw==
4
+ YzkyYjAzMWU0NjA1MzUyYjc5NWU3MzM3NDg5ZmY0ZGE1MDI5MDcxZg==
5
5
  data.tar.gz: !binary |-
6
- MjQxZGU0NDE0MDQ2YTU1MWZiZDk1ZDBhMzA5MmE0NjE2NGRhNGU1YQ==
6
+ Njc5OTE3NGJhYjRkYjkwY2IyMjVlNWM3N2I5M2JiYmMyNDcxZjFlYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTcyNmQwM2Y1NjQwZTI4MDBjZDM2MmQ4ODJjNTQ3MWZiMmQ1NDQ3MTkxMTNk
10
- MTVjNzQ4M2ZiMDE4N2YyMGE3MjMyM2NkZjEzMzFmMDlkMTdlNWM1MTg1NDlj
11
- NDljMzJjOTE3MWVhNTY2MTY2ZjgzZDQwOTUzZGY3ZWQxMDZjNmY=
9
+ OTg1ZWZlMGM5ZmQxMGRkZTQwYjk1Yzg3ZTEyNjA2MDY5NDc2Y2IzNWM0MWNh
10
+ MDNjMWMzNmRmYWMxMzMzYTEyMDg3YWVjOGRhYmIzMTcyMDFmZjI2YTcyMGIw
11
+ MTllMjNiOWY3ZDVjNDlmZDZlNThjZDg5MDMwZjBiYjY0YmRkNzY=
12
12
  data.tar.gz: !binary |-
13
- NjNmMzhiOTM1NjA1NzlhYjE3YWE4MjkyOWVkN2ZiOGJkNjQyODYwMzZmY2Zl
14
- ZmNmMjlkYjEzMzIxNWQ2YTAzODEzYTIwMDU4MGUyNTYwNzVmNzFjMTg5NmQ2
15
- ZmJkMzRjOWRlNTk3YjA5NDJhNDI4NzBhNDliZmE4OWU3NDc5MzU=
13
+ OGY1OTI2MmZjMTM3ZTEzNWFmZjU5MDExMjE3MTQxMzJiYjMzOGZkMmM2NmQw
14
+ Y2JmNGM5ZDZjNjQ4NGJjZWU0NTNlOGJkNjFhMjhjN2ZhNjgwZDNmMmJlMDI3
15
+ MmQxMmMxNWIwYjQ2MmY1MDVkZWE2ZjNjYWM0NTRmY2EyNTVlNWY=
@@ -21,6 +21,7 @@ module RestPack
21
21
 
22
22
  domain = @core_cache.get_domain(request.host)
23
23
 
24
+ env[:restpack][:request] = request
24
25
  env[:restpack][:host] = request.host
25
26
  env[:restpack][:channel] = domain.channel
26
27
  env[:restpack][:application] = domain.application
@@ -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, :configurations, :user, :user_id
6
+ attr_accessor :request, :domain, :application, :channel, :configurations, :user, :user_id
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.2.20"
3
+ VERSION = "0.2.21"
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.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce