Skip to content

Commit

Permalink
* Rakefile: Camping depends on Markaby 0.5.
Browse files Browse the repository at this point in the history
 * examples/campsh/campsh.rb: Clean up for the new Markaby.
  • Loading branch information
_why committed May 22, 2006
1 parent 00e28ef commit 164e32b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'fileutils'
include FileUtils

NAME = "camping"
VERS = "1.4.2"
VERS = "1.5"
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
RDOC_OPTS = ['--quiet', '--title', "Camping, the Documentation",
"--template", "extras/flipbook_rdoc.rb",
Expand Down Expand Up @@ -59,7 +59,7 @@ spec =
s.executables = ['camping']

s.add_dependency('activerecord', '>=1.14.2')
s.add_dependency('markaby', '>=0.4')
s.add_dependency('markaby', '>=0.5')
s.add_dependency('metaid')
s.required_ruby_version = '>= 1.8.2'

Expand Down
24 changes: 10 additions & 14 deletions examples/campsh/campsh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Camping.goes :CampSh

module CampSh
NAME = 'CampCampSh'
NAME = 'CampSh'
DESCRIPTION = %{
Script your own URL commands, then run these commands through
the proxy with "cmd/CommandName". All scripts are versioned
Expand Down Expand Up @@ -484,14 +484,13 @@ def layout

def _navigation
form :id => "navigationForm", :class => "navigation", :style => "font-size: 10px" do
a "Command List", :href => R(List), :title => "Alphabetical list of commands", :accesskey => "A"
text " | "
a "Recently Revised", :href => R(Recent), :title => "Pages sorted by when they were last changed",
:accesskey => "U"
text " | "
a "Authors", :href => R(Authors), :title => "Who wrote what"
text " | "
a "How To", :href => R(HowTo), :title => "How to use CampShell", :accesskey => "H"
[["Command List", R(List), "Alphabetical list of commands", "A"],
["Recently Revised", R(Recent), "Pages sorted by when they were last changed", "U"],
["Authors", R(Authors), "Who wrote what", "W"],
["How To", R(HowTo), "How to use CampShell", "H"]
].map do |txt, link, title, key|
a txt, :href => link, :title => title, :accesskey => key
end.join(" | ")
end
end

Expand Down Expand Up @@ -522,11 +521,8 @@ def authors
ul.authorList! do
@authors.each do |author, cmds|
li do
strong author
text " worked on: " +
cmds.map { |cmd|
capture { a cmd.name, :href => R(Show, cmd.name) }
}.join(", ")
strong(author) + " worked on: " +
cmds.map { |cmd| a cmd.name, :href => R(Show, cmd.name) }.join(", ")
end
end
end
Expand Down

0 comments on commit 164e32b

Please sign in to comment.