Changeset 6044
- Timestamp:
- 01/26/07 21:37:38 (2 years ago)
- Files:
-
- trunk/actionpack/lib/action_controller/assertions/deprecated_assertions.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/routing.rb (modified) (12 diffs)
- trunk/actionpack/lib/action_controller/status_codes.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb (modified) (1 diff)
- trunk/activerecord/lib/active_record/associations.rb (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb (modified) (3 diffs)
- trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb (modified) (3 diffs)
- trunk/activerecord/lib/active_record/connection_adapters/openbase_adapter.rb (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/core_ext/name_error.rb (modified) (2 diffs)
- trunk/activesupport/lib/active_support/dependencies.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/deprecation.rb (modified) (4 diffs)
- trunk/activesupport/lib/active_support/multibyte.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/multibyte/chars.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/reloadable.rb (modified) (4 diffs)
- trunk/activesupport/lib/active_support/vendor/xml_simple.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/assertions/deprecated_assertions.rb
r5358 r6044 3 3 module ActionController #:nodoc: 4 4 module Assertions #:nodoc: 5 module DeprecatedAssertions 5 module DeprecatedAssertions #:nodoc: 6 6 def assert_success(message=nil) #:nodoc: 7 7 assert_response(:success, message) trunk/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
r5904 r6044 113 113 end 114 114 115 class FormEncodedPairParser < StringScanner 115 class FormEncodedPairParser < StringScanner #:nodoc: 116 116 attr_reader :top, :parent, :result 117 117 trunk/actionpack/lib/action_controller/routing.rb
r5803 r6044 26 26 end 27 27 28 class Regexp 28 class Regexp #:nodoc: 29 29 def number_of_captures 30 30 Regexp.new("|#{source}").match('').captures.length … … 307 307 end 308 308 309 class Route 309 class Route #:nodoc: 310 310 attr_accessor :segments, :requirements, :conditions 311 311 … … 538 538 end 539 539 540 class Segment 540 class Segment #:nodoc: 541 541 attr_accessor :is_optional 542 542 alias_method :optional?, :is_optional … … 593 593 end 594 594 595 class StaticSegment < Segment 595 class StaticSegment < Segment #:nodoc: 596 596 attr_accessor :value, :raw 597 597 alias_method :raw?, :raw … … 627 627 end 628 628 629 class DividerSegment < StaticSegment 629 class DividerSegment < StaticSegment #:nodoc: 630 630 def initialize(value = nil) 631 631 super(value) … … 639 639 end 640 640 641 class DynamicSegment < Segment 641 class DynamicSegment < Segment #:nodoc: 642 642 attr_accessor :key, :default, :regexp 643 643 … … 727 727 end 728 728 729 class ControllerSegment < DynamicSegment 729 class ControllerSegment < DynamicSegment #:nodoc: 730 730 def regexp_chunk 731 731 possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name } … … 754 754 end 755 755 756 class PathSegment < DynamicSegment 756 class PathSegment < DynamicSegment #:nodoc: 757 757 EscapedSlash = URI.escape("/") 758 758 def interpolation_chunk … … 784 784 end 785 785 786 class RouteBuilder 786 class RouteBuilder #:nodoc: 787 787 attr_accessor :separators, :optional_separators 788 788 … … 960 960 end 961 961 962 class RouteSet 962 class RouteSet #:nodoc: 963 963 # Mapper instances are used to build routes. The object passed to the draw 964 964 # block in config/routes.rb is a Mapper instance. … … 966 966 # Mapper instances have relatively few instance methods, in order to avoid 967 967 # clashes with named routes. 968 class Mapper 968 class Mapper #:nodoc: 969 969 def initialize(set) 970 970 @set = set … … 995 995 # maintains an anonymous module that can be used to install helpers for the 996 996 # named routes. 997 class NamedRouteCollection 997 class NamedRouteCollection #:nodoc: 998 998 include Enumerable 999 999 trunk/actionpack/lib/action_controller/status_codes.rb
r5482 r6044 1 1 module ActionController 2 module StatusCodes 3 2 module StatusCodes #:nodoc: 4 3 # Defines the standard HTTP status codes, by integer, with their 5 4 # corresponding default message texts. trunk/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
r4929 r6044 202 202 203 203 # An invalid selector. 204 class InvalidSelectorError < StandardError ; end 204 class InvalidSelectorError < StandardError #:nodoc: 205 end 205 206 206 207 trunk/activerecord/lib/active_record/associations.rb
r6018 r6044 31 31 end 32 32 33 class HasManyThroughSourceAssociationMacroError < ActiveRecordError #:nodoc 33 class HasManyThroughSourceAssociationMacroError < ActiveRecordError #:nodoc: 34 34 def initialize(reflection) 35 35 through_reflection = reflection.through_reflection trunk/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
r5953 r6044 52 52 # < Sequence [2], ProcessID [2] , Time [4], IP Addr [4] > 53 53 54 class TwelveByteKey < String #:nodoc 54 class TwelveByteKey < String #:nodoc: 55 55 @@mutex = Mutex.new 56 56 @@sequence_number = rand(65536) … … 272 272 end 273 273 274 def native_database_types #:nodoc 274 def native_database_types #:nodoc: 275 275 { 276 276 :primary_key => "INTEGER DEFAULT UNIQUE PRIMARY KEY", … … 567 567 end 568 568 569 def add_limit_offset!(sql, options) #:nodoc 569 def add_limit_offset!(sql, options) #:nodoc: 570 570 if limit = options[:limit] 571 571 offset = options[:offset] || 0 trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
r5937 r6044 2 2 require 'set' 3 3 4 module MysqlCompat 4 module MysqlCompat #:nodoc: 5 5 # add all_hashes method to standard mysql-c bindings or pure ruby version 6 6 def self.define_all_hashes_method! … … 161 161 end 162 162 163 def native_database_types #:nodoc 163 def native_database_types #:nodoc: 164 164 { 165 165 :primary_key => "int(11) DEFAULT NULL auto_increment PRIMARY KEY", … … 279 279 280 280 281 def add_limit_offset!(sql, options) #:nodoc 281 def add_limit_offset!(sql, options) #:nodoc: 282 282 if limit = options[:limit] 283 283 unless offset = options[:offset] trunk/activerecord/lib/active_record/connection_adapters/openbase_adapter.rb
r4596 r6044 123 123 # DATABASE STATEMENTS ====================================== 124 124 125 def add_limit_offset!(sql, options) #:nodoc 125 def add_limit_offset!(sql, options) #:nodoc: 126 126 if limit = options[:limit] 127 127 unless offset = options[:offset] trunk/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
r5958 r6044 135 135 end 136 136 137 def native_database_types #:nodoc 137 def native_database_types #:nodoc: 138 138 { 139 139 :primary_key => "NUMBER(38) NOT NULL PRIMARY KEY", trunk/activesupport/lib/active_support/core_ext/name_error.rb
r4681 r6044 1 2 1 # Add a +missing_name+ method to NameError instances. 3 class NameError < StandardError 4 2 class NameError < StandardError #:nodoc: 5 3 # Add a method to obtain the missing name from a NameError. 6 4 def missing_name … … 17 15 end 18 16 end 19 20 17 end trunk/activesupport/lib/active_support/dependencies.rb
r5814 r6044 383 383 end 384 384 385 class LoadingModule 385 class LoadingModule #:nodoc: 386 386 # Old style environment.rb referenced this method directly. Please note, it doesn't 387 387 # actualy *do* anything any more. trunk/activesupport/lib/active_support/deprecation.rb
r5763 r6044 2 2 3 3 module ActiveSupport 4 module Deprecation 4 module Deprecation #:nodoc: 5 5 mattr_accessor :debug 6 6 self.debug = false … … 82 82 self.silenced = false 83 83 84 module ClassMethods 84 module ClassMethods #:nodoc: 85 85 # Declare that a method has been deprecated. 86 86 def deprecate(*method_names) … … 113 113 end 114 114 115 module Assertions 115 module Assertions #:nodoc: 116 116 def assert_deprecated(match = nil, &block) 117 117 result, warnings = collect_deprecations(&block) … … 146 146 # Stand-in for @request, @attributes, @params, etc which emits deprecation 147 147 # warnings on any method call (except #inspect). 148 class DeprecatedInstanceVariableProxy 148 class DeprecatedInstanceVariableProxy #:nodoc: 149 149 instance_methods.each { |m| undef_method m unless m =~ /^__/ } 150 150 trunk/activesupport/lib/active_support/multibyte.rb
r5223 r6044 1 module ActiveSupport::Multibyte 1 module ActiveSupport::Multibyte #:nodoc: 2 2 DEFAULT_NORMALIZATION_FORM = :kc 3 3 NORMALIZATIONS_FORMS = [:c, :kc, :d, :kd] trunk/activesupport/lib/active_support/multibyte/chars.rb
r5223 r6044 3 3 4 4 # Encapsulates all the functionality related to the Chars proxy. 5 module ActiveSupport::Multibyte 5 module ActiveSupport::Multibyte #:nodoc: 6 6 # Chars enables you to work transparently with multibyte encodings in the Ruby String class without having extensive 7 7 # knowledge about the encoding. A Chars object accepts a string upon initialization and proxies String methods in an trunk/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb
r5223 r6044 1 1 # Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call 2 2 # will be forwarded to String. 3 class ActiveSupport::Multibyte::Handlers::PassthruHandler 3 class ActiveSupport::Multibyte::Handlers::PassthruHandler #:nodoc: 4 4 5 5 # Return the original byteoffset trunk/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb
r5223 r6044 2 2 # pure ruby versions. Chars automatically uses this handler when it can load the utf8proc extension. For 3 3 # documentation on handler methods see UTF8Handler. 4 class ActiveSupport::Multibyte::Handlers::UTF8HandlerProc < ActiveSupport::Multibyte::Handlers::UTF8Handler 5 4 class ActiveSupport::Multibyte::Handlers::UTF8HandlerProc < ActiveSupport::Multibyte::Handlers::UTF8Handler #:nodoc: 6 5 class << self 7 6 def normalize(str, form=ActiveSupport::Multibyte::DEFAULT_NORMALIZATION_FORM) #:nodoc: trunk/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb
r6021 r6044 1 1 # Contains all the handlers and helper classes 2 module ActiveSupport::Multibyte::Handlers 3 class EncodingError < ArgumentError; end 2 module ActiveSupport::Multibyte::Handlers #:nodoc: 3 class EncodingError < ArgumentError #:nodoc: 4 end 4 5 5 6 class Codepoint #:nodoc: trunk/activesupport/lib/active_support/reloadable.rb
r4760 r6044 5 5 # Deprecated as of Rails 1.2. 6 6 # All autoloaded objects are now unloaded. 7 module Reloadable 8 class << self 9 7 module Reloadable #:nodoc: 8 class << self 10 9 def included(base) #nodoc: 11 10 unless base.ancestors.include?(Reloadable::Subclasses) # Avoid double warning … … 38 37 # Deprecated as of Rails 1.2. 39 38 # All autoloaded objects are now unloaded. 40 module Subclasses 39 module Subclasses #:nodoc: 41 40 def self.included(base) #nodoc: 42 41 base.send :include, Reloadable … … 49 48 end 50 49 51 module Deprecated 52 50 module Deprecated #:nodoc: 53 51 def self.included(base) 54 52 class << base … … 59 57 end 60 58 end 61 62 59 end 63 64 60 end trunk/activesupport/lib/active_support/vendor/xml_simple.rb
r5414 r6044 16 16 # A simple cache for XML documents that were already transformed 17 17 # by xml_in. 18 class Cache 18 class Cache #:nodoc: 19 19 # Creates and initializes a new Cache object. 20 20 def initialize