restpack-web 0.1.35 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'public_suffix'
3
3
  module RestPack
4
4
  module Web
5
5
  class Context
6
- attr_accessor :domain, :application, :channel, :user
6
+ attr_accessor :domain, :application, :channel, :user, :user_id
7
7
 
8
8
  def initialize(env)
9
9
  restpack = env[:restpack]
@@ -13,6 +13,7 @@ module RestPack
13
13
  @application = restpack[:application]
14
14
  @channel = restpack[:channel]
15
15
  @user = restpack[:user]
16
+ @user_id = @user[:id] if @user
16
17
  end
17
18
  end
18
19
 
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.35"
3
+ VERSION = "0.1.36"
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.35
4
+ version: 0.1.36
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: