1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Documentation stuff

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-02-24 02:02:12 +00:00
parent af56c806bc
commit 3c1f7ee60f
5 changed files with 67 additions and 10 deletions

43
activesupport/README Normal file
View file

@ -0,0 +1,43 @@
= Active Support -- Utility classes and standard library extensions from Rails
Active Support is a collection of various utility classes and standard library extensions that were found useful
for Rails. All these additions have hence been collected in this bundle as way to gather all that sugar that makes
Ruby sweeter.
== Download
The latest version of Active Support can be found at
* http://rubyforge.org/project/showfiles.php?group_id=182
Documentation can be found at
* http://as.rubyonrails.com
== Installation
The prefered method of installing Active Support is through its GEM file. You'll need to have
RubyGems[http://rubygems.rubyforge.org/wiki/wiki.pl] installed for that, though. If you have,
then use:
% [sudo] gem install activesupport-1.0.0.gem
== License
Active Support is released under the MIT license.
== Support
The Active Support homepage is http://www.rubyonrails.com. You can find the Active Support
RubyForge page at http://rubyforge.org/projects/activesupport. And as Jim from Rake says:
Feel free to submit commits or feature requests. If you send a patch,
remember to update the corresponding unit tests. If fact, I prefer
new feature to be submitted in the form of new unit tests.
For other information, feel free to ask on the ruby-talk mailing list
(which is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com.

View file

@ -1,4 +1,5 @@
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
@ -15,6 +16,18 @@ Rake::TestTask.new { |t|
# Create compressed packages
dist_dirs = [ "lib", "test"]
# Genereate the RDoc documentation
Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "Active Support -- Utility classes and standard library extensions from Rails"
rdoc.options << '--line-numbers --inline-source --main README'
rdoc.rdoc_files.include('README', 'CHANGELOG')
rdoc.rdoc_files.include('lib/active_support.rb')
rdoc.rdoc_files.include('lib/active_support/*.rb')
rdoc.rdoc_files.include('lib/active_support/**/*.rb')
}
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION

View file

@ -1,7 +1,8 @@
begin
require 'simplecc'
rescue LoadError
class Continuation; end # :nodoc: # for RDoc
class Continuation # :nodoc: # for RDoc
end
def Continuation.create(*args, &block) # :nodoc:
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
result ||= args

View file

@ -117,10 +117,10 @@ module Breakpoint
end
end
module CommandBundle
module CommandBundle #:nodoc:
# Proxy to a Breakpoint client. Lets you directly execute code
# in the context of the client.
class Client
class Client #:nodoc:
def initialize(eval_handler) # :nodoc:
eval_handler.untaint
@eval_handler = eval_handler
@ -218,7 +218,7 @@ module Breakpoint
# These exceptions will be raised on failed asserts
# if Breakpoint.asserts_cause_exceptions is set to
# true.
class FailedAssertError < RuntimeError
class FailedAssertError < RuntimeError #:nodoc:
end
# This asserts that the block evaluates to true.
@ -462,7 +462,7 @@ module IRB # :nodoc:
end
def IRB.parse_opts() end
class Context
class Context #:nodoc:
alias :old_evaluate :evaluate
def evaluate(line, line_no)
if line.chomp == "exit" then
@ -473,7 +473,7 @@ module IRB # :nodoc:
end
end
class WorkSpace
class WorkSpace #:nodoc:
alias :old_evaluate :evaluate
def evaluate(*args)
@ -491,7 +491,7 @@ module IRB # :nodoc:
end
end
module InputCompletor
module InputCompletor #:nodoc:
def self.eval(code, context, *more)
# Big hack, this assumes that InputCompletor
# will only call eval() when it wants code
@ -502,7 +502,7 @@ module IRB # :nodoc:
end
module DRb # :nodoc:
class DRbObject
class DRbObject #:nodoc:
undef :inspect if method_defined?(:inspect)
undef :clone if method_defined?(:clone)
end

View file

@ -3,7 +3,7 @@ module ActiveSupport #:nodoc:
module Date #:nodoc:
# Getting dates in different convenient string representations and other objects
module Conversions
def self.append_features(klass)
def self.append_features(klass) #:nodoc:
super
klass.send(:alias_method, :to_default_s, :to_s)
klass.send(:alias_method, :to_s, :to_formatted_s)