restpack-web 0.2.15 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
data/lib/restpack-web/app.rb
CHANGED
@@ -53,7 +53,7 @@ module RestPack
|
|
53
53
|
url = "http://:1234@localhost:1112/api/v1/users/#{user_id}.json" #TODO: GJ: build from config
|
54
54
|
p url
|
55
55
|
json = RestClient.get(url)
|
56
|
-
user = Yajl::Parser.parse(json)['user']
|
56
|
+
user = Yajl::Parser.parse(json, :symbolize_keys => true)['user']
|
57
57
|
|
58
58
|
env[:restpack][:user] = user
|
59
59
|
end
|
data/lib/restpack-web/context.rb
CHANGED
@@ -55,7 +55,7 @@ module RestPack
|
|
55
55
|
if is_authenticated?
|
56
56
|
image_debug_info = ""
|
57
57
|
image_debug_info = " * **image** : #{@user['image']} ![Image](#{@user['image']}" unless @user['image'].nil?
|
58
|
-
|
58
|
+
|
59
59
|
user_debug_info = %{
|
60
60
|
* **id** : #{@user['id']}
|
61
61
|
* **name** : #{@user['name']}
|
data/lib/restpack-web/version.rb
CHANGED