open_graph 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/facebook-stub/facebook-stub.js +3 -3
- data/lib/open_graph/version.rb +1 -1
- metadata +3 -3
|
@@ -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 =
|
|
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)) {
|
data/lib/open_graph/version.rb
CHANGED
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:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.1.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Change.org Engineering
|