[google-sgnodemapper] r239 committed - Add more plaxo.com rules.

3 views
Skip to first unread message

codesite...@google.com

unread,
Sep 24, 2010, 6:47:51 PM9/24/10
to sgnodemapp...@googlegroups.com
Revision: 239
Author: jsmarr
Date: Fri Sep 24 15:46:56 2010
Log: Add more plaxo.com rules.

http://code.google.com/p/google-sgnodemapper/source/detail?r=239

Modified:
/trunk/autogen/nodemapper.js
/trunk/autogen/nodemapper_debug.js
/trunk/autogen/nodemapper_tests.js
/trunk/sites/simple.js

=======================================
--- /trunk/autogen/nodemapper.js Fri Sep 17 20:56:09 2010
+++ /trunk/autogen/nodemapper.js Fri Sep 24 15:46:56 2010
@@ -1348,14 +1348,29 @@
urlToGraphNode: nodemapper.createFirstMatchHandler([
nodemapper.createPathRegexpHandler(
"plaxo.com",
- new RegExp("^/profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|
$|\\?)")),
+ new
RegExp("^/(?:pulse/)?profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|$|
\\?)")),
nodemapper.createSomethingSlashUsernameHandler(
- "profile/show(?:Public)?",
+ "(?:pulse/)?profile/show(?:Public)?",
"plaxo.com",
{keyName: "pk"}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?directory/profile",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?profile/directory",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
nodemapper.createHostRegexpHandler(
"plaxo.com",
- new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i"))
+ new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?n=([A-Za-z][\\w.-]*)")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?u=([0-9]+)"),
+ {keyName: "pk"})
])});
nodemapper.addSimpleHandler("plaxo.com", "ident_to_profile",
"http://www.plaxo.com/profile/showPublic/", "");
=======================================
--- /trunk/autogen/nodemapper_debug.js Fri Sep 17 20:56:09 2010
+++ /trunk/autogen/nodemapper_debug.js Fri Sep 24 15:46:56 2010
@@ -2068,14 +2068,29 @@
urlToGraphNode: nodemapper.createFirstMatchHandler([
nodemapper.createPathRegexpHandler(
"plaxo.com",
- new RegExp("^/profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|
$|\\?)")),
+ new
RegExp("^/(?:pulse/)?profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|$|
\\?)")),
nodemapper.createSomethingSlashUsernameHandler(
- "profile/show(?:Public)?",
+ "(?:pulse/)?profile/show(?:Public)?",
"plaxo.com",
{keyName: "pk"}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?directory/profile",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?profile/directory",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
nodemapper.createHostRegexpHandler(
"plaxo.com",
- new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i"))
+ new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?n=([A-Za-z][\\w.-]*)")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?u=([0-9]+)"),
+ {keyName: "pk"})
])});
nodemapper.addSimpleHandler("plaxo.com", "ident_to_profile",
"http://www.plaxo.com/profile/showPublic/", "");
=======================================
--- /trunk/autogen/nodemapper_tests.js Fri Sep 17 20:56:09 2010
+++ /trunk/autogen/nodemapper_tests.js Fri Sep 24 15:46:56 2010
@@ -822,8 +822,17 @@

["urlToGraphNode", "http://www.plaxo.com/profile/showPublic/joseph/", "sgn://plaxo.com/?ident=joseph"],

["urlToGraphNode", "http://www.plaxo.com/profile/showPublic/joseph/1", "sgn://plaxo.com/?ident=joseph"],

["urlToGraphNode", "http://www.plaxo.com/profile/showPublic/JOSEPH", "sgn://plaxo.com/?ident=joseph"],
+
["urlToGraphNode", "http://www.plaxo.com/profile/publicRss/joseph", "sgn://plaxo.com/?ident=joseph"],

["urlToGraphNode", "http://www.plaxo.com/profile/show/joseph", "sgn://plaxo.com/?ident=joseph"],
+
["urlToGraphNode", "http://pulse.plaxo.com/profile/showPublic/joseph", "sgn://plaxo.com/?ident=joseph"],
+
["urlToGraphNode", "http://www.plaxo.com/pulse/profile/showPublic/joseph", "sgn://plaxo.com/?ident=joseph"],

