Permalink
Browse files

Gut the old IPC::PubSub implementation

  • Loading branch information...
1 parent 5bb7543 commit e4d6512b6c71d699857ed7ab45005b1018879956 @alexmv alexmv committed Mar 25, 2012
Showing with 11 additions and 3,568 deletions.
  1. +0 −38 MANIFEST
  2. +0 −1 Makefile.PL
  3. +0 −15 doc/pubsub/backend_message_types
  4. +0 −83 doc/pubsub/subscriptions
  5. +0 −1,744 doc/pubsub/system_architecture.graffle
  6. BIN doc/pubsub/system_architecture.png
  7. +0 −6 examples/Chat/Makefile.PL
  8. +0 −15 examples/Chat/bin/jifty
  9. +0 −37 examples/Chat/etc/config.yml
  10. +0 −18 examples/Chat/lib/Chat/Action/Send.pm
  11. +0 −6 examples/Chat/lib/Chat/Event/Message.pm
  12. +0 −31 examples/Chat/lib/Chat/View.pm
  13. +0 −19 examples/Chat/t/00compile.t
  14. +0 −13 examples/Chat/t/01startup.t
  15. +0 −6 examples/Clock/Makefile.PL
  16. +0 −15 examples/Clock/bin/jifty
  17. +0 −21 examples/Clock/clockserv.pl
  18. +0 −37 examples/Clock/etc/config.yml
  19. +0 −15 examples/Clock/lib/Clock/Event/Tick.pm
  20. +0 −4 examples/Clock/share/web/templates/fragments/time
  21. +0 −36 examples/Clock/share/web/templates/index.html
  22. +0 −3 examples/Doxory/etc/config.yml
  23. +0 −3 examples/HelloKitty/etc/config.yml
  24. +0 −3 examples/MyWeblog/etc/config.yml
  25. +0 −7 examples/Ping/Makefile.PL
  26. +0 −15 examples/Ping/bin/jifty
  27. +0 −40 examples/Ping/etc/config.yml
  28. +0 −51 examples/Ping/lib/Ping/Action/AddPing.pm
  29. +0 −28 examples/Ping/lib/Ping/Action/CancelPing.pm
  30. +0 −25 examples/Ping/lib/Ping/Event/Pong.pm
  31. +0 −25 examples/Ping/lib/Ping/PingServer.pm
  32. +0 −23 examples/Ping/share/web/templates/fragments/pong
  33. +0 −49 examples/Ping/share/web/templates/index.html
  34. +0 −22 examples/Ping/t/00compile.t
  35. +0 −13 examples/Ping/t/01startup.t
  36. +0 −3 examples/ShrinkURL/etc/config.yml
  37. +0 −3 examples/Yada/etc/config.yml
  38. +2 −55 lib/Jifty.pm
  39. +0 −37 lib/Jifty/Action/Record.pm
  40. +0 −6 lib/Jifty/Action/Record/Create.pm
  41. +0 −6 lib/Jifty/Action/Record/Delete.pm
  42. +0 −6 lib/Jifty/Action/Record/Update.pm
  43. +5 −35 lib/Jifty/ClassLoader.pm
  44. +0 −4 lib/Jifty/Config.pm
  45. +0 −142 lib/Jifty/Event.pm
  46. +0 −45 lib/Jifty/Event/Log.pm
  47. +0 −52 lib/Jifty/Event/Model.pm
  48. +0 −3 lib/Jifty/Everything.pm
  49. +0 −67 lib/Jifty/Logger/EventAppender.pm
  50. +1 −7 lib/Jifty/Plugin/ViewDeclarePage/Page.pm
  51. +0 −2 lib/Jifty/Schema.pm
  52. +0 −8 lib/Jifty/Script/Schema.pm
  53. +0 −237 lib/Jifty/Subs.pm
  54. +0 −122 lib/Jifty/Subs/Render.pm
  55. +0 −7 lib/Jifty/Test.pm
  56. +2 −0 lib/Jifty/Upgrade/Internal.pm
  57. +0 −53 lib/Jifty/View/Declare/CoreTemplates.pm
  58. +1 −8 lib/Jifty/View/Declare/Page.pm
  59. +0 −1 lib/Jifty/Web.pm
  60. +0 −78 share/web/static/js/jifty_subs.js
  61. +0 −60 share/web/templates/=/subs
  62. +0 −3 share/web/templates/_elements/wrapper
  63. +0 −3 t/TestApp-Collection-Select/etc/config.yml
  64. +0 −3 t/TestApp-Dispatcher/etc/config.yml
  65. +0 −3 t/TestApp-JiftyJS/etc/config.yml
  66. +0 −3 t/TestApp-Mason/etc/config.yml
  67. +0 −3 t/TestApp-Notifications/etc/config.yml
  68. +0 −3 t/TestApp-Plugin-ActorMetadata/etc/config.yml
  69. +0 −3 t/TestApp-Plugin-AppPluginHasModels/etc/config.yml
  70. +0 −3 t/TestApp-Plugin-CompressedCSSandJS/etc/config.yml
  71. +0 −3 t/TestApp-Plugin-News/etc/config.yml
  72. +0 −3 t/TestApp-Plugin-OnClick/etc/config.yml
  73. +0 −3 t/TestApp-Plugin-PasswordAuth/etc/config.yml
  74. +0 −3 t/TestApp-Plugin-SinglePage/etc/config.yml
  75. +0 −3 t/TestApp-Regions/etc/config.yml
  76. +0 −3 t/TestApp-RestartServer/etc/config.yml
  77. +0 −3 t/TestApp-Template-Declare/etc/config.yml
  78. +0 −3 t/TestApp-Uploads/etc/config.yml
  79. +0 −3 t/TestApp/share/web/templates/_elements/wrapper
