open_graph 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,13 +56,13 @@
56
56
  if (arguments.length === 1) return theState[arguments[0]];
57
57
  if (arguments.length === 2) {
58
58
  theState[arguments[0]] = arguments[1];
59
- FBWorld.Helpers.makeMeACookie('fb-stub', JSON.stringify(theState));
59
+ FBWorld.Helpers.makeMeACookie('fb-stub', JSON.stringify(theState), cookieOptions);
60
60
  return arguments[1];
61
61
  }
62
62
  if (arguments.length === 3) {
63
63
  if(typeof(theState[arguments[0]]) == 'undefined') theState[arguments[0]] = {};
64
64
  theState[arguments[0]][arguments[1]] = arguments[2];
65
- FBWorld.Helpers.makeMeACookie('fb-stub', JSON.stringify(theState));
65
+ FBWorld.Helpers.makeMeACookie('fb-stub', JSON.stringify(theState), cookieOptions);
66
66
  return arguments[2];
67
67
  }
68
68
  }
@@ -362,7 +362,7 @@ FBWorld.Helpers.makeMeACookie = function(name, value, options) {
362
362
  value = '';
363
363
  options.expires = -1;
364
364
  } else {
365
- options.expires = null;
365
+ options.expires = 100; // 100 days from now
366
366
  }
367
367
  var expires = '';
368
368
  if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
@@ -1,3 +1,3 @@
1
1
  module OpenGraph
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Change.org Engineering