restpack-web 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/context.rb +12 -0
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/context.rb
CHANGED
@@ -51,12 +51,24 @@ module RestPack
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def debug_info
|
54
|
+
user_debug_info = ""
|
55
|
+
if is_authenticated?
|
56
|
+
user_debug_info = %{
|
57
|
+
* **name** : #{@user['name']}
|
58
|
+
* **nickname** : #{@user['nickname']}
|
59
|
+
* **location** : #{@user['location']}
|
60
|
+
* **description** : #{@user['description']}
|
61
|
+
* **image** : #{@user['image_url']}
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
54
65
|
%{
|
55
66
|
### RestPack Context:
|
56
67
|
|
57
68
|
#### User:
|
58
69
|
|
59
70
|
* **is authenticated**: #{is_authenticated?}
|
71
|
+
#{user_debug_info}
|
60
72
|
|
61
73
|
#### Channel:
|
62
74
|
|
data/lib/restpack-web/version.rb
CHANGED