Skip to content

Commit

Permalink
* lib/camping.rb: an unnecessary line break and an excessive one. co…
Browse files Browse the repository at this point in the history
…ol that `Array#*` does an automatic flatten.
  • Loading branch information
_why committed Jun 30, 2006
1 parent 141805c commit 04c8be1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.5"
VERS = "1.4.115"
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.5')
s.add_dependency('markaby', '>0.4')
s.add_dependency('metaid')
s.required_ruby_version = '>= 1.8.2'

Expand Down
2 changes: 1 addition & 1 deletion lib/camping-unabridged.rb
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def service(*a)
# Used by the web server to convert the current request to a string. If you need to
# alter the way Camping builds HTTP headers, consider overriding this method.
def to_s
"Status: #{@status}\n#{@headers.map{|k,v|[*v].map{|x|"#{k}: #{x}"}*"\n"}*"\n"}\n\n#{@body}"
"Status: #{@status}\n#{@headers.map{|k,v|[*v].map{|x|"#{k}: #{x}"}}*"\n"}\n#{@body}"
end
def markaby #:nodoc:
Expand Down
2 changes: 1 addition & 1 deletion lib/camping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module Base;include Helpers;attr_accessor :input,:cookies,:env,:headers,:body,
@k.dup,q.dup end;def service *a;@body=send(@method,*a)if respond_to?@method
@headers["Set-Cookie"][email protected]{|k,v|"#{k}=#{C.escape(v)}; path=#{self/"/"}\
" if v != @k[k]}.compact;self end;def to_s;"Status: #{@status}\n#{@headers.map{
|k,v|[*v].map{|x|"#{k}: #{x}"}*"\n"}*"\n"}\n\n#{@body}" end;def markaby;Mab.new(
|k,v|[*v].map{|x|"#{k}: #{x}"}}*"\n"}\n#{@body}" end;def markaby;Mab.new(
instance_variables.map{|iv|[iv[1..-1],instance_variable_get(iv)]}) end;def
markaview m,*a,&b;h=markaby;h.send m,*a,&b;h.to_s end end;class R;include Base
end;module Controllers;class NotFound;def get p;r(404,div{h1 "Cam\ping Problem!"
Expand Down

0 comments on commit 04c8be1

Please sign in to comment.