tdiary-contrib 3.2.2.20130518
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.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +35 -0
- data/README.en.md +12 -0
- data/README.md +13 -0
- data/Rakefile +41 -0
- data/doc/en/filter/spambayes.txt +3 -0
- data/doc/en/plugin.txt +1 -0
- data/doc/en/style/hatena.txt +10 -0
- data/doc/en/style/markdown.txt +16 -0
- data/doc/en/util.txt +1 -0
- data/doc/ja/filter/antirefspam.history.txt +59 -0
- data/doc/ja/filter/antirefspam.txt +86 -0
- data/doc/ja/filter/comment_key.ja.html +182 -0
- data/doc/ja/filter/spambayes.txt +3 -0
- data/doc/ja/plugin/add_bookmark.txt +50 -0
- data/doc/ja/plugin/category_to_tag.txt +21 -0
- data/doc/ja/plugin/cocoment.txt +31 -0
- data/doc/ja/plugin/google_adsense.txt +25 -0
- data/doc/ja/plugin/google_analytics.txt +7 -0
- data/doc/ja/plugin/image_detail.txt +69 -0
- data/doc/ja/plugin/image_gps.txt +36 -0
- data/doc/ja/plugin/image_gps2.txt +41 -0
- data/doc/ja/plugin/livedoor_weather.txt +105 -0
- data/doc/ja/plugin/opensearch_ad.txt +16 -0
- data/doc/ja/plugin/section_footer.txt +84 -0
- data/doc/ja/plugin/select_theme.txt +1 -0
- data/doc/ja/plugin.txt +13 -0
- data/doc/ja/style/hatena.txt +10 -0
- data/doc/ja/style/markdown.txt +13 -0
- data/doc/ja/util.txt +12 -0
- data/filter/antirefspam.rb +263 -0
- data/filter/commentkey.rb +29 -0
- data/filter/commentsize.rb +18 -0
- data/filter/hidecomment.rb +13 -0
- data/filter/iplookup.rb +55 -0
- data/filter/plugin/antirefspam.rb +59 -0
- data/filter/plugin/commentkey.rb +58 -0
- data/filter/plugin/commentsize.rb +12 -0
- data/filter/plugin/en/iplookup.rb +9 -0
- data/filter/plugin/en/spambayes.rb +123 -0
- data/filter/plugin/iplookup.rb +39 -0
- data/filter/plugin/ja/antirefspam.rb +91 -0
- data/filter/plugin/ja/commentkey.rb +17 -0
- data/filter/plugin/ja/commentsize.rb +6 -0
- data/filter/plugin/ja/iplookup.rb +9 -0
- data/filter/plugin/ja/spambayes.rb +124 -0
- data/filter/plugin/spambayes.rb +501 -0
- data/filter/plugin/zh/iplookup.rb +9 -0
- data/filter/rblcheck.rb +36 -0
- data/filter/spambayes.rb +535 -0
- data/filter/spamlookup.rb +37 -0
- data/io/dbi_io/ChangeLog +19 -0
- data/io/dbi_io/README.ja +39 -0
- data/io/dbi_io/dbi_io.rb +181 -0
- data/io/dbi_io/plugin/refererDbiIO.rb +76 -0
- data/io/dbi_io/tdiary_table.sql +42 -0
- data/js/appstore.js +109 -0
- data/js/datepicker.js +69 -0
- data/js/editor.js +82 -0
- data/js/flickr.js +157 -0
- data/js/image_ex.js +79 -0
- data/js/jquery.socialbutton.js +842 -0
- data/js/nicovideo.js +17 -0
- data/js/picasa.js +322 -0
- data/js/plugin_checker.js +71 -0
- data/js/prettify/lang-apollo.js +2 -0
- data/js/prettify/lang-clj.js +18 -0
- data/js/prettify/lang-css.js +2 -0
- data/js/prettify/lang-go.js +1 -0
- data/js/prettify/lang-hs.js +2 -0
- data/js/prettify/lang-lisp.js +3 -0
- data/js/prettify/lang-lua.js +2 -0
- data/js/prettify/lang-ml.js +2 -0
- data/js/prettify/lang-n.js +4 -0
- data/js/prettify/lang-proto.js +1 -0
- data/js/prettify/lang-scala.js +2 -0
- data/js/prettify/lang-sql.js +2 -0
- data/js/prettify/lang-tex.js +1 -0
- data/js/prettify/lang-vb.js +2 -0
- data/js/prettify/lang-vhdl.js +3 -0
- data/js/prettify/lang-wiki.js +2 -0
- data/js/prettify/lang-xq.js +3 -0
- data/js/prettify/lang-yaml.js +2 -0
- data/js/prettify/prettify.css +1 -0
- data/js/prettify/prettify.js +28 -0
- data/js/referer.js +17 -0
- data/js/show_and_hide.js +39 -0
- data/js/socialbutton.js +126 -0
- data/js/twitter_anywhere.js +28 -0
- data/js/yahoo_kousei.js +21 -0
- data/lib/bayes/convert.rb +34 -0
- data/lib/bayes.rb +232 -0
- data/lib/exifparser/BUGS +1 -0
- data/lib/exifparser/ChangeLog +169 -0
- data/lib/exifparser/README +15 -0
- data/lib/exifparser/install.rb +1015 -0
- data/lib/exifparser/lib/exifparser/makernote/canon.rb +502 -0
- data/lib/exifparser/lib/exifparser/makernote/fujifilm.rb +415 -0
- data/lib/exifparser/lib/exifparser/makernote/minolta.rb +84 -0
- data/lib/exifparser/lib/exifparser/makernote/mk_nikonflensname.rb +39 -0
- data/lib/exifparser/lib/exifparser/makernote/nikon.rb +267 -0
- data/lib/exifparser/lib/exifparser/makernote/nikon2.rb +581 -0
- data/lib/exifparser/lib/exifparser/makernote/nikonflensname.rb +438 -0
- data/lib/exifparser/lib/exifparser/makernote/olympus.rb +225 -0
- data/lib/exifparser/lib/exifparser/makernote/prove.rb +84 -0
- data/lib/exifparser/lib/exifparser/makernote/sigma.rb +237 -0
- data/lib/exifparser/lib/exifparser/pre-setup.rb +1 -0
- data/lib/exifparser/lib/exifparser/scan.rb +278 -0
- data/lib/exifparser/lib/exifparser/tag.rb +2298 -0
- data/lib/exifparser/lib/exifparser/thumbnail.rb +76 -0
- data/lib/exifparser/lib/exifparser/utils.rb +88 -0
- data/lib/exifparser/lib/exifparser.rb +265 -0
- data/lib/exifparser/sample/exifview.rb +279 -0
- data/lib/tdiary-contrib.rb +19 -0
- data/lib/wgs2tky.rb +93 -0
- data/misc/section_footer2/buzzurl.yaml +6 -0
- data/misc/section_footer2/fc2.yaml +6 -0
- data/misc/section_footer2/ldc.yaml +6 -0
- data/misc/section_footer2/retweet.yaml +7 -0
- data/misc/section_footer2/twitter.yaml +7 -0
- data/misc/section_footer2/yahoo.yaml +6 -0
- data/misc/tdiarygraph/tdiarygraph120x90e.swf +0 -0
- data/misc/tdiarygraph/tdiarygraph125x125e.swf +0 -0
- data/misc/tdiarygraph/tdiarygraph240x180e.swf +0 -0
- data/misc/tdiarygraph/tdiarygraph468x60e.swf +0 -0
- data/misc/tdiarygraph/tdiarygraph728x90e.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes125x125r.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes125x125r7.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes125x125s.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes125x30.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes234x30.swf +0 -0
- data/misc/tdiarytimes/tdiarytimes468x30.swf +0 -0
- data/plugin/add_bookmark.rb +89 -0
- data/plugin/apple_webclip.rb +26 -0
- data/plugin/appstore.rb +47 -0
- data/plugin/bigpresen.rb +86 -0
- data/plugin/bitly.rb +39 -0
- data/plugin/bootstrap-navi.rb +54 -0
- data/plugin/canonical.rb +9 -0
- data/plugin/category_similar.rb +73 -0
- data/plugin/category_to_tag.rb +60 -0
- data/plugin/category_to_tagcloud.rb +172 -0
- data/plugin/cocomment.rb +37 -0
- data/plugin/code-prettify.rb +23 -0
- data/plugin/coderwall.rb +34 -0
- data/plugin/datepicker.rb +28 -0
- data/plugin/day2section.rb +20 -0
- data/plugin/del_footer.rb +111 -0
- data/plugin/description_from_body.rb +23 -0
- data/plugin/development.rb +16 -0
- data/plugin/editor.rb +11 -0
- data/plugin/en/add_bookmark.rb +20 -0
- data/plugin/en/del_footer.rb +10 -0
- data/plugin/en/git-register.rb +3 -0
- data/plugin/en/livedoor_weather.rb +25 -0
- data/plugin/en/microsummary.rb +18 -0
- data/plugin/en/nicovideo.rb +38 -0
- data/plugin/en/openid.rb +8 -0
- data/plugin/en/section_footer.rb +6 -0
- data/plugin/en/section_footer2.rb +3 -0
- data/plugin/en/socialbutton.rb +5 -0
- data/plugin/everytrail.rb +39 -0
- data/plugin/facebook_comments.rb +59 -0
- data/plugin/flickr.rb +209 -0
- data/plugin/gist.rb +16 -0
- data/plugin/git-register.rb +240 -0
- data/plugin/github_badge.rb +27 -0
- data/plugin/github_link.rb +9 -0
- data/plugin/goo_gl.rb +42 -0
- data/plugin/google_adsense.rb +132 -0
- data/plugin/google_analytics.rb +39 -0
- data/plugin/google_map.rb +168 -0
- data/plugin/google_sitemaps.rb +60 -0
- data/plugin/google_webmaster.rb +22 -0
- data/plugin/hatena_bookmark_nocomment.rb +9 -0
- data/plugin/hatena_star.rb +66 -0
- data/plugin/hb_footer.rb +255 -0
- data/plugin/hb_footer4sec.rb +244 -0
- data/plugin/hb_footer4sec_js.rb +30 -0
- data/plugin/hide_comment_form.rb +4 -0
- data/plugin/hide_sidebar_iphone.rb +21 -0
- data/plugin/iddy.rb +81 -0
- data/plugin/image_detail.rb +143 -0
- data/plugin/image_ex.rb +462 -0
- data/plugin/image_gps.rb +128 -0
- data/plugin/inline_wiki.rb +6 -0
- data/plugin/instagr.rb +64 -0
- data/plugin/ja/add_bookmark.rb +20 -0
- data/plugin/ja/del_footer.rb +10 -0
- data/plugin/ja/flickr.rb +62 -0
- data/plugin/ja/git-register.rb +3 -0
- data/plugin/ja/google_sitemaps.rb +35 -0
- data/plugin/ja/livedoor_weather.rb +25 -0
- data/plugin/ja/microsummary.rb +18 -0
- data/plugin/ja/nicovideo.rb +41 -0
- data/plugin/ja/openid.rb +7 -0
- data/plugin/ja/section_footer.rb +6 -0
- data/plugin/ja/section_footer2.rb +4 -0
- data/plugin/ja/socialbutton.rb +6 -0
- data/plugin/jdate.rb +20 -0
- data/plugin/jholiday.rb +16 -0
- data/plugin/jmonth.rb +20 -0
- data/plugin/jquery_ui_theme.rb +55 -0
- data/plugin/jroku.rb +28 -0
- data/plugin/jyear.rb +37 -0
- data/plugin/latlonglab_route.rb +25 -0
- data/plugin/lazy_referer.rb +38 -0
- data/plugin/livedoor_weather.rb +180 -0
- data/plugin/make_link.rb +44 -0
- data/plugin/makerss_category.rb +43 -0
- data/plugin/makerss_comment.rb +35 -0
- data/plugin/microsummary.rb +62 -0
- data/plugin/mm_footer.rb +215 -0
- data/plugin/monthly_autopagerize.rb +67 -0
- data/plugin/my_hotentry.rb +132 -0
- data/plugin/navi_day.rb +118 -0
- data/plugin/navi_this_month.rb +15 -0
- data/plugin/nicovideo.rb +115 -0
- data/plugin/notify_miniblog.rb +134 -0
- data/plugin/ogp.rb +55 -0
- data/plugin/ohmsha_estore.rb +71 -0
- data/plugin/openid.rb +90 -0
- data/plugin/opensearch_ad.rb +33 -0
- data/plugin/picasa.rb +56 -0
- data/plugin/plugin_checker.rb +41 -0
- data/plugin/popit.rb +22 -0
- data/plugin/prettify.rb +19 -0
- data/plugin/prezi.rb +10 -0
- data/plugin/profile.rb +222 -0
- data/plugin/puboo.rb +93 -0
- data/plugin/pygments_css.rb +76 -0
- data/plugin/rating.rb +419 -0
- data/plugin/recent_estraier.rb +50 -0
- data/plugin/recent_tweet.rb +71 -0
- data/plugin/retweet.rb +86 -0
- data/plugin/rubykaigi.rb +99 -0
- data/plugin/search-bing.rb +87 -0
- data/plugin/search-default.rb +264 -0
- data/plugin/search-google-custom.rb +60 -0
- data/plugin/search-yahoo-websearch.rb +121 -0
- data/plugin/search-yahoo.rb +109 -0
- data/plugin/section_footer.rb +195 -0
- data/plugin/section_footer2.rb +278 -0
- data/plugin/section_permalink.rb +73 -0
- data/plugin/section_permalink_anchor.rb +39 -0
- data/plugin/select_style.rb +42 -0
- data/plugin/select_theme.rb +90 -0
- data/plugin/show_and_hide.rb +77 -0
- data/plugin/slideshare.rb +10 -0
- data/plugin/socialbutton.rb +60 -0
- data/plugin/tatsu_zine.rb +93 -0
- data/plugin/tdiarygraph_flashstyle.rb +296 -0
- data/plugin/tdiarytimes.rb +166 -0
- data/plugin/tdiarytimes2.rb +406 -0
- data/plugin/tdiarytimes_flashstyle.rb +263 -0
- data/plugin/tdiarytimes_textstyle.rb +290 -0
- data/plugin/title_anchor.rb +16 -0
- data/plugin/tweet_quote.rb +106 -0
- data/plugin/twitpic.rb +10 -0
- data/plugin/twitter.rb +46 -0
- data/plugin/twitter_anywhere.rb +209 -0
- data/plugin/twitter_badge.rb +42 -0
- data/plugin/twitter_js.rb +59 -0
- data/plugin/ustream.rb +19 -0
- data/plugin/vimeo.rb +14 -0
- data/plugin/volatile.rb +89 -0
- data/plugin/vote.rb +100 -0
- data/plugin/wikiloc.rb +27 -0
- data/plugin/windex.rb +512 -0
- data/plugin/yahoo_kousei.rb +79 -0
- data/plugin/yahoo_map.rb +97 -0
- data/plugin/youtube.rb +33 -0
- data/plugin/yshop.rb +189 -0
- data/plugin/zenback.rb +46 -0
- data/spec/apple_webclip_spec.rb +46 -0
- data/spec/fixtures/friendfeed.xml +2 -0
- data/spec/fixtures/github.json +1 -0
- data/spec/fixtures/twitter.xml +73 -0
- data/spec/gist_spec.rb +16 -0
- data/spec/github_link_spec.rb +39 -0
- data/spec/google_analytics_spec.rb +60 -0
- data/spec/jdate_spec.rb +23 -0
- data/spec/jmonth_spec.rb +28 -0
- data/spec/jyear_spec.rb +21 -0
- data/spec/my_hotentry_spec.rb +78 -0
- data/spec/openid_spec.rb +246 -0
- data/spec/opensearch_ad_spec.rb +50 -0
- data/spec/profile_spec.rb +88 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec_helper.rb +223 -0
- data/spec/title_anchor_spec.rb +39 -0
- data/spec/twitter_js_spec.rb +116 -0
- data/spec/youtube_spec.rb +20 -0
- data/style/hatena_style.rb +1011 -0
- data/style/markdown_style.rb +239 -0
- data/style/wikiext_style.rb +21 -0
- data/tdiary-contrib.gemspec +25 -0
- data/util/clean-spam/README.ja +1 -0
- data/util/clean-spam/tdiary-comment-clean +46 -0
- data/util/clean-spam/tdiary-comment-clean2 +81 -0
- data/util/clean-spam/tdiary-referer-clean +46 -0
- data/util/convert_pstore.rb +82 -0
- data/util/estraier-search/ChangeLog +36 -0
- data/util/estraier-search/README.ja +114 -0
- data/util/estraier-search/en/estraier-register.rb +3 -0
- data/util/estraier-search/estraier-register.rb +298 -0
- data/util/estraier-search/estraier-search.rb +273 -0
- data/util/estraier-search/estraier.rhtml +73 -0
- data/util/estraier-search/estraier.rxml +23 -0
- data/util/estraier-search/i.estraier.rhtml +31 -0
- data/util/estraier-search/ja/estraier-register.rb +3 -0
- data/util/image-gallery/README.ja +27 -0
- data/util/image-gallery/image-gallery.rb +523 -0
- data/util/image-gallery/image-gallery.rb.euc-jp +523 -0
- data/util/image-gallery/js/SmoothGallery/Changelog +52 -0
- data/util/image-gallery/js/SmoothGallery/css/ReMooz.css +186 -0
- data/util/image-gallery/js/SmoothGallery/css/img/carrow1.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/carrow2.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/closebox.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/closebox.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/fleche1.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/fleche1.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/fleche2.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/fleche2.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/loading-bar-black.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/open.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/open.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_e.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_n.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_ne.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_nw.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_s.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_se.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_sw.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/remo_bg_w.png +0 -0
- data/util/image-gallery/js/SmoothGallery/css/img/spinner.gif +0 -0
- data/util/image-gallery/js/SmoothGallery/css/jd.gallery.css +371 -0
- data/util/image-gallery/js/SmoothGallery/css/layout.css +91 -0
- data/util/image-gallery/js/SmoothGallery/license.txt +621 -0
- data/util/image-gallery/js/SmoothGallery/resizer.php +113 -0
- data/util/image-gallery/js/SmoothGallery/scripts/Changelog +52 -0
- data/util/image-gallery/js/SmoothGallery/scripts/History.Routing.js +126 -0
- data/util/image-gallery/js/SmoothGallery/scripts/History.js +109 -0
- data/util/image-gallery/js/SmoothGallery/scripts/ReMooz.js +364 -0
- data/util/image-gallery/js/SmoothGallery/scripts/jd.gallery.js +843 -0
- data/util/image-gallery/js/SmoothGallery/scripts/jd.gallery.set.js +183 -0
- data/util/image-gallery/js/SmoothGallery/scripts/jd.gallery.transitions.js +90 -0
- data/util/image-gallery/js/SmoothGallery/scripts/jdgalleryresize.js +828 -0
- data/util/image-gallery/js/SmoothGallery/scripts/license.txt +621 -0
- data/util/image-gallery/js/SmoothGallery/scripts/mootools-1.2-more.js +103 -0
- data/util/image-gallery/js/SmoothGallery/scripts/mootools-1.2.1-core-yc.js +349 -0
- data/util/image-gallery/js/SmoothGallery/scripts/resizer.php +113 -0
- data/util/image-gallery/misc/plugin/recent_image.rb +406 -0
- data/util/image-gallery/skel/gallery.rhtml +154 -0
- data/util/image-gallery/skel/gallery.rhtml.euc-jp +154 -0
- data/util/image-gallery/tdiary.conf.igsample +8 -0
- data/util/image-gallery/theme/image-gallery.css +85 -0
- data/util/image2flickr.rb +282 -0
- data/util/posttdiary/README.ja +12 -0
- data/util/posttdiary/posttdiary-ex.rb +1155 -0
- data/util/posttdiary/posttdiary.rb +245 -0
- data/util/rast-search/ChangeLog +55 -0
- data/util/rast-search/README.ja +99 -0
- data/util/rast-search/en/rast-register.rb +3 -0
- data/util/rast-search/i.rast.rhtml +33 -0
- data/util/rast-search/ja/rast-register.rb +3 -0
- data/util/rast-search/rast-register.rb +326 -0
- data/util/rast-search/rast-search.rb +249 -0
- data/util/rast-search/rast.rhtml +66 -0
- data/util/rast-search/rast.rxml +21 -0
- data/util/section_link/README +11 -0
- data/util/section_link/misc/plugin/section_link.rb +68 -0
- data/util/section_link/misc/plugin/section_link_anchor.rb +38 -0
- data/util/section_link/tdiary/tdiary_day_ext.rb +21 -0
- data/util/section_link/tdiary/tdiaryext_style.rb +36 -0
- data/util/section_link/tdiary/wikiext_style.rb +36 -0
- data/util/tdiary-for-ruby1.9/compatible.rb +97 -0
- data/util/tdiary-for-ruby1.9/tdiary-2.2.0.patch +98 -0
- data/util/tdiary-for-ruby1.9/tdiary-2.3.1.patch +212 -0
- data/util/tdiary-grep/README +4 -0
- data/util/tdiary-grep/grep.rb +445 -0
- data/util/tdiary-mode/http.el +130 -0
- data/util/tdiary-mode/tdiary-mode.el +613 -0
- data/util/tdiary-vim/ChangeLog +25 -0
- data/util/tdiary-vim/README +60 -0
- data/util/tdiary-vim/tdiary.vim +350 -0
- data/util/tdiarysearch/README.en +53 -0
- data/util/tdiarysearch/README.ja +99 -0
- data/util/tdiarysearch/search.rb +504 -0
- metadata +497 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 59c721bca4f0c5fb48ae56cdec90cf2b2c61423f
|
4
|
+
data.tar.gz: 2486213aa0c09dd053585bc1dd4ebb6c9cf01889
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 41975c8e216799afe075a65878a34a9e5198e7c4484c705ab85b01df27302599db9ae6051775649af6309f0b339d82641e5d8a42ac7d6fa22e1034ef01f11be6
|
7
|
+
data.tar.gz: c4701beb053bcea03bfb66d6071b1c14f74e4b82a525fb6ab455c0b704959aba276081f8321f21227e576b0c7ed72dbd7afd3471ca085c9fd494c3f8a6ab3780
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
coverage
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.2.4)
|
5
|
+
json (1.8.0)
|
6
|
+
multi_json (1.7.3)
|
7
|
+
rake (10.0.4)
|
8
|
+
rcov (1.0.0)
|
9
|
+
rspec (2.13.0)
|
10
|
+
rspec-core (~> 2.13.0)
|
11
|
+
rspec-expectations (~> 2.13.0)
|
12
|
+
rspec-mocks (~> 2.13.0)
|
13
|
+
rspec-core (2.13.1)
|
14
|
+
rspec-expectations (2.13.0)
|
15
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
16
|
+
rspec-mocks (2.13.1)
|
17
|
+
simplecov (0.7.1)
|
18
|
+
multi_json (~> 1.0)
|
19
|
+
simplecov-html (~> 0.7.1)
|
20
|
+
simplecov-html (0.7.1)
|
21
|
+
tdiary (3.2.2.20130518)
|
22
|
+
bundler (~> 1.3)
|
23
|
+
thor (~> 0.18)
|
24
|
+
thor (0.18.1)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
json
|
31
|
+
rake
|
32
|
+
rcov
|
33
|
+
rspec
|
34
|
+
simplecov
|
35
|
+
tdiary
|
data/README.en.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# tDiary contrib package
|
2
|
+
|
3
|
+
This package include some utilities and plugins for tDiary.
|
4
|
+
See documents in each directories.
|
5
|
+
|
6
|
+
See licenses and copyrights in each theme files. If no license
|
7
|
+
or copyright, it can be distoributed by GPL2, and it has a
|
8
|
+
copyright below:
|
9
|
+
|
10
|
+
```
|
11
|
+
Copyright (c) 2005 TADA Tadashi <t@tdtds.jp>
|
12
|
+
```
|
data/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# tDiary contrib パッケージ
|
2
|
+
|
3
|
+
このパッケージには、tDiaryに関係したいくつかのユーティリティやプラグ
|
4
|
+
インが収録されています。ドキュメントはそれぞれのツールのディレクトリ
|
5
|
+
に含まれています。
|
6
|
+
|
7
|
+
著作権およびライセンスは各テーマのファイルに記述してあるものに従いま
|
8
|
+
すが、特に明記されていない場合、配布条件はGPL2、著作権は以下になりま
|
9
|
+
す。
|
10
|
+
|
11
|
+
```
|
12
|
+
Copyright (c) 2005 TADA Tadashi <t@tdtds.jp>
|
13
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
require 'rake/clean'
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
require 'bundler/gem_tasks'
|
6
|
+
|
7
|
+
CLOBBER.include(
|
8
|
+
"coverage"
|
9
|
+
)
|
10
|
+
|
11
|
+
task :default => [:spec]
|
12
|
+
|
13
|
+
desc 'Run the code in specs'
|
14
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
15
|
+
t.pattern = "spec/**/*_spec.rb"
|
16
|
+
end
|
17
|
+
|
18
|
+
namespace :spec do
|
19
|
+
if defined?(RCov)
|
20
|
+
desc 'Run the code in specs with RCov'
|
21
|
+
RSpec::Core::RakeTask.new(:report) do |t|
|
22
|
+
t.pattern = "spec/**/*_spec.rb"
|
23
|
+
t.rcov = true
|
24
|
+
t.rcov_opts = IO.readlines(File.join('spec', 'rcov.opts')).map {|line| line.chomp.split(" ") }.flatten
|
25
|
+
end
|
26
|
+
else
|
27
|
+
desc 'Run the code in specs with SimpleCov'
|
28
|
+
task :report do
|
29
|
+
ENV['COVERAGE'] = 'simplecov'
|
30
|
+
Rake::Task["spec"].invoke
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Local Variables:
|
36
|
+
# mode: ruby
|
37
|
+
# indent-tabs-mode: t
|
38
|
+
# tab-width: 3
|
39
|
+
# ruby-indent-level: 3
|
40
|
+
# End:
|
41
|
+
# vim: ts=3
|
data/doc/en/plugin.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
== tDiary contrib/plugin ==
|
@@ -0,0 +1,10 @@
|
|
1
|
+
== tDiary contrib/sytle/hatena_style ==
|
2
|
+
|
3
|
+
Hatena::Diary <http://d.hatena.ne.jp/> compatible style
|
4
|
+
|
5
|
+
* How to install
|
6
|
+
Copy hatena_style.rb into core/tdiary/ directory, where other styles are.
|
7
|
+
After that, edit tdiary.conf and specify style as 'Hatena'.
|
8
|
+
|
9
|
+
* TextFormattingRules
|
10
|
+
Refer <http://d.hatena.ne.jp/help>. All but <hatena ...> expression are supported.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
== tDiary contrib/sytle/markdown_style ==
|
2
|
+
|
3
|
+
Markdown <http://daringfireball.net/projects/markdown/> style
|
4
|
+
|
5
|
+
* How to install
|
6
|
+
require 'BlueCloth'. get & install from <http://raa.ruby-lang.org/project/bluecloth/>
|
7
|
+
Copy markdown_style.rb into core/tdiary/ directory, where other styles are.
|
8
|
+
After that, edit tdiary.conf and specify style as 'Markdown'.
|
9
|
+
|
10
|
+
* TextFormattingRules
|
11
|
+
Refer <http://daringfireball.net/projects/markdown/syntax>.
|
12
|
+
** tDiary original feature
|
13
|
+
# => <h3> & section
|
14
|
+
## => <h4>
|
15
|
+
### => <h5>
|
16
|
+
{{my '20041004p01','test'}} => tDiary's plugin
|
data/doc/en/util.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
== tDiary contrib/util ==
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
ver 1.0 2005/06/26
|
4
|
+
・更新履歴を別ファイルにした
|
5
|
+
・リンク元のチェックの有無を設定できるようにした (thanks to Kazuhiro NISHIYAMA)
|
6
|
+
・ブロックしたツッコミをログ(spamcomments)に残すようにした
|
7
|
+
・一度も設定を行っていない場合にエラーが起きていた不具合を修正 (thanks to Kazuhiro NISHIYAMA)
|
8
|
+
・"トップページURL" が相対指定になっているときに、チェックをすり抜けてしまうことがあった
|
9
|
+
不具合を修正 (thanks to Kazuhiro NISHIYAMA)
|
10
|
+
・"トップページURL" と同様に base_url でもチェックするようにした (thanks to Kazuhiro NISHIYAMA)
|
11
|
+
・"「リンク元置換リスト」にマッチするリンク元を信頼する" を有効にしており、かつリンク元の
|
12
|
+
URLの長さが50文字以上だった場合に、チェックをすり抜けてしまっていた不具合を修正
|
13
|
+
(thanks to Hiroshi Koyasu)
|
14
|
+
|
15
|
+
ver 0.9 2004/11/24
|
16
|
+
・リンク元置換リストにマッチするリンク元を信頼する機能を追加 (thanks to Shun-ichi TAHARA)
|
17
|
+
・コメントの制限に正規表現を使えるようにした
|
18
|
+
・HTTP.version_1_2 系を使えなかった場合に動作がおかしかった不具合を修正
|
19
|
+
・spamips に出力される時刻の分/秒部分がおかしかったのを修正
|
20
|
+
・その他エラーが起きにくいように処理を変更
|
21
|
+
|
22
|
+
ver 0.8 2004/11/15
|
23
|
+
・プロキシーサーバーを指定する機能を追加
|
24
|
+
・ver 0.6m〜0.71 で、Ruby 1.6 系でエラーが出ることがあった不具合を修正
|
25
|
+
|
26
|
+
ver 0.71 2004/11/12
|
27
|
+
・ver 0.6m と ver 0.7 で、"信頼するリンク元" の指定が適用されなくなっていた不具合を修正
|
28
|
+
|
29
|
+
ver 0.7 2004/11/11
|
30
|
+
・一部のアンテナで、設定によって更新日時が取れないことがあった問題に対処
|
31
|
+
・コメントスパムに対処するため、コメントに制限をかける機能を追加
|
32
|
+
|
33
|
+
ver 0.6m 2004/11/07 (MoonWolf)
|
34
|
+
・ソースのインデント変更
|
35
|
+
・if not→unlessへの書き換え等
|
36
|
+
|
37
|
+
ver 0.6 2004/11/07
|
38
|
+
・トップページURL以外の許容するリンク先を指定できるようにした。
|
39
|
+
・設定画面の言語リソースを分割した。
|
40
|
+
|
41
|
+
ver 0.5 2004/10/31
|
42
|
+
・信頼できるURL に正規表現を使えるようにした
|
43
|
+
・safeurls, spaurls に、同一の URL が2つ連続で記録される問題に対処した(つもり)
|
44
|
+
|
45
|
+
ver 0.4 2004/10/20
|
46
|
+
・Ruby 1.8.2 (preview2) で動作しなかった不具合を修正
|
47
|
+
・接続するポートを80からuri.portに変更 (thanks to MoonWolf)
|
48
|
+
|
49
|
+
ver 0.3 2004/09/30
|
50
|
+
・負荷を下げるための修正をちょっとだけ入れた
|
51
|
+
|
52
|
+
ver 0.2 2004/09/27
|
53
|
+
・信頼できるURLの一覧を設定画面から変更できるようにした
|
54
|
+
|
55
|
+
ver 0.1 2004/09/15
|
56
|
+
・最初のバージョン
|
57
|
+
|
58
|
+
=end
|
59
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#
|
2
|
+
# AntiRefererSpam Plugin
|
3
|
+
#
|
4
|
+
# version 1.0.0G (2005/08/01)
|
5
|
+
#
|
6
|
+
# Copyright (c) 2004-2005 T.Shimomura <redbug@netlife.gr.jp>
|
7
|
+
# You can redistribute it and/or modify it under GPL2.
|
8
|
+
# Please use version 1.0.0 (not 1.0.0G) if GPL doesn't want to be forced on me.
|
9
|
+
#
|
10
|
+
|
11
|
+
・これはなにをするもの?
|
12
|
+
tDiary の「本日のリンク元」に、主に海外のアダルトサイトからの大量の
|
13
|
+
アクセス履歴(リファラスパム)が残ってしまうのを防ぐためのプラグイン
|
14
|
+
(厳密にはフィルター)です。
|
15
|
+
|
16
|
+
リンク元URLが指すページのHTMLに、日記のアドレスが含まれていなければ
|
17
|
+
不正なリンク元であるとみなします。
|
18
|
+
(今のところはこれだけの対処で99%近くをブロックできているみたいです)
|
19
|
+
|
20
|
+
また、コメントスパムに対処するために、コメントに対して制限をかける
|
21
|
+
機能もついています。
|
22
|
+
|
23
|
+
|
24
|
+
・インストール
|
25
|
+
tDiary はバージョン 2.0.0 以降が必要です。2.1 系での動作は未確認。
|
26
|
+
|
27
|
+
tDiary をインストールしたディレクトリを $(tdiary_home) としたとき、
|
28
|
+
plugin/antirefspam.rb を $(tdiary_home)/plugin に、
|
29
|
+
plugin/ja/antirefspam.rb を $(tdiary_home)/plugin/ja に、
|
30
|
+
tdiary/filter/antirefspam.rb を $(tdiary_home)/tdiary/filter に、
|
31
|
+
それぞれコピーしてください。
|
32
|
+
|
33
|
+
本プラグインの古いバージョンがある場合は上書きしてかまいません。
|
34
|
+
古いバージョンで問題なく動作していた場合は、設定を変更する必要も
|
35
|
+
ありません。
|
36
|
+
|
37
|
+
|
38
|
+
・最低限必要な設定
|
39
|
+
tDiary の設定画面で、"Anti Referer Spam" の "許容するリンク先の指定"
|
40
|
+
を確認してください。
|
41
|
+
設定画面に、"トップページURL" と "日記のURL" がカッコつきで書かれて
|
42
|
+
いるはずです。これら以外にリンク先のURLとして許容したいものがあれば、
|
43
|
+
それを http〜で始まる絶対パス指定で書いてください。
|
44
|
+
|
45
|
+
また、tDiary をインストールしてあるサーバーが外部の HTTP サーバーに
|
46
|
+
アクセスする際に HTTP プロキシを経由する必要がある場合は、その設定
|
47
|
+
も行ってください。
|
48
|
+
|
49
|
+
|
50
|
+
・さらに細かい設定
|
51
|
+
[最低限必要な設定]のみでも効果があるはずですが、tDiary の設定画面で
|
52
|
+
"Anti Referer Spam" の「信頼するリンク元の指定」を設定することで、
|
53
|
+
負荷が軽くなるはずです。
|
54
|
+
|
55
|
+
信頼するリンク元には、いくつかのサーチエンジンやアンテナを書いておく
|
56
|
+
とよいでしょう。
|
57
|
+
詳細な書式については、設定画面に表示されるヒントを参照してください。
|
58
|
+
|
59
|
+
|
60
|
+
・プラグインが生成するファイル
|
61
|
+
このプラグインは、日記データが存在するディレクトリにAntiRefSpamFilter
|
62
|
+
というディレクトリを作って、その下にいくつかのファイルを作成します。
|
63
|
+
safeurls 問題ないリンク元とみなした URL の一覧
|
64
|
+
spamurls 不正なリンク元とみなした URL の一覧
|
65
|
+
spamips 不正なリンク元とみなした IP の一覧
|
66
|
+
spamcomments 不正なコメントとみなしたコメントの一覧
|
67
|
+
|
68
|
+
safeurls に入るべき URL が、spamurls に登録されてしまった場合は、
|
69
|
+
その URL を、「信頼するリンク元の指定」で設定してください。
|
70
|
+
|
71
|
+
spamurls に入るべき URL が、safeurls に登録されてしまった場合は、
|
72
|
+
このプラグインを強化する必要があります。
|
73
|
+
・このプラグインのバージョン
|
74
|
+
・日記の URL
|
75
|
+
・誤判定されてしまった URL
|
76
|
+
を作者に教えてもらえれば対応するかもしれません。
|
77
|
+
|
78
|
+
|
79
|
+
・FAQ
|
80
|
+
以下のページにある FAQ を適宜更新します。
|
81
|
+
http://www.netlife.gr.jp/redbug/diary/?date=20041018#p02
|
82
|
+
|
83
|
+
|
84
|
+
・連絡先
|
85
|
+
T.Shimomura <redbug@netlife.gr.jp>
|
86
|
+
|
@@ -0,0 +1,182 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
2
|
+
<!-- 美乳 -->
|
3
|
+
<html lang="ja">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
6
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
7
|
+
<meta name="author" content="Hahahaha">
|
8
|
+
<link rev="made" href="mailto:rin_ne-at-big.or.jp">
|
9
|
+
<link rel="home" href="http://www20.big.or.jp/~rin_ne/">
|
10
|
+
<meta http-equiv="content-style-type" content="text/css">
|
11
|
+
<link rel="stylesheet" href="../../fortune.css" type="text/css" media="all">
|
12
|
+
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www20.big.or.jp/~rin_ne/tdiary/index.rdf">
|
13
|
+
<title>Comment-key Filter & Plugin</title>
|
14
|
+
</head>
|
15
|
+
|
16
|
+
<body>
|
17
|
+
|
18
|
+
<div id="headerArea">
|
19
|
+
<h2>コメントキーフィルタ&プラグイン</h2>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div id="contentArea">
|
23
|
+
|
24
|
+
<div class="sectionList">
|
25
|
+
<ul>
|
26
|
+
<li><a href="#abstruct">はじめに</a></li>
|
27
|
+
<li><a href="#system">動作環境</a></li>
|
28
|
+
<li><a href="#install">インストール・アンインストール</a></li>
|
29
|
+
<li><a href="#usage">使い方</a></li>
|
30
|
+
<li><a href="#algorithm">動作原理</a></li>
|
31
|
+
<li><a href="#faq">FAQ</a></li>
|
32
|
+
<li><a href="#sorry">おことわり</a></li>
|
33
|
+
<li><a href="#license">ライセンスなど</a></li>
|
34
|
+
<li><a href="#thanks">謝辞</a></li>
|
35
|
+
<li><a href="#changelog">履歴</a></li>
|
36
|
+
<li><a href="#prevver">過去のバージョン</a></li>
|
37
|
+
</ul>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div id="contentBody">
|
41
|
+
|
42
|
+
<div class="section">
|
43
|
+
<h3><a name="abstruct">はじめに</a></h3>
|
44
|
+
<div class="secbody">
|
45
|
+
<p>最近、所有者以外が書き込みできるタイプのページ(掲示板やコメント、トラックバックなど)に宣伝目的で大量のデータを書き込む、いわゆるスパム攻撃が激しくなっています。</p>
|
46
|
+
<p>特に流行のblogなどで被害が顕著ですが、同じように受信出来てしまうtDiaryでも同様のことが起こっています(対抗策が十分でない分、被害を受けやすくなっています)</p>
|
47
|
+
<p>そこで、tDiaryの持つフィルタ機能とプラグイン機能を利用して、これらのスパムのうちコメントスパムに対して対策を行うのが「コメントキーフィルタ&プラグイン」です。自動的にスパム送信を行うプログラムに対し効果を発揮します。</p>
|
48
|
+
<p>尚、本フィルタ&プラグインは<a href="http://sheepman.parfait.ne.jp/20040918.html#p02">sheepman発案のコメントスパム対策</a>をフィルタとプラグインのみで実現したものです。</p>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<div class="section">
|
53
|
+
<h3><a name="system">動作環境</a></h3>
|
54
|
+
<div class="secbody">
|
55
|
+
<p>動作に必要な条件は以下の通りです。</p>
|
56
|
+
<ul>
|
57
|
+
<li>tDiary 2.0.0以上のシステム</li>
|
58
|
+
<li>自前でプラグイン及びフィルタがインストール出来る</li>
|
59
|
+
</ul>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<div class="section">
|
64
|
+
<h3><a name="install">インストール・アンインストール</a></h3>
|
65
|
+
<div class="secbody">
|
66
|
+
<ul>
|
67
|
+
<li>key.rb を tdiary/filter 下に配置します。</li>
|
68
|
+
<li>comment_key.rb を misc/plugin 下に、 ja/cooment_key.rb を misc/plugin/ja 下に配置します。</li>
|
69
|
+
<li>tDiary の設定ページにアクセスし、「プラグイン選択」にて comment_key.rb を有効にしてください。</li>
|
70
|
+
</ul>
|
71
|
+
<p>これでインストールは完了です。フィルタとプラグインの両方をインストールしないと動作しませんので注意してください。</p>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="section">
|
76
|
+
<h3><a name="usage">使い方</a></h3>
|
77
|
+
<div class="secbody">
|
78
|
+
<p>インストールが完了した時点で、設定ページのプラグインメニューに「コメントキーフィルタ」が表示されます。このページにまずは移動してください。</p>
|
79
|
+
<p>このページの「コメントキーフィルタを有効にする」のチェックを有効にすることで、とりあえずフィルタが有効になります。</p>
|
80
|
+
<p>その下にはキーの値を生成する際に使用する文字列を指定します。この文字列がキーの値の元になる文字列の一部となりますので、お好きな文字列を設定してください。<strong>この文字列が他の人の日記のものと同一だと、生成されるキーはやはり同一になってしまうのでご注意を。</strong></p>
|
81
|
+
<p>その下にある「常に同一の鍵文字列を生成する」は通常は必要ありませんのでそのままにしておいてください。</p>
|
82
|
+
<p>以上が設定し終わると、このフィルタが機能します。</p>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div class="section">
|
87
|
+
<h3><a name="algorithm">動作原理</a></h3>
|
88
|
+
<div class="secbody">
|
89
|
+
<p>本フィルタは<a href="http://sheepman.parfait.ne.jp/20040918.html#p02">sheepmanさんのコメントスパム対策</a>を移植したものなので原理は同じですが、一応説明しておきます。</p>
|
90
|
+
<p>本プラグイン&フィルタはコメントフォームに対し、値として日付ごとに一意な文字列を持つキー "comment_key" を追加し<span class="footnote"><a href="#fn01">*1</a></span>、コメント書き込み時にこのキーとフィルタ内で生成した文字列を比較することで「日記表示時にそのページにあったコメントフォームから書き込んだのか?」を判定します。</p>
|
91
|
+
<p>判定がNGとなった場合はコメントの保存を行いません。</p>
|
92
|
+
<p>キーに設定された文字列は、元となるキー文字列のMD5チェックサムになっていて、元となるキー文字列を容易に推測されないようになっています。</p>
|
93
|
+
<div class="footnote">
|
94
|
+
<p class="footnote"><a name="fn01">*1</a> 日付に関係なく同一の文字列を生成することも出来ますが突破されやすくなります。詳しくは<a href="#faq">FAQ</a>を参照</p>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div class="section">
|
100
|
+
<h3><a name="faq">FAQ</a></h3>
|
101
|
+
<div class="secbody">
|
102
|
+
<dl>
|
103
|
+
<dt>Q1. 最新表示でコメントできない</dt>
|
104
|
+
<dd>
|
105
|
+
<p>もしかして、speed_comment.rbプラグインを使っていませんか?その場合、この本プラグイン&フィルタではコメント対象の日付が特定できません。その時は設定ページにある「常に同一の鍵文字列を生成する」のチェックを入れれば一応コメントできるようになります。</p>
|
106
|
+
<p>ただし、最新表示のみならず日付別表示でも常に同じ鍵文字列を生成するので多少コメントスパムの突破率は上がると思います。</p>
|
107
|
+
</dd>
|
108
|
+
</dl>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<div class="section">
|
113
|
+
<h3><a name="sorry">おことわり</a></h3>
|
114
|
+
<div class="secbody">
|
115
|
+
<p>このフィルタ&プラグインはコメントスパムを防止する目的で作成されていますが、これを完全に防ぐことはできませんのでご了承ください。</p>
|
116
|
+
<p>例: 表示された日記のコメントフォームを解析したうえでスパム送信を行うようなプログラムなど</p>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<div class="section">
|
121
|
+
<h3><a name="license">ライセンスなど</a></h3>
|
122
|
+
<div class="secbody">
|
123
|
+
<p>「コメントキーフィルタ&プラグイン」はGPLライセンスに従い公開・配布されるものです。</p>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div class="section">
|
128
|
+
<h3><a name="thanks">謝辞</a></h3>
|
129
|
+
<div class="secbody">
|
130
|
+
<p>このフィルタ&プラグインは、コメントスパムに困っていた時に見つけた<a href="http://sheepman.parfait.ne.jp/20040918.html#p02">sheepmanさんのコメントスパム対策</a>を使いたいんだけど、本体に手を入れたくない。なんとかならないか…と考えて出来たものです。重要な部分はほぼそのまま使わせてもらっています。ありがとうございます。</p>
|
131
|
+
<p>これでなんとかコメントスパムが減ればいいな…。</p>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div class="section">
|
136
|
+
<h3><a name="changelog">履歴</a></h3>
|
137
|
+
<div class="secbody">
|
138
|
+
<dl>
|
139
|
+
<dt>2005/08/31 (Ver.0.5.0)</dt>
|
140
|
+
<dd>設定ページのカテゴリに対応(tDiary-2.1.2.20050826以降)</dd>
|
141
|
+
<dt>2005/04/17 (Ver.0.4.0)</dt>
|
142
|
+
<dd>常に同一の鍵文字列を生成するオプションを追加</dd>
|
143
|
+
<dt>2005/03/21 (Ver.0.3.0)</dt>
|
144
|
+
<dd>携帯からコメントが出来なくなっていたのを修正</dd>
|
145
|
+
<dt>2005/01/25 (Ver.0.2.0)</dt>
|
146
|
+
<dd>TrackBack及びPingbackの投稿にも適用されてしまっていたのを修正</dd>
|
147
|
+
<dt>2005/01/15 (Ver.0.1.0)</dt>
|
148
|
+
<dd>初版公開</dd>
|
149
|
+
</dl>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div class="section">
|
154
|
+
<h3><a name="prevver">過去のバージョン</a></h3>
|
155
|
+
<div class="secbody">
|
156
|
+
<ul>
|
157
|
+
<li><a href="./comment_key-0.4.0.tar.gz">Ver 0.4.0</a></li>
|
158
|
+
<li><a href="./comment_key-0.3.0.tar.gz">Ver 0.3.0</a></li>
|
159
|
+
<li><a href="./comment_key-0.2.0.tar.gz">Ver 0.2.0</a></li>
|
160
|
+
<li><a href="./comment_key-0.1.0.tar.gz">Ver 0.1.0</a></li>
|
161
|
+
</ul>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div id="footerArea">
|
170
|
+
<address>Copyright © ハハハハ 2001-2005 All Right Reserved.</address>
|
171
|
+
<address>E-Mail: rin_ne-at-big.or.jp</address>
|
172
|
+
|
173
|
+
<address class="lm">
|
174
|
+
<script type="text/javascript">
|
175
|
+
<!--
|
176
|
+
document.write("Last Modified: ", document.lastModified);
|
177
|
+
//-->
|
178
|
+
</script>
|
179
|
+
</address>
|
180
|
+
</div>
|
181
|
+
</body>
|
182
|
+
</html>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
!概要
|
2
|
+
subtitleの右にソーシャルブックマークへのリンクを埋め込みます。
|
3
|
+
|
4
|
+
!使い方
|
5
|
+
プラグインフォルダに配置するだけで使用可能です。
|
6
|
+
プラグイン選択画面で有効に変更後、設定画面で埋め込みたいブックマークを選択します。
|
7
|
+
|
8
|
+
!ライセンス
|
9
|
+
GPL2
|
10
|
+
|
11
|
+
!更新履歴
|
12
|
+
!!20070215
|
13
|
+
* サービスから MM/Memo を削除
|
14
|
+
* サービスに livedoor クリップ と Buzzurl を追加
|
15
|
+
|
16
|
+
!!20070109
|
17
|
+
* サニタイズキャンペーンに伴う修正
|
18
|
+
|
19
|
+
!!20050906
|
20
|
+
* HTML4.01 Strictに準拠
|
21
|
+
* セクションのURLをエスケープするように変更
|
22
|
+
|
23
|
+
!!20050901
|
24
|
+
* はてなブックマークのURLを修正
|
25
|
+
|
26
|
+
!!20050828
|
27
|
+
* add_subtitle_procに対応
|
28
|
+
* webshots,LiVEMARK,fc2ブックマークを削除
|
29
|
+
* 強制的にアイコンを使用するように設定
|
30
|
+
|
31
|
+
!!20050602
|
32
|
+
* はてなブックマークのアイコンの修正
|
33
|
+
* del.icio.usのURLの修正
|
34
|
+
|
35
|
+
!!20050601
|
36
|
+
* LiVEMARKに対応
|
37
|
+
* はてなブックマーク、del.icio.us、MM/Memoをアイコンで表示できるようにした。
|
38
|
+
|
39
|
+
!!20050528
|
40
|
+
* @confの値とdayモードの判定方法を変更
|
41
|
+
* 処理でイテレータを使うように変更
|
42
|
+
* 英語リソースの追加
|
43
|
+
* webshotsに対応
|
44
|
+
* fc2ブックマークに対応
|
45
|
+
|
46
|
+
!!20050525
|
47
|
+
* 初版公開
|
48
|
+
|
49
|
+
!参考情報
|
50
|
+
add_conf_procのチェックボックス処理についてはsearch_control.rb、body_enter_procについてはrandom_google.rbを参考にしました。
|
@@ -0,0 +1,21 @@
|
|
1
|
+
category_to_tag.rb - カテゴリをタグ風に表示します。
|
2
|
+
|
3
|
+
※tDiary 2.1.3.20051012以降でのみ動作します。
|
4
|
+
|
5
|
+
■使い方
|
6
|
+
インストールするだけで使えるようになります。日記モードのcategory.rbか、
|
7
|
+
BlogKitのblog-category.rbのいずれかと併用して使います。
|
8
|
+
|
9
|
+
なお、これらの併用プラグインよりもあとに読み込まれなければいけません。
|
10
|
+
プラグイン選択を使う場合には@options['sp.path']で指定したパスの最後の
|
11
|
+
ディレクトリに入れるか、いっそプラグイン選択を使わずに、tDiary本体の
|
12
|
+
pluginディレクトリに入れてしまうのがよいでしょう。
|
13
|
+
|
14
|
+
なお、タグの一覧はスタイルシートで「div.tags」を指定することで見栄え
|
15
|
+
を変更できます。append-css.rbを使うといいでしょう。
|
16
|
+
|
17
|
+
例:
|
18
|
+
div.day div.tags {
|
19
|
+
text-align: right;
|
20
|
+
font-size: 80%;
|
21
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
! 名前
|
2
|
+
coCommentプラグイン
|
3
|
+
|
4
|
+
! 概要
|
5
|
+
tDiaryをcoComment(http://www.cocomment.com/)に対応させるプラグイン
|
6
|
+
|
7
|
+
!使い方
|
8
|
+
プラグインフォルダに入れるだけで動作します。
|
9
|
+
|
10
|
+
!ライセンス
|
11
|
+
GPL2
|
12
|
+
|
13
|
+
!更新履歴
|
14
|
+
!!20070309
|
15
|
+
* mobile_agent? の使用方法を修正
|
16
|
+
|
17
|
+
!!20070213
|
18
|
+
* ケータイ端末からのアクセスは無視するようにした
|
19
|
+
|
20
|
+
!!20070212
|
21
|
+
* IE7でのスクリプトエラーに対処(埋め込む Javascript を微調整)
|
22
|
+
|
23
|
+
!!20070118
|
24
|
+
* postURLとpostTitleを取得するときにjavascriptを使わないようにした。
|
25
|
+
|
26
|
+
!!20070117
|
27
|
+
* tDiary-contrib 追加に伴って name 属性 comment-form を core に追加
|
28
|
+
* cocomment-fetchlet を追加
|
29
|
+
|
30
|
+
!!20060527
|
31
|
+
* 初版公開
|
@@ -0,0 +1,25 @@
|
|
1
|
+
google_adsense.rb - Googe AdSenseのバナー広告を挿入するプラグイン
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
プラグイン選択で選択し、日記のヘッダやフッタなど、任意の場所に以下の
|
6
|
+
ように指定するだけで使えます。
|
7
|
+
|
8
|
+
<%= google_adsense %>
|
9
|
+
|
10
|
+
バナーのサイズや色は、設定画面から変更可能です。
|
11
|
+
|
12
|
+
なお、配布されているgoogle_adsense.rbには、tDiary.Net <http://www.tdiary.net/>
|
13
|
+
用のAdSense IDが書かれているので、このまま使うとtDiary.Netの広告収入
|
14
|
+
になってしまいます。自分のAdSense IDを使いたい場合には、ファイルの最
|
15
|
+
初の方にある以下の部分を、自分のIDに合わせて書き換えてください。
|
16
|
+
|
17
|
+
google_ad_client = "pub-3317603667498586"
|
18
|
+
~~~~~~~~~~~~~~~~~~~~この部分がID
|
19
|
+
|
20
|
+
|
21
|
+
2005-10-12追記
|
22
|
+
セクションターゲット(※)に対応しました。タグは日記の各日付の最初と最後に挿入
|
23
|
+
されます。
|
24
|
+
|
25
|
+
※https://www.google.com/support/adsense/bin/answer.py?answer=23168&topic=371
|