View
@@ -65,27 +65,8 @@ doc/packaging
doc/plugin-requirements
doc/plugin-syntax
doc/plugins-restated-assumptions
-doc/pubsub/backend_message_types
-doc/pubsub/subscriptions
-doc/pubsub/system_architecture.graffle
-doc/pubsub/system_architecture.png
etc/config.yml
etc/site_config.yml
-examples/Chat/bin/jifty
-examples/Chat/etc/config.yml
-examples/Chat/lib/Chat/Action/Send.pm
-examples/Chat/lib/Chat/Event/Message.pm
-examples/Chat/lib/Chat/View.pm
-examples/Chat/Makefile.PL
-examples/Chat/t/00compile.t
-examples/Chat/t/01startup.t
-examples/Clock/bin/jifty
-examples/Clock/clockserv.pl
-examples/Clock/etc/config.yml
-examples/Clock/lib/Clock/Event/Tick.pm
-examples/Clock/Makefile.PL
-examples/Clock/share/web/templates/fragments/time
-examples/Clock/share/web/templates/index.html
examples/Doxory/bin/jifty
examples/Doxory/etc/config.yml
examples/Doxory/lib/Doxory/Dispatcher.pm
@@ -110,17 +91,6 @@ examples/MyWeblog/share/web/templates/fragments/page_of_posts
examples/MyWeblog/share/web/templates/index.html
examples/MyWeblog/share/web/templates/post
examples/MyWeblog/t/00-model-Post.t
-examples/Ping/bin/jifty
-examples/Ping/etc/config.yml
-examples/Ping/lib/Ping/Action/AddPing.pm
-examples/Ping/lib/Ping/Action/CancelPing.pm
-examples/Ping/lib/Ping/Event/Pong.pm
-examples/Ping/lib/Ping/PingServer.pm
-examples/Ping/Makefile.PL
-examples/Ping/share/web/templates/fragments/pong
-examples/Ping/share/web/templates/index.html
-examples/Ping/t/00compile.t
-examples/Ping/t/01startup.t
examples/ShrinkURL/bin/jifty
examples/ShrinkURL/etc/config.yml
examples/ShrinkURL/lib/ShrinkURL/Action/CreateShrunkenURL.pm
@@ -182,9 +152,6 @@ lib/Jifty/Continuation.pm
lib/Jifty/CurrentUser.pm
lib/Jifty/DateTime.pm
lib/Jifty/Dispatcher.pm
-lib/Jifty/Event.pm
-lib/Jifty/Event/Log.pm
-lib/Jifty/Event/Model.pm
lib/Jifty/Everything.pm
lib/Jifty/Filter/DateTime.pm
lib/Jifty/Filter/JSON.pm
@@ -194,7 +161,6 @@ lib/Jifty/I18N.pm
lib/Jifty/JSON.pm
lib/Jifty/LetMe.pm
lib/Jifty/Logger.pm
-lib/Jifty/Logger/EventAppender.pm
lib/Jifty/Manual.pm
lib/Jifty/Manual/AccessControl.pod
lib/Jifty/Manual/AccessControl_zhtw.pod
@@ -318,8 +284,6 @@ lib/Jifty/Script/Schema.pm
lib/Jifty/Script/Script.pm
lib/Jifty/Script/Server.pm
lib/Jifty/Script/WriteCCJS.pm
-lib/Jifty/Subs.pm
-lib/Jifty/Subs/Render.pm
lib/Jifty/Test.pm
lib/Jifty/Test/Dist.pm
lib/Jifty/Test/Email.pm
@@ -521,7 +485,6 @@ share/web/static/js/iutil.js
share/web/static/js/jifty.js
share/web/static/js/jifty_interface.js
share/web/static/js/jifty_smoothscroll.js
-share/web/static/js/jifty_subs.js
share/web/static/js/jifty_utils.js
share/web/static/js/jquery-1.4.1.js
share/web/static/js/jquery.ajaxQueue.js
@@ -547,7 +510,6 @@ share/web/static/js/yui/menu.js
share/web/static/js/yui/oom_select.patch
share/web/static/js/yui/tabview.js
share/web/static/js/yui/yahoo.js
-share/web/templates/=/subs
share/web/templates/__jifty/autocomplete.xml
share/web/templates/__jifty/empty
share/web/templates/__jifty/error/_elements/error_text
View
@@ -52,7 +52,6 @@ requires('HTTP::Date');
requires('Hash::Merge', '0.12');
requires('Hash::MultiValue', 0.05);
requires('IO::Handle::Util');
-requires('IPC::PubSub' => '0.23' );
requires('IPC::Run3');
requires('Jifty::DBI' => '0.68' ); # Jifty::DBI::Collection Jifty::DBI::Handle Jifty::DBI::Record::Cachable Jifty::DBI::SchemaGenerator
requires('JSON' => 2.17);
@@ -1,15 +0,0 @@
-Payload Types:
-
-ClientAction --> Republisher
- #subscription
- - Add Subscription (IP)
- - Remove Subscription (IP)
-
-Republisher --> ClientRender
- #pong-$IP
- - Pong (IP, IS_ALIVE)
-
-Server --> Republisher
- #pong
- - Pong (IP, IS_ALIVE)
-
@@ -1,83 +0,0 @@
-Subscriptions we want to support
-
-
-
- Create,Read,Update,Delete
-
- Class: MyApp::Record::Foo
-
-
-
-For hiveminder: NEWS
-
- * on every page, we have a little box with the 3 most recent news entries:
-
- <h2>News</h2>
- <%perl>
- my $sub = Jifty::ClientSubscription->new(
- query_class => 'BTDT::Model::News',
- query => ['id_not' => undef],
- # Ordering?
- on_add => [
- { render_with => '/fragments/news/item',
- render => after => 'news.entries.last_child'
- },
- { # how do we remove something if there are more than 3?
- }
-
- ]);
-
-
-For hiveminder:
-
- My page is:
-
- list of: tasks matching 'owner me, complete is not true'
- each item is rendered as '/fragments/tasklist/view, with args %ARGS and record => $found
-
-
- Subscribe to:
-
- * creation of things that match 'owner me, complete is not true'
- * update, delete to anything that matches 'owner me, complete is not true' after the changes
- * update, delete to anything that matches 'owner me, complete is not true' before the changes
-
-
-
- "Render this component as":
-
- wrapper
- list of items matching the subscription 'owner me, complete is not true'
- render each item with '/fragments/tasklist/view', args => %ARGS, item $found
-
-
- my $subscription = Jifty::ClientSubscription->new(
- on_add => {
- args => \%ARGS,
- render_with => '/fragments/tasklist/view',
- render => after => '.parent.last_child'
- # before, after, replacing
-
- },
- on_remove => {
- args => \%ARGS,
- render => replacing => 'self'
- render_with => '/fragments/tasklist/fade_away'
- },
- query_class => 'BTDT::Model::Task',
- query => [ owner => 'me', complete_not => 'true' ]
- );
-
-
-# Session::ClientSide-ish encoding of SIDs to subscribe
-# Each request carries IDs of its existing subs (stashed into ->subs)
-my $sid = Jifty->subs->add(
- query_class => 'Ping',
- query => [ host => '127.0.0.1' ],
- render_with => '/fragments/pong',
-);
-Jifty->subs->cancel($sid);
-
-# This actually just calls the fragments with Publisher-msg structures as %ARGS
-# Print-on-void-context, return-on-other-contexts
-Jifty->subs->render;
Oops, something went wrong. Retry.

0 comments on commit e4d6512

Please sign in to comment.