Changeset 103

Show
Ignore:
Timestamp:
05/21/2006 23:15:18 (2 years ago)
Author:
why
Message:
  • Rakefile: Camping depends on Markaby 0.5.
  • examples/campsh/campsh.rb: Clean up for the new Markaby.
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Rakefile

    r100 r103  
    77 
    88NAME = "camping" 
    9 VERS = "1.4.2" 
     9VERS = "1.5" 
    1010CLEAN.include ['**/.*.sw?', '*.gem', '.config'] 
    1111RDOC_OPTS = ['--quiet', '--title', "Camping, the Documentation", 
     
    6060 
    6161        s.add_dependency('activerecord', '>=1.14.2') 
    62         s.add_dependency('markaby', '>=0.4') 
     62        s.add_dependency('markaby', '>=0.5') 
    6363        s.add_dependency('metaid') 
    6464        s.required_ruby_version = '>= 1.8.2' 
  • trunk/examples/campsh/campsh.rb

    r56 r103  
    77 
    88module CampSh 
    9     NAME = 'CampCampSh' 
     9    NAME = 'CampSh' 
    1010    DESCRIPTION = %{ 
    1111        Script your own URL commands, then run these commands through  
     
    485485    def _navigation 
    486486        form :id => "navigationForm", :class => "navigation", :style => "font-size: 10px" do   
    487             a "Command List", :href => R(List), :title => "Alphabetical list of commands", :accesskey => "A" 
    488             text " | " 
    489             a "Recently Revised", :href => R(Recent), :title => "Pages sorted by when they were last changed",  
    490                                   :accesskey => "U" 
    491             text " | " 
    492             a "Authors", :href => R(Authors), :title => "Who wrote what" 
    493             text " | " 
    494             a "How To", :href => R(HowTo), :title => "How to use CampShell", :accesskey => "H" 
     487            [["Command List", R(List), "Alphabetical list of commands", "A"], 
     488             ["Recently Revised", R(Recent), "Pages sorted by when they were last changed", "U"], 
     489             ["Authors", R(Authors), "Who wrote what", "W"], 
     490             ["How To", R(HowTo), "How to use CampShell", "H"] 
     491            ].map do |txt, link, title, key| 
     492                a txt, :href => link, :title => title, :accesskey => key 
     493            end.join(" | ") 
    495494        end 
    496495    end 
     
    523522            @authors.each do |author, cmds| 
    524523                li do 
    525                     strong author 
    526                     text " worked on: " + 
    527                         cmds.map { |cmd| 
    528                             capture { a cmd.name, :href => R(Show, cmd.name) } 
    529                         }.join(", ") 
     524                    strong(author) + " worked on: " + 
     525                        cmds.map { |cmd| a cmd.name, :href => R(Show, cmd.name) }.join(", ") 
    530526                end 
    531527            end