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.
@@ -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
@@ -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']}
@@ -5,7 +5,7 @@ module RestPack
5
5
  def self.included(base)
6
6
  base.send(:before_filter, :include_restpack)
7
7
  end
8
-
8
+
9
9
  def include_restpack
10
10
  @restpack = RestPack::Web::Context.new(request.env)
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.2.15"
3
+ VERSION = "0.2.16"
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.15
4
+ version: 0.2.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: