Defined externals (for Rails modules), replaced .cvsignore files with svn:ignore properties

This commit is contained in:
Alexey Verkhovsky 2005-01-15 21:10:38 +00:00
parent 223b2bec6c
commit 10214ebb26
7 changed files with 6 additions and 11 deletions

View file

@ -1,5 +1,6 @@
require 'wiki_words'
require 'chunks/chunk'
require 'chunks/wiki'
require 'cgi'
# Contains all the methods for finding and replacing wiki related
@ -63,7 +64,7 @@ module WikiChunk
class Link < WikiLink
def self.pattern() /\[\[([^\]]+)\]\]/ end
ALIASED_LINK_PATTERN ||= Regexp.new('^(.*)?\|(.*)$', 0, "utf-8")
ALIASED_LINK_PATTERN = Regexp.new('^(.*)?\|(.*)$', 0, "utf-8") unless defined? ALIASED_LINK_PATTERN
attr_reader :page_name, :link_text

View file

@ -42,7 +42,6 @@ end
require 'action_controller'
require 'active_record_stub'
require 'dependencies'
unless defined? RAILS_DEFAULT_LOGGER
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
@ -57,3 +56,4 @@ require 'wiki_service'
Socket.do_not_reverse_lookup = true
ActionController::Base.template_root ||= "#{RAILS_ROOT}/app/views/"

View file

@ -1,2 +0,0 @@
*~.nib

View file

@ -77,3 +77,4 @@ task :stats do
["Libraries", "libraries"]
).to_s
end

View file

@ -1,5 +0,0 @@
2500
development
test
.cvsignore
*.zip

View file

@ -154,7 +154,7 @@ class WikiControllerTest < Test::Unit::TestCase
assert_success
assert_equal 'application/zip', r.headers['Content-Type']
assert_equal 'attachment', r.headers['Content-Disposition']
assert_match /attachment; filename="wiki1-html-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
# TODO assert contents of the output file
end
@ -163,7 +163,7 @@ class WikiControllerTest < Test::Unit::TestCase
assert_success
assert_equal 'application/zip', r.headers['Content-Type']
assert_equal 'attachment', r.headers['Content-Disposition']
assert_match /attachment; filename="wiki1-textile-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d.zip"/, r.headers['Content-Disposition']
# TODO assert contents of the output file
end