["urlToGraphNode", "http://www.plaxo.com/profile/show/4294967299?pk=7b0da94f00ba0b53af9c52874fbe6fb1947763b7", "sgn://plaxo.com/?pk=4294967299"],
+
["urlToGraphNode", "http://www.plaxo.com/profile/directory/21474898560/6f90c0ec/Benjamin/Smarr", "sgn://plaxo.com/?pk=21474898560"],
+
["urlToGraphNode", "http://www.plaxo.com/pulse/profile/directory/21474898560/6f90c0ec/Benjamin/Smarr", "sgn://plaxo.com/?pk=21474898560"],
+
["urlToGraphNode", "http://www.plaxo.com/directory/profile/21474898560/6f90c0ec/Benjamin/Smarr", "sgn://plaxo.com/?pk=21474898560"],
+
["urlToGraphNode", "http://pulse.plaxo.com/directory/profile/21474898560/6f90c0ec/Benjamin/Smarr", "sgn://plaxo.com/?pk=21474898560"],
+
["urlToGraphNode", "http://www.plaxo.com/add_me?n=joseph", "sgn://plaxo.com/?ident=joseph"],
+
["urlToGraphNode", "https://www.plaxo.com/add_me?u=55835624668&v0=2086108&k0=1483633474", "sgn://plaxo.com/?pk=55835624668"],

["urlFromGraphNode", "sgn://plaxo.com/?ident=joseph", "profile", "http://www.plaxo.com/profile/showPublic/joseph"],

["urlToGraphNode", "http://www.plaxo.com/profile/showPublic/joseph", "sgn://plaxo.com/?ident=joseph"],

["urlFromGraphNode", "sgn://plaxo.com/?ident=joseph", "rss", "http://www.plaxo.com/profile/publicRss/joseph"],
=======================================
--- /trunk/sites/simple.js Fri Sep 17 20:56:09 2010
+++ /trunk/sites/simple.js Fri Sep 24 15:46:56 2010
@@ -34,14 +34,29 @@
urlToGraphNode: nodemapper.createFirstMatchHandler([
nodemapper.createPathRegexpHandler(
"plaxo.com",
- new RegExp("^/profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|
$|\\?)")),
+ new
RegExp("^/(?:pulse/)?profile/show(?:Public)?/([A-Za-z][\\w.-]*)(?:/|$|
\\?)")),
nodemapper.createSomethingSlashUsernameHandler(
- "profile/show(?:Public)?",
+ "(?:pulse/)?profile/show(?:Public)?",
"plaxo.com",
{keyName: "pk"}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?directory/profile",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
+ nodemapper.createSomethingSlashUsernameHandler(
+ "(?:pulse/)?profile/directory",
+ "plaxo.com",
+ {keyName: "pk", slashAnything: 1}),
nodemapper.createHostRegexpHandler(
"plaxo.com",
- new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i"))
+ new RegExp("([\\w\\-]+)\." + "myplaxo.com" + "$", "i")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?n=([A-Za-z][\\w.-]*)")),
+ nodemapper.createPathRegexpHandler(
+ "plaxo.com",
+ new RegExp("^/add_me\\?u=([0-9]+)"),
+ {keyName: "pk"})
])});
nodemapper.addSimpleHandler("plaxo.com", "ident_to_profile",
"http://www.plaxo.com/profile/showPublic/", "");
@@ -910,7 +925,16 @@
http://www.plaxo.com/profile/showPublic/joseph/
sgn://plaxo.com/?ident=joseph
http://www.plaxo.com/profile/showPublic/joseph/1
sgn://plaxo.com/?ident=joseph
http://www.plaxo.com/profile/showPublic/JOSEPH
sgn://plaxo.com/?ident=joseph
+http://www.plaxo.com/profile/publicRss/joseph sgn://plaxo.com/?ident=joseph
http://www.plaxo.com/profile/show/joseph sgn://plaxo.com/?ident=joseph
+http://pulse.plaxo.com/profile/showPublic/joseph
sgn://plaxo.com/?ident=joseph
+http://www.plaxo.com/pulse/profile/showPublic/joseph
sgn://plaxo.com/?ident=joseph

http://www.plaxo.com/profile/show/4294967299?pk=7b0da94f00ba0b53af9c52874fbe6fb1947763b7
sgn://plaxo.com/?pk=4294967299
+http://www.plaxo.com/profile/directory/21474898560/6f90c0ec/Benjamin/Smarr
sgn://plaxo.com/?pk=21474898560
+http://www.plaxo.com/pulse/profile/directory/21474898560/6f90c0ec/Benjamin/Smarr
sgn://plaxo.com/?pk=21474898560
+http://www.plaxo.com/directory/profile/21474898560/6f90c0ec/Benjamin/Smarr
sgn://plaxo.com/?pk=21474898560
+http://pulse.plaxo.com/directory/profile/21474898560/6f90c0ec/Benjamin/Smarr
sgn://plaxo.com/?pk=21474898560
+http://www.plaxo.com/add_me?n=joseph sgn://plaxo.com/?ident=joseph
+https://www.plaxo.com/add_me?u=55835624668&v0=2086108&k0=1483633474
sgn://plaxo.com/?pk=55835624668
profile(sgn://plaxo.com/?ident=joseph)
http://www.plaxo.com/profile/showPublic/joseph
rss(sgn://plaxo.com/?ident=joseph)
http://www.plaxo.com/profile/publicRss/joseph

Reply all
Reply to author
Forward
0 new messages