Plaggerã®ãã©ã°ã¤ã³ã§ãããSubscription::BrowserHistoryãä½æãããããã使ãã¨ããã©ã¦ã¶ã®å±¥æ´ãPlaggerã§èªã¿è¾¼ããããã«ãªãããã¾ã¯Mozillaç³»ã®ãã©ã¦ã¶ã«ãã対å¿ãã¦ããªããã©ããµãã¯ã©ã¹ããã°è¯ãããã«ãªã£ã¦ãã®ã§ãIEãSafariåãããããããããã
å®ã¯ããã¯ããã§ã«id:sfujiwaraããã酒日記 はてな支店 - Morkの文字コードããã³ã酒日記 はてな支店 - CustomFeed::Mork頓挫ã§è§¦ãããã¦ãã¦ãPlaggerã®ãã±ããã®#377 (Subscription::BrowserHistory)ã«ããªã£ã¦ãããã¿ãåèã«ããã¦ããã ãã¾ããã
ã§ããã®Subscription::BrowserHistoryã使ãã¨ãªã«ãã§ãããã¨ããã¨ããã¨ãã°ä»¥ä¸ã®ãããªYAMLãæ¸ããã
plugins: - module: Subscription::BrowserHistory config: browser: Mozilla path: /path/to/your/history.dat - module: Filter::Rule rule: expression: $args->{entry}->link =~ m!^http://www\.youtube\.com/watch! - module: Publish::Feed config: format: RSS dir: /path/to/xml/dir/ filename: history.xml
ãã®YAMLã§ã¯ä»åä½ã£ããã©ã°ã¤ã³ã§Firefoxã®å±¥æ´ãPlaggerã®å ¥åã¨ãã¦ããããã®ãã¨Filter::Ruleã§YouTubeã®åç»URLã®ã¿ãåãåºãã¦ãRSSã¨ãã¦åºåãã¤ã¾ããèªåããã©ã¦ã¶ã§è¦ãåç»ãéããRSSãä½æã§ããã¨ããããã
ã¾ã ãã¾ã使ã£ã¦ã¿ã¦ãªããã©ããã®ãã©ã°ã¤ã³ã§ããããªãã¨ãå¯è½ã«ãªããä¾ãã°ã
- ä»æ¥è¦ãç»åãã¡ã¤ã«ãiPhotoã«çªã£è¾¼ãã
- ä»æ¥è¦ãYouTubeåç»ãPodcastã«ãã¦iPodã«çªã£è¾¼ãã
- Search::Estrainerãªã©ã¨çµã¿åããã¦ãèªåãããã¾ã§ã«è¦ãWebãã¼ã¸ããæ¤ç´¢ãã§ããããã«ããã
ãªã©ãã§ããããèªåãè¦ãWebãã¼ã¸ã®ä¸è¦§ã¨ããã®ã¯ããªããªãé¢ç½ããã¼ã¿ã£ã½ãã¦ãããããªå¿ç¨ãã§ãããã ãªã¼ã
ã½ã¼ã¹ã³ã¼ãã¯ãTracã®Subscription::BrowserHistoryã§è¦ããã
ãªãã¸ããªã®URIã¯ãhttp://svn.douzemille.net/repos/public/plagger/trunk/my-plugins/Subscription-BrowserHistory/ã¨ãªã£ã¦ããã®ã§ã使ã£ã¦ã¿ããæ¹ã¯ã©ããã
å®ã¯ãã®ãã©ã°ã¤ã³ããã®ã¾ã¾ã§ã¯æ¥æ¬èªãèªããªãã¨ããåé¡ãããããã®ã¢ã¸ã¥ã¼ã«ã®æ©è½ãå®ç¾ããã®ã«File::Morkモジュールãå©ç¨ãã¦ãããããã¯Mozillaã®å±¥æ´ãã¡ã¤ã«ãæ軽ã«èªã¿è¾¼ãã¦ä¾¿å©ãªãã ãã©ãæ®å¿µãªããæ¥æ¬èªãæ±ããªãããã®ç¹ã¯ãã«ããã¤ã対å¿ã®ããããæ¸ããã®ã§ããã使ã£ã¦ããããã°ãããããã¯こちらのエントリã«æ¸ããã
ä»åã¯ãã¹ããä¸å¿ããã¦ã¿ããã ããã©ããã¹ãæ¸ãã¨ã¢ã¸ã¥ã¼ã«ã®åä½ãä¸ç®ã§ææ¡ã§ãã¦ãããªãä»åã¯Subscriptionã£ã¦ãã¨ã§ã¢ã¸ã¥ã¼ã«æ¸ãã¦ããã©ããã¹ãæ¸ãã¦ã¿ãã¨ããã¯CustomFeedã®åä½ãããï¼ã¨æãã¦ããããããã¹ãã¯ä»¥ä¸ã«ãããã¦ããã
use strict; use t::TestPlagger; test_plugin_deps('Subscription::BrowserHistory'); plan 'no_plan'; run_eval_expected; __END__ === test file --- input config plugins: - module: Subscription::BrowserHistory config: browser: Mozilla path: $t::TestPlagger::BaseDirURI/t/samples/history.dat --- expected is $context->update->feeds->[0]->title, 'Mozilla Browser History'; is $context->update->feeds->[0]->link, "file://$t::TestPlagger::BaseDirURI/t/samples/history.dat"; is $context->update->feeds->[0]->entries->[0]->title, 'Plagger - Trac'; is $context->update->feeds->[0]->entries->[0]->link, 'http://plagger.org/trac';