Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7666

Show
Ignore:
Timestamp:
09/28/07 14:18:47 (1 year ago)
Author:
david
Message:

Fixed spelling errors (closes #9706) [tarmo/rmm5t]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionmailer/install.rb

    r2743 r7666  
    1919end 
    2020 
    21 # the acual gruntwork 
     21# the actual gruntwork 
    2222Dir.chdir("lib") 
    2323 
  • trunk/actionpack/lib/action_controller/base.rb

    r7596 r7666  
    578578      # defaults. On it's own, this rule can account for much of the typical Rails URL behavior. 
    579579      #   
    580       # Although a convienence, defaults can occasionaly get in your way. In some cases a default persists longer than desired. 
     580      # Although a convenience, defaults can occasionally get in your way. In some cases a default persists longer than desired. 
    581581      # The default may be cleared by adding <tt>:name => nil</tt> to <tt>url_for</tt>'s options. 
    582582      # This is often required when writing form helpers, since the defaults in play may vary greatly depending upon where the 
     
    984984      # When using <tt>redirect_to :back</tt>, if there is no referrer, 
    985985      # RedirectBackError will be raised. You may specify some fallback 
    986       # behavior for this case by rescueing RedirectBackError. 
     986      # behavior for this case by rescuing RedirectBackError. 
    987987      def redirect_to(options = {}) #:doc: 
    988988        case options 
  • trunk/actionpack/lib/action_controller/caching.rb

    r7598 r7666  
    292292           
    293293          def extract_extension(file_path) 
    294             # Don't want just what comes after the last '.' to accomodate multi part extensions 
     294            # Don't want just what comes after the last '.' to accommodate multi part extensions 
    295295            # such as tar.gz. 
    296296            file_path[/^[^.]+\.(.+)$/, 1] 
  • trunk/actionpack/lib/action_controller/helpers.rb

    r7644 r7666  
    103103      #   end 
    104104      #  
    105       # Finally, all the above styles can be mixed together, and the +helper+ method can be invokved with a mix of 
     105      # Finally, all the above styles can be mixed together, and the +helper+ method can be invoked with a mix of 
    106106      # +symbols+, +strings+, +modules+ and blocks. 
    107107      #   helper(:three, BlindHelper) { def mice() 'mice' end } 
  • trunk/actionpack/lib/action_controller/integration.rb

    r7438 r7666  
    305305        end 
    306306 
    307         # Get a temporarly URL writer object 
     307        # Get a temporary URL writer object 
    308308        def generic_url_rewriter 
    309309          cgi = MockCGI.new('REQUEST_METHOD' => "GET", 
  • trunk/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb

    r6057 r7666  
    795795    # 
    796796    # This method is called from four places, so it helps to put it here 
    797     # for resue. The only logic deals with the need to detect comma 
     797    # for reuse. The only logic deals with the need to detect comma 
    798798    # separators (alternate) and apply them to the selector group of the 
    799799    # top selector. 
  • trunk/actionpack/lib/action_view/helpers/capture_helper.rb

    r7622 r7666  
    120120      # The deprecated way of accessing a content_for block is to use an instance variable 
    121121      # named <tt>@content_for_#{name_of_the_content_block}</tt>. So <tt><%= content_for :footer %></tt> 
    122       # would be avaiable as <tt><%= @content_for_footer %></tt>. The preferred usage is now 
     122      # would be available as <tt><%= @content_for_footer %></tt>. The preferred usage is now 
    123123      # <tt><%= yield :footer %></tt>. 
    124124      def content_for(name, content = nil, &block) 
  • trunk/actionpack/lib/action_view/helpers/javascript_helper.rb

    r7567 r7666  
    141141        end 
    142142         
    143         # load other librairies 
     143        # load other libraries 
    144144        (Dir.glob(File.join(JAVASCRIPT_PATH, '*')) - prototype_libs).each do |filename|  
    145145          javascript << "\n" << IO.read(filename) 
  • trunk/actionpack/lib/action_view/helpers/prototype_helper.rb

    r7596 r7666  
    512512          # <tt>:bottom</tt>:: HTML is inserted inside the element, after the 
    513513          #                    element's existing content. 
    514           # <tt>:before</tt>:: HTML is inserted immediately preceeding the element. 
     514          # <tt>:before</tt>:: HTML is inserted immediately preceding the element. 
    515515          # <tt>:after</tt>::  HTML is inserted immediately following the element. 
    516516          # 
  • trunk/actionpack/lib/action_view/helpers/scriptaculous_helper.rb

    r7396 r7666  
    3131      # used for example with drop_receiving_element: 
    3232      # 
    33       #   <%= drop_receving_element (...), :loading => visual_effect(:fade) %> 
     33      #   <%= drop_receiving_element (...), :loading => visual_effect(:fade) %> 
    3434      # 
    3535      # This would fade the element that was dropped on the drop receiving  
  • trunk/actionpack/lib/action_view/helpers/text_helper.rb

    r7595 r7666  
    8383 
    8484      # Extracts an excerpt from +text+ that matches the first instance of +phrase+.  
    85       # The +radius+ expands the excerpt on each side of the first occurance of +phrase+ by the number of characters 
     85      # The +radius+ expands the excerpt on each side of the first occurrence of +phrase+ by the number of characters 
    8686      # defined in +radius+ (which defaults to 100). If the excerpt radius overflows the beginning or end of the +text+, 
    8787      # then the +excerpt_string+ will be prepended/appended accordingly. If the +phrase+  
  • trunk/actionpack/test/activerecord/active_record_store_test.rb

    r6057 r7666  
    5454  end 
    5555 
    56 # this test only applies for eager sesssion saving 
     56# this test only applies for eager session saving 
    5757#  def test_another_instance 
    5858#    @another = CGI::Session.new(@cgi, 'session_id' => @new_session.session_id, 'database_manager' => CGI::Session::ActiveRecordStore) 
  • trunk/actionpack/test/controller/caching_test.rb

    r7598 r7666  
    33 
    44CACHE_DIR = 'test_cache' 
    5 # Don't change '/../temp/' cavalierly or you might hoze something you don't want hozed 
     5# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed 
    66FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR) 
    77ActionController::Base.page_cache_directory = FILE_STORE_PATH 
  • trunk/actionpack/test/controller/components_test.rb

    r7403 r7666  
    128128  end 
    129129 
    130   def test_component_as_string_redirect_renders_redirecte_action 
     130  def test_component_as_string_redirect_renders_redirected_action 
    131131    get :calling_redirected_as_string 
    132132 
  • trunk/actionpack/test/controller/cookie_test.rb

    r7535 r7666  
    77    end 
    88 
    9     def authenticate_for_fourten_days 
     9    def authenticate_for_fourteen_days 
    1010      cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) } 
    1111    end 
    1212 
    13     def authenticate_for_fourten_days_with_symbols 
     13    def authenticate_for_fourteen_days_with_symbols 
    1414      cookies[:user_name] = { :value => "david", :expires => Time.local(2005, 10, 10) } 
    1515    end 
     
    5656 
    5757  def test_setting_cookie_for_fourteen_days 
    58     get :authenticate_for_fourten_days 
     58    get :authenticate_for_fourteen_days 
    5959    assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], @response.headers["cookie"] 
    6060  end 
    6161 
    6262  def test_setting_cookie_for_fourteen_days_with_symbols 
    63     get :authenticate_for_fourten_days 
     63    get :authenticate_for_fourteen_days 
    6464    assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], @response.headers["cookie"] 
    6565  end 
  • trunk/actionpack/test/controller/routing_test.rb

    r7605 r7666  
    767767    eval(segment.expiry_statement) 
    768768  rescue RuntimeError 
    769     flunk "Expiry check should not have occured!" 
     769    flunk "Expiry check should not have occurred!" 
    770770  end 
    771771   
  • trunk/actionpack/test/controller/selector_test.rb

    r6057 r7666  
    178178    assert_equal "foo", @matches[0].attributes["href"] 
    179179    assert_equal "baz", @matches[1].attributes["href"] 
    180     # And now for the three selector challange. 
     180    # And now for the three selector challenge. 
    181181    parse(%Q{<h1 id="1"><a href="foo"></a></h1><h2 id="2"><a href="bar"></a></h2><h3 id="2"><a href="baz"></a></h3>}) 
    182182    select("h1 a, h2 a, h3 a") 
  • trunk/actionpack/test/controller/test_test.rb

    r7478 r7666  
    226226    process :test_html_output 
    227227 
    228     # there is a tag preceeding a tag with id 'bar' 
     228    # there is a tag preceding a tag with id 'bar' 
    229229    assert_tag :before => { :attributes => { :id => "bar" } } 
    230     # there is no tag preceeding a 'form' tag 
     230    # there is no tag preceding a 'form' tag 
    231231    assert_no_tag :before => { :tag => "form" } 
    232232  end 
  • trunk/actionpack/test/template/prototype_helper_test.rb

    r7592 r7666  
    8484    assert_dom_equal %(<a class=\"fine\" href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true}); return false;\">Remote outauthor</a>), 
    8585      link_to_remote("Remote outauthor", { :url => { :action => "whatnot"  }}, { :class => "fine"  }) 
    86     assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), 
    87       link_to_remote("Remote outauthor", :complete => "alert(request.reponseText)", :url => { :action => "whatnot"  })       
    88     assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), 
    89       link_to_remote("Remote outauthor", :success => "alert(request.reponseText)", :url => { :action => "whatnot"  }) 
    90     assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), 
    91       link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot"  }) 
    92     assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&amp;b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), 
    93       link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) 
     86    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), 
     87      link_to_remote("Remote outauthor", :complete => "alert(request.responseText)", :url => { :action => "whatnot"  })       
     88    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), 
     89      link_to_remote("Remote outauthor", :success => "alert(request.responseText)", :url => { :action => "whatnot"  }) 
     90    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), 
     91      link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot"  }) 
     92    assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&amp;b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), 
     93      link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) 
    9494  end 
    9595   
  • trunk/actionwebservice/install.rb

    r2909 r7666  
    1919end 
    2020 
    21 # the acual gruntwork 
     21# the actual gruntwork 
    2222Dir.chdir("lib") 
    2323 
  • trunk/actionwebservice/setup.rb

    r3067 r7666  
    969969  def print_usage(f) 
    970970    super 
    971     f.puts 'Inluded packages:' 
     971    f.puts 'Included packages:' 
    972972    f.puts '  ' + @packages.sort.join(' ') 
    973973    f.puts 
  • trunk/activerecord/install.rb

    r1053 r7666  
    1919end 
    2020 
    21 # the acual gruntwork 
     21# the actual gruntwork 
    2222Dir.chdir("lib") 
    2323 
  • trunk/activerecord/lib/active_record/associations.rb

    r7588 r7666  
    717717      # Option examples: 
    718718      #   has_one :credit_card, :dependent => :destroy  # destroys the associated credit card 
    719       #   has_one :credit_card, :dependent => :nullify  # updates the associated records foriegn key value to null rather than destroying it 
     719      #   has_one :credit_card, :dependent => :nullify  # updates the associated records foreign key value to null rather than destroying it 
    720720      #   has_one :last_comment, :class_name => "Comment", :order => "posted_on" 
    721721      #   has_one :project_manager, :class_name => "Person", :conditions => "role = 'project_manager'" 
     
    858858      # Deprecated: Any additional fields added to the join table will be placed as attributes when pulling records out through 
    859859      # +has_and_belongs_to_many+ associations. Records returned from join tables with additional attributes will be marked as 
    860       # +ReadOnly+ (because we can't save changes to the additional attrbutes). It's strongly recommended that you upgrade any 
     860      # +ReadOnly+ (because we can't save changes to the additional attributes). It's strongly recommended that you upgrade any 
    861861      # associations with attributes to a real join model (see introduction). 
    862862      # 
  • trunk/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb

    r7511 r7666  
    6666          options[:conditions] = conditions 
    6767          options[:joins]      = @join_sql 
    68           options[:readonly]   = finding_with_ambigious_select?(options[:select]) 
     68          options[:readonly]   = finding_with_ambiguous_select?(options[:select]) 
    6969 
    7070          if options[:order] && @reflection.options[:order] 
     
    155155        end 
    156156 
    157         # Join tables with additional columns on top of the two foreign keys must be considered ambigious unless a select 
     157        # Join tables with additional columns on top of the two foreign keys must be considered ambiguous unless a select 
    158158        # clause has been explicitly defined. Otherwise you can get broken records back, if, for example, the join column also has 
    159159        # an id column. This will then overwrite the id column of the records coming back. 
    160         def finding_with_ambigious_select?(select_clause) 
     160        def finding_with_ambiguous_select?(select_clause) 
    161161          !select_clause && @owner.connection.columns(@reflection.options[:join_table], "Join Table Columns").size != 2 
    162162        end 
  • trunk/activerecord/lib/active_record/base.rb

    r7561 r7666  
    151151  #   end 
    152152  # 
    153   # You can alternatively use self[:attribute]=(value) and self[:attribute] instead of write_attribute(:attribute, vaule) and 
     153  # You can alternatively use self[:attribute]=(value) and self[:attribute] instead of write_attribute(:attribute, value) and 
    154154  # read_attribute(:attribute) as a shorter form. 
    155155  # 
  • trunk/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

    r7498 r7666  
    130130        rescue Exception => e 
    131131          # Log message and raise exception. 
    132           # Set last_verfication to 0, so that connection gets verified 
     132          # Set last_verification to 0, so that connection gets verified 
    133133          # upon reentering the request loop 
    134134          @last_verification = 0 
  • trunk/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb

    r7503 r7666  
    134134      end 
    135135 
    136       # Inserts the given fixture into the table. Overriden in adapters that require 
     136      # Inserts the given fixture into the table. Overridden in adapters that require 
    137137      # something beyond a simple insert (eg. Oracle). 
    138138      def insert_fixture(fixture, table_name) 
  • trunk/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

    r7356 r7666  
    143143      # Sets a new default value for a column.  If you want to set the default 
    144144      # value to +NULL+, you are out of luck.  You need to 
    145       # DatabaseStatements#execute the apppropriate SQL statement yourself. 
     145      # DatabaseStatements#execute the appropriate SQL statement yourself. 
    146146      # ===== Examples 
    147147      #  change_column_default(:suppliers, :qualification, 'new') 
     
    238238          execute "INSERT INTO #{ActiveRecord::Migrator.schema_info_table_name} (version) VALUES(0)" 
    239239        rescue ActiveRecord::StatementInvalid 
    240           # Schema has been intialized 
     240          # Schema has been initialized 
    241241        end 
    242242      end 
     
    256256        if native = native_database_types[type] 
    257257          column_type_sql = native.is_a?(Hash) ? native[:name] : native 
    258           if type == :decimal # ignore limit, use precison and scale 
     258          if type == :decimal # ignore limit, use precision and scale 
    259259            precision ||= native[:precision] 
    260260            scale ||= native[:scale] 
  • trunk/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb

    r7498 r7666  
    261261 
    262262 
    263         # Inserts the given fixture into the table. Overriden to properly handle lobs. 
     263        # Inserts the given fixture into the table. Overridden to properly handle lobs. 
    264264        def insert_fixture(fixture, table_name) 
    265265          super 
  • trunk/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

    r7498 r7666  
    7171        # Unescapes bytea output from a database to the binary string it represents. 
    7272        def self.binary_to_string(value) 
    73           # In each case, check if the value actually is escaped PostgresSQL bytea output 
     73          # In each case, check if the value actually is escaped PostgreSQL bytea output 
    7474          # or an unescaped Active Record attribute that was just written. 
    7575          if PGconn.respond_to?(:unescape_bytea) 
     
    785785                # If this is a money type column and there are any currency symbols, 
    786786                # then strip them off. Indeed it would be prettier to do this in 
    787                 # PostgresSQLColumn.string_to_decimal but would break form input 
     787                # PostgreSQLColumn.string_to_decimal but would break form input 
    788788                # fields that call value_before_type_cast. 
    789789                if res.type(cell_index) == MONEY_COLUMN_TYPE_OID 
  • trunk/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb

    r7498 r7666  
    1 # sybase_adaptor.rb 
     1# sybase_adapter.rb 
    22# Author: John R. Sheets 
    33#  
  • trunk/activerecord/lib/active_record/serializers/xml_serializer.rb

    r7663 r7666  
    22  module Serialization 
    33    # Builds an XML document to represent the model.   Some configuration is 
    4     # availble through +options+, however more complicated cases should use  
     4    # available through +options+, however more complicated cases should use  
    55    # override ActiveRecord's to_xml. 
    66    # 
  • trunk/activerecord/test/associations_test.rb

    r7588 r7666  
    14751475  end 
    14761476 
    1477   def test_hatbm_attribute_access_and_respond_to 
     1477  def test_habtm_attribute_access_and_respond_to 
    14781478    project = developers(:jamis).projects[0] 
    14791479    assert project.has_attribute?("name") 
  • trunk/activerecord/test/base_test.rb

    r7500 r7666  
    801801  end 
    802802 
    803   def test_customized_primary_key_remains_protected_when_refered_to_as_id 
     803  def test_customized_primary_key_remains_protected_when_referred_to_as_id 
    804804    subscriber = Subscriber.new(:id => 'webster123', :name => 'nice try') 
    805805    assert_nil subscriber.id 
  • trunk/activerecord/test/migration_test.rb

    r7579 r7666  
    341341        jonnyg.destroy 
    342342      ensure 
    343         ActiveRecord::Migration.remove_column :people, :intelligece_quotient rescue nil 
     343        ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil 
    344344      end 
    345345    end 
     
    579579 
    580580      # This one is fun. The 'value_of_e' field is defined as 'DECIMAL' with 
    581       # precision/scale explictly left out.  By the SQL standard, numbers 
     581      # precision/scale explicitly left out.  By the SQL standard, numbers 
    582582      # assigned to this field should be truncated but that's seldom respected. 
    583583      if current_adapter?(:PostgreSQLAdapter, :SQLite2Adapter) 
  • trunk/activerecord/test/pk_test.rb

    r6364 r7666  
    9696    assert_nothing_raised { MixedCaseMonkey.find(1).save } 
    9797  end 
    98   def test_instance_destry_should_quote_pkey 
     98  def test_instance_destroy_should_quote_pkey 
    9999    assert_nothing_raised { MixedCaseMonkey.find(1).destroy } 
    100100  end 
  • trunk/activerecord/test/unconnected_test.rb

    r3674 r7666  
    44end 
    55 
    6 class TestUnconnectedAdaptor < Test::Unit::TestCase 
     6class TestUnconnectedAdapter < Test::Unit::TestCase 
    77  self.use_transactional_fixtures = false 
    88 
  • trunk/activerecord/test/validations_test.rb

    r7511 r7666  
    662662  end 
    663663 
    664   def test_validates_length_with_globaly_modified_error_message 
     664  def test_validates_length_with_globally_modified_error_message 
    665665    ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre %d' 
    666666    Topic.validates_length_of :title, :minimum => 10 
  • trunk/activesupport/install.rb

    r1053 r7666  
    1919end 
    2020 
    21 # the acual gruntwork 
     21# the actual gruntwork 
    2222Dir.chdir("lib") 
    2323 
  • trunk/activesupport/lib/active_support/core_ext/object/misc.rb

    r7658 r7666  
    3838  #   end 
    3939  # 
    40   # Can also be used with an explicit reciever: 
     40  # Can also be used with an explicit receiver: 
    4141  # 
    4242  #   map.with_options :controller => "people" do |people| 
  • trunk/activesupport/lib/active_support/core_ext/string/unicode.rb

    r5223 r7666  
    22  module CoreExtensions #:nodoc: 
    33    module String #:nodoc: 
    4       # Define methods for handeling unicode data. 
     4      # Define methods for handling unicode data. 
    55      module Unicode 
    66        # +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the 
  • trunk/activesupport/lib/active_support/core_ext/time/calculations.rb

    r7508 r7666  
    3030          end 
    3131 
    32           # Returns a new Time if requested year can be accomodated by Ruby's Time class 
     32          # Returns a new Time if requested year can be accommodated by Ruby's Time class 
    3333          # (i.e., if year is within either 1970..2038 or 1902..2038, depending on system architecture); 
    3434          # otherwise returns a DateTime 
  • trunk/activesupport/lib/active_support/vendor/builder/xmlbase.rb

    r7474 r7666  
    2727     
    2828    # Create a tag named +sym+.  Other than the first argument which 
    29     # is the tag name, the arguements are the same as the tags 
     29    # is the tag name, the arguments are the same as the tags 
    3030    # implemented via <tt>method_missing</tt>. 
    3131    def tag!(sym, *args, &block) 
  • trunk/activesupport/lib/active_support/vendor/builder/xmlmarkup.rb

    r5813 r7666  
    154154  #     xml_builder = Builder::XmlMarkup.new 
    155155  #     xml_builder.div { |xml| 
    156   #       xml.stong("text") 
     156  #       xml.strong("text") 
    157157  #     } 
    158158  # 
  • trunk/activesupport/lib/active_support/vendor/xml_simple.rb

    r6044 r7666  
    122122  @@cache = Cache.new 
    123123 
    124   # Creates and intializes a new XmlSimple object. 
     124  # Creates and initializes a new XmlSimple object. 
    125125  #  
    126126  # defaults:: 
  • trunk/activesupport/test/core_ext/date_ext_test.rb

    r7262 r7666  
    3737  end 
    3838 
    39   def test_begining_of_week 
     39  def test_beginning_of_week 
    4040    assert_equal Date.new(2005,1,31),  Date.new(2005,2,4).beginning_of_week 
    4141    assert_equal Date.new(2005,11,28), Date.new(2005,11,28).beginning_of_week #monday 
  • trunk/activesupport/test/core_ext/date_time_ext_test.rb

    r7647 r7666  
    4747  end 
    4848 
    49   def test_begining_of_week 
     49  def test_beginning_of_week 
    5050    assert_equal DateTime.civil(2005,1,31), DateTime.civil(2005,2,4,10,10,10).beginning_of_week 
    5151    assert_equal DateTime.civil(2005,11,28), DateTime.civil(2005,11,28,0,0,0).beginning_of_week #monday 
  • trunk/activesupport/test/core_ext/time_ext_test.rb

    r7647 r7666  
    5050  end 
    5151 
    52   def test_begining_of_week 
     52  def test_beginning_of_week 
    5353    assert_equal Time.local(2005,1,31), Time.local(2005,2,4,10,10,10).beginning_of_week 
    5454    assert_equal Time.local(2005,11,28), Time.local(2005,11,28,0,0,0).beginning_of_week #monday 
  • trunk/activesupport/test/multibyte_handler_test.rb

    r7272 r7666  
    1616    # slicing it at some specific bytes will kill your characters if you use standard Ruby routines. 
    1717    # It has both capital and standard letters, so that we can test case conversions easily. 
    18     # It has 26 charactes and 28 when the ligature gets split during normalization. 
     18    # It has 26 characters and 28 when the ligature gets split during normalization. 
    1919    @string =     "Abcd Блå ffi бла бла бла бла" 
    2020    @string_kd =  "Abcd Блå ffi бла бла бла бла" 
  • trunk/railties/lib/commands/plugin.rb

    r7585 r7666  
    516516                      "List locally installed plugins.") {|@local| @remote = false} 
    517517        o.on(         "--remote", 
    518                       "List remotely availabled plugins. This is the default behavior", 
     518                      "List remotely available plugins. This is the default behavior", 
    519519                      "unless --local is provided.") {|@remote|} 
    520520      end 
  • trunk/railties/lib/rails_generator/base.rb

    r7183 r7666  
    4141  # 
    4242  # The filenames of the templates don't matter, but choose something that 
    43   # will be self-explatatory since you will be referencing these in the  
     43  # will be self-explanatory since you will be referencing these in the  
    4444  # +manifest+ method inside your generator subclass. 
    4545  # 
  • trunk/railties/lib/rails_generator/commands.rb

    r6180 r7666  
    261261 
    262262        # Generate a file for a Rails application using an ERuby template. 
    263         # Looks up and evalutes a template by name and writes the result. 
     263        # Looks up and evaluates a template by name and writes the result. 
    264264        # 
    265265        # The ERB template uses explicit trim mode to best control the