Sha256: 3febf860adf372613229be46b32a9cfd98b2a02b9bef372eb47a1fc59c914778

Contents?: true

Size: 1.42 KB

Versions: 22

Compression:

Stored size: 1.42 KB

Contents

=begin
= Meta-scheme plugin((-$Id: referer_scheme.rb,v 1.5 2004-02-26 08:09:24 tadatadashi Exp $-))
Makes it easier to edit the referer table.

== Usage
Enable this plug-in by coping into the plugin directory or selecting
from the plug-in selection plug-in.

Then, edit the `Rule of conversion URL to words' in `Today's Link' of
`Preference'. Add prefixes (meta-scheme) like `tdiary:'.

This adds the date of the diaries or blogs according to their URLs.

For example, set the `Rule' as
* tdiary:http://tdiary.tdiary.net/ tDiary.net management journal.
For this example, date is added with a (YYYY-MM-DD) format if the
information is contained in the URL.

== Notes
For URLs with tdiary:,
* Do not use parenthesis `(' and `)'
* End the URL with a '/'

== How to make a meta-scheme
Meta-schems are extracted from the user's Rule with a Regexp: /^(\w+):/.
Define singleton methods of @conf.referer_table as iterators:
  def scheme_<scheme>( url, name )
    :
    yield( url_variants, name_variants )
    :
  end
The singleton methods are called according to the user's Rule with the
`<scheme>:' part omitted in the url.

== Copyright
Copyright (C) 2003 zunda <zunda at freeshell.org>

Permission is granted for use, copying, modification, distribution, and
distribution of modified versions of this work under the terms of GPL
version 2 or later.
=end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tdiary-4.0.5.1 misc/plugin/en/referer_scheme.rb
tdiary-4.0.5 misc/plugin/en/referer_scheme.rb
tdiary-4.0.4 misc/plugin/en/referer_scheme.rb
tdiary-4.0.3 misc/plugin/en/referer_scheme.rb
tdiary-4.0.2.20140201 misc/plugin/en/referer_scheme.rb
tdiary-4.0.2 misc/plugin/en/referer_scheme.rb
tdiary-4.0.1.20131102 misc/plugin/en/referer_scheme.rb
tdiary-4.0.1.20130929 misc/plugin/en/referer_scheme.rb
tdiary-4.0.1.20130903 misc/plugin/en/referer_scheme.rb
tdiary-4.0.1 misc/plugin/en/referer_scheme.rb
tdiary-4.0.0.20130826 misc/plugin/en/referer_scheme.rb
tdiary-4.0.0 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130727 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130722 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130720 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130617 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130614 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130604 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130527 misc/plugin/en/referer_scheme.rb
tdiary-3.2.2.20130518 misc/plugin/en/referer_scheme.rb