pebblebed 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ module Sinatra
37
37
  end
38
38
 
39
39
  def current_identity_data
40
- return nil unless current_session
40
+ return DeepStruct.wrap({}) unless current_session
41
41
  return @current_identity_data if @current_identity_data_fetched
42
42
  @current_identity_data_fetched = true
43
43
  if cache_current_identity?
@@ -49,8 +49,8 @@ module Sinatra
49
49
  return @current_identity_data
50
50
  end
51
51
  @current_identity_data = pebbles.checkpoint.get("/identities/me")
52
- # Cache identity only if there is a current user
53
- ::Pebblebed.memcached.set(cache_key, @current_identity_data, IDENTITY_CACHE_TTL) if @current_identity_data['identity']
52
+ # Cache identity only if there is an identity in the data returned from checkpoint
53
+ ::Pebblebed.memcached.set(cache_key, @current_identity_data, IDENTITY_CACHE_TTL) if @current_identity_data['identity']
54
54
  else
55
55
  @current_identity_data = pebbles.checkpoint.get("/identities/me")
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module Pebblebed
2
- VERSION = "0.0.40"
2
+ VERSION = "0.0.41"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebblebed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
328
  version: '0'
329
329
  segments:
330
330
  - 0
331
- hash: -2086880644602354804
331
+ hash: -3749590712618864123
332
332
  required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  none: false
334
334
  requirements:
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
337
  version: '0'
338
338
  segments:
339
339
  - 0
340
- hash: -2086880644602354804
340
+ hash: -3749590712618864123
341
341
  requirements: []
342
342
  rubyforge_project: pebblebed
343
343
  rubygems_version: 1.8